| Crates.io | rustacean-roulette |
| lib.rs | rustacean-roulette |
| version | 0.1.2 |
| created_at | 2025-04-01 12:40:31.150695+00 |
| updated_at | 2025-04-11 06:03:36.402104+00 |
| description | A simple Russian Roulette Telegram bot implemented in Rust. |
| homepage | |
| repository | https://github.com/PRO-2684/rustacean-roulette |
| max_upload_size | |
| id | 1614792 |
| size | 79,042 |
rustacean-roulette🦀 A simple Russian Roulette Telegram bot implemented in Rust.
binstallcargo binstall rustacean-roulette
Navigate to the Releases page and download respective binary for your platform. Make sure to give it execute permissions.
cargo install rustacean-roulette
The configuration file is in TOML format, and it could be placed anywhere you want. An example configuration file is provided below:
token = "" # Telegram bot token, required
[game] # Game configuration, optional
chambers = 6 # Number of chambers in the revolver
bullets = 2 # Number of bullets in the revolver
jam_probability = 0.05 # Probability of the gun getting jammed
min_mute_time = 60 # Minimum mute time in seconds
max_mute_time = 600 # Maximum mute time in seconds
[[groups]] # Whitelisted groups and override configuration
id = 0 # Group ID, required
# Override configuration, identical to game configuration
chambers = 8 # In this group, the revolver has 8 chambers
bullets = 3 # In this group, the revolver has 3 bullets
# ...etc.
[[groups]] # Another group
id = 1 # Group ID, required
# ...Override configuration
# More groups...
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.
/help