Did I ask, rewritten in Rust using serenity-rs.
This bot randomly comments "Did I ask?" on specified channels (along with other goodies).
-
Clone this repository
-
Install Rust and Cargo. Don't Know How?
-
Sign into Discord and get the bot registered. Note down the bot token and take care of it. Also set the permissions to send messages and read message history. Don't Know How?
-
Using Discord, find out the channel ID you want the bot to run on. Don't know how?
-
From the source directory, run
cargo build --release
to generate the binary. (If you want debug features, get rid of the--release
flag) -
Copy the generated binary (should be in the directory
target/release/DidIAsk
to a different (preferably empty) directory. -
In the new directory, create a file called
.env
and place the following code inside of it, replacing the values needed or copy the.env.example
file and rename it and replace the values needed.
DISCORD_TOKEN=YOUR_DISCORD_TOKEN # You got this earlier
PREFIX=! # What all commands start with
RUST_LOG=error # The options are info, error, or debug
CHANNEL_WHITELIST=519875138979834798,489023098423098423,705895622074433549 # Channel ids that the bot is allowed to randomly did i ask
GULAG_ROLE=705895621961187710 # Id a disciplinary role
STATUS_PREFIX=listening # Prefix of the bot status, either playing or listening
STATUS_PHRASE=-h # Status of the bot
Download the provided docker-compose.yml
file, and open it with your preferred text editor. Set the bot prefix to a character (default is ?
), and set the bot token. Don't know how to get a token? Don't forget to set the rest of the configuration outlined above.
Install Docker Compose by following the instructions here.
Start the bot with docker-compose up -d
, and check to make sure that it's running with docker ps
. If it isn't running, run docker-compose up
to see debug output, and ensure that you've set all of the proper information in the docker-compose.yml
file.
Invite your bot to the server(s) of your choice. Don't know how?.
- Core:
dia
: Bot comments a stylized "Did I ask?"
- Emojis / Emoticons:
uwu
: Bot comments a "uwu" kaomoji.owo
: Bot comments a "owo" kaomoji.smile
: Bot comments a random smiling kaomoji.hug
: Bot comments a random hugging kaomoji.flex
: Bot comments a random flexing kaomoji.animal
: Bot comments a random animal kaomoji.surprise
: Bot comments a random suprised kaomoji.dance
: Bot comments a random dancing kaomoji.shrug
: Bot comments a random shrugging kaomoji.flip
: Bot comments a random "table flip" kaomoji.unflip
: Bot comments a random "table unflip" kaomoji.sus
: Bot comments a random suspicious kaomoji.cri
: Bot comments a random crying kaomoji.yike
: Bot comments a random "yikes" kaomoji.bear
: Bot comments a random bear kaomoji / emoji.fight
: Bot comments a random fighting kaomoji.
- Math:
multiply
: Bot multiplies two given numbers.
- Administration (only owner is allowed to run):
quit
: Bot quits.Gulag
: Bot adds user to Gulag role specified in configuration.
- Misc
ping
: Pong!