rustacean-roulette
🦀 A simple Russian Roulette Telegram bot implemented in Rust.
Installation
Using binstall
cargo binstall rustacean-roulette
Downloading from Releases
Navigate to the Releases page and download respective binary for your platform. Make sure to give it execute permissions.
Compiling from Source
cargo install rustacean-roulette
Configuration
The configuration file is in TOML format, and it could be placed anywhere you want. An example configuration file is provided below:
= "" # Telegram bot token, required
[] # Game configuration, optional
= 6 # Number of chambers in the revolver
= 2 # Number of bullets in the revolver
= 60 # Minimum mute time in seconds
= 600 # Maximum mute time in seconds
[[]] # Whitelisted groups and override configuration
= 0 # Group ID, required
# Override configuration, identical to game configuration
= 8 # In this group, the revolver has 8 chambers
= 3 # In this group, the revolver has 3 bullets
# ...etc.
[[]] # Another group
= 1 # Group ID, required
# ...Override configuration
# More groups...
Usage
rustacean-roulette /path/to/config.toml
Where /path/to/config.toml is the path to your configuration file. Defaults to ./config.toml if not specified.
TODO
- Random bullets number
- Probability of gun getting jammed
/help