A small silly bot to "bonk" people in discord.
- Add custom bonk emojis to
src/bonk_emojis.txt
. The strings present in that file by default will not work, unless your instance of the bot is in my testing server (it isn't). - Create a discord application and bot.
- Invite the bot to your server. Make sure to select the
applications.commands
scope if you want to use slash commands. - Enable the
MESSAGE_CONTENT
privileged intent - Create two files, containing the bot token and application id
- Run the bot, providing the token and application id as command line arguments:
- With the included NixOS module:
{pkgs, ...}: { services.bonkbot = { enable = true; tokenFile = "<token_filename>"; appIdFile = "<application_id_filename>"; }; }
- With nix:
nix run 'github:Sciencentistguy/bonkbot' -- <token_filename> <application_id_filename>
- With cargo:
cargo run -- <token_filename> <application_id_filename>
- Standalone (you probably need to install it on your system first):
bonkbot <token_filename> <application_id_filename>
- In Discord, use the command
/bonk <user>
, or send a message of the form!bonk <message>
.
Written using Serenity.
Available under the terms of the Mozilla Public Licence, version 2.0