RPG_BOT (Rust Playground Bot)
Telegram bot help you to run Rust code in Telegram via Rust playground
Bot interface
The bot supports 3 straightforward commands:
-
/help <command (default: all)>
โ help message for all or specified command. -
/run <version (default: stable)> <mode (default: debug)> <edition (default: 2021)>
โ use this command with reply to code you want to execute it. -
/share <version (default: stable)> <mode (default: debug)> <edition (default: 2021)>
โ use this command with reply to code you want to share it.
Building
You must put the bot token in the environment file before building for it to be included
With Docker
git clone https://github.com/TheAwiteb/rpg_bot
cd rpg_bot
sudo docker build . -t rpg_bot
With Cargo
git clone https://github.com/TheAwiteb/rpg_bot
cd rpg_bot
cargo build --release
Running
With Docker
sudo docker run -ti --rm rpg_bot
With Cargo
cargo run --release
Images
Help Message
Run Command
Share Command
License
RPG_BOT is under the MIT license. See the LICENSE file for details.