- go (atleast 1.14)
- (optional) docker
- a discord server you own
- Make a test bot account: https://discordpy.readthedocs.io/en/latest/discord.html
- Invite bot to server
- Take note of the bot account's token and keep it private
- Enable developer Mode: https://discordia.me/en/developer-mode#:~:text=Enabling%20Developer%20Mode%20is%20easy,the%20toggle%20to%20enable%20it.
- With dev mode enabled you can right click on various objects and copy their discord ID. Get the ID's of your: a. Spam Channel - I channel you would like to spam with messages b. Server c. Ban Role - a role that only allows someone to speak in the banned channel
- Install go modules with
go mod download
, i think?, maybego build
- run with
go run toby.go -t <TOKEN>
t - Bot Token s - Spam Channel ID for debug messages b - Ban Role ID for ban function g - Guild/Server ID
Example run command:
toby -t <TOKEN> -s <SPAM ID> -b <BAN ROLE ID> -g <GUILD ID>
- Ban - "@Toby ban @Ted, 2h", replaces all of users role with the ban role and returns them after time period