discord-termview

Crates.iodiscord-termview
lib.rsdiscord-termview
version0.1.0
sourcesrc
created_at2021-05-27 14:54:10.385115
updated_at2021-05-27 14:54:10.385115
descriptionSpawn multiple concurrent unix terminals in Discord
homepagehttps://github.com/simvux/discord-termview
repository
max_upload_size
id402746
size57,523
Simon Larsson (simvux)

documentation

https://docs.rs/serenity

README

Termview

WARNING

Using this bot can be exceedingly dangerous since you're basically granting people direct access to your shell.

Make sure you know what you're doing!

Example

https://user-images.githubusercontent.com/29797280/118414771-c8864080-b6a6-11eb-9efb-70933ba84b95.mp4

Running

Make sure you have cargo installed (might need nightly, but probably doesn't)

Locally (dangerous)

# Compile
cargo build --release

# Configure
export DISCORD_TOKEN=my-discord-token
export ALLOWED_ROLES=<id-of-role>

# Run
target/release/discord-termview

In docker container (slightly less dangerous)

Edit build.sh with your token and role-id

./build.sh run

TODO

  • make sessions automatically expire (difficult)
  • make the terminal move/repost if it's to far away (moderate)
  • allow killing terminals (difficult)
  • allow multi-line code blocks (easy)
  • help message (easy)
Commit count: 0

cargo fmt