Discord bot for when someone says something stupid.
Binary is the bot itself, library contains useful things for building custom bots
Download and run cargo run --release in root folder.
Bot reads config file bot.toml in the same folder it runs.
token = "TOKEN_HERE" # Discord bot token
image_path = "brick.gif" # image to brick gif
command = "!brick" # bot will respond to this command
[keyframes] # sets avatar position
0 = {x = 0, y = 0}token- Discord bot authorizarion tokenimage_path- path to gif to usecommand- command for bot to listen to
self_brick_message- if set, bot will will respond to self brick with a messageerr_msg_tag_role- error message send when user tags a role, not usererr_msg_tag_nobody- error message send when user tags nobodyuse_avatar_alpha- if true, avatar will be overlaid with transparencyimage_name- image name sent to Discord
x- x position of user avatary- y position of user avatar
scale- avatar size scalar,visible- avatar visibility on keyframe,
- keyframe interpolation
- general code cleanup
- Fix panic on aborted heartbeater thread
- Fixed typos
- Added support for interactions, reactions
- Added waiting between unsuccessful attempts to connect
- Muplitple bug-fixes
- Better logging info
- Cleaner internal structure
- Bot client is now separate from brick-bot functionality and can be reused for different bots
- Logging is done through
logcrate - Config is now easier to use
- Bricked gifs cached in memory
- Refactored code
- Removed error/bug from log caused by reconnections
- Removed
once_celldependency - Removed unneeded features from dependencies
- Bot runs on WebSockets
