discord-set-slowmode-bot

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 14 Imported by: 0

README

discord-set-slowmode-bot

Simple discord bot to set channel slowmode to any value between 1 second and 6 hours.

Why?

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.

How?

  1. Create a discord bot app, instructions here.
  2. Download the latest release for your given platform.
  3. Open a command line instance in the bot's directory and run ./discord-set-slowmode-bot, a warning should be printed client id is not specified, check cfg.yaml file and cfg.yaml will be created.
  4. Copy your bot token into cfg.yaml replacing <your-bot-token-here>.
  5. Run ./discord-set-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.
  6. 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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL