Simple discord bot to set channel slowmode to any value between 1 second and 6 hours.
I wanted to set the discord slowmode setting to 1 second to not be too restrictive for people who
talk
like
this
but still try and thwart spambots.
Currently the GUI for setting slowmode is not particularly granular and does not allow for below 5 seconds.
I then discovered it's possible to set slowmode to any integer between 0 to 21600 seconds via the discord api, hence the creation of this simple bot.
- Create a discord bot app, instructions here.
- Download the latest release for your given platform.
- Open a command line instance in the bot's directory and run
./discord-slowmode-bot
, a warning should be printedclient id is not specified, check cfg.yaml file
and cfg.yaml will be created. - Copy your bot token into cfg.yaml replacing
<your-bot-token-here>
. - Run
./discord-slowmode-bot
again, once connected, copy the discord invite link to your favourite browser and add the bot to a server. The bot should now be present in the desired server. - In discord, from the channel you would like to set slowmode, type
@SlowModeBot <duration>
e.g.@SlowModeBot#8558 1s
for 1 second,@SlowModeBot#8558 2m
for 2 minutes or@SlowModeBot#8558 2h
for 2 hours.
Many thanks to @andersfylling for creating disgord, and for offering guidance! 🍻