omgbot is a Discord bot inspired by the Discord team's original example bot, airhorn.solutions.
It provides a set of commands, each mapped to "short" sound clips. When a command is issued, the following occurs:
- A sound is chosen for the given command.
- If the user issuing the command is in a voice channel, the bot joins that voice channel.
- The bot plays the sound in the voice channel or uploads it to the text channel the user issued the command in.
- If the bot joined a voice channel to play the sound, it leaves the channel.
omgbot --discord-token "${your_token}" "${your_sound_dir}"
# or
DISCORD_TOKEN="${your_token}" omgbot "${your_sound_dir}"Configuration is provided via command line arguments.
| Flag | Description |
|---|---|
--discord-token |
The Discord token to authenticate with |
--volume |
The volume to play sounds at. (0-100, Default 25) |
- Install nextest and cargo-mutants.
- Run tests with
cargo nextest run.- Try to address any mutants by iterating with
cargo mutants.
- Try to address any mutants by iterating with
- Ensure linting and formatting passes:
cargo clippycargo fmt