Discord bot for custom sound effects and soundboards
Go to file
2022-05-05 10:16:40 +01:00
.idea roles are now stored individually on the guild. 2021-09-03 11:33:55 +01:00
audio added a couple of ambience sounds 2021-03-27 17:56:15 +00:00
migrations roles are now stored individually on the guild. 2021-09-03 11:33:55 +01:00
regex_command_attr updated serenity and songbird versions to latest 2021-08-13 14:20:45 +01:00
src removed popular command. fix for ambience command 2021-09-18 13:09:14 +01:00
.gitignore gitignore 2020-09-03 14:56:08 +01:00
Cargo.lock removed popular command. fix for ambience command 2021-09-18 13:09:14 +01:00
Cargo.toml removed popular command. fix for ambience command 2021-09-18 13:09:14 +01:00
LICENSE Create LICENSE 2020-09-21 09:26:55 +00:00
README.md cleaned up 2022-05-05 10:16:40 +01:00
rustfmt.toml rustfmt. removed gating on creating user rows for join sounds 2021-09-16 22:04:48 +01:00

SoundFX

A bot for managing sound effects in Discord.

Building

sudo apt install gcc gcc-multilib cmake

Use the Cargo.toml file to build it. Needs Rust 1.52+

Running & Config

The bot connects to the MySQL server URL defined in a .env file in the working directory of the program.

Config options:

  • DISCORD_TOKEN- your token (required)
  • DATABASE_URL- your database URL (required)
  • DISCONNECT_CYCLES- specifies the number of inactivity cycles before the bot should disconnect itself from a voice channel
  • DISCONNECT_CYCLE_DELAY- specifies the delay between cleanup cycles
  • MAX_SOUNDS- specifies how many sounds a user should be allowed without Patreon
  • PATREON_GUILD- specifies the ID of the guild being used for Patreon benefits
  • PATREON_ROLE- specifies the role being checked for Patreon benefits
  • CACHING_LOCATION- specifies the location in which to cache the audio files (defaults to /tmp/)