.github | ||
.env.example | ||
.gitattributes | ||
.gitignore | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md |
Vote to Mute
An experiment with bwmarrin's discordgo library.
Building from source
- Install Golang
- Fetch dependencies and build (
go build
)
The binary vote-to-mute
is then able to be executed with environment variables. You will need to manually export and set these variables, as the .env file will not be read. You can learn more about how to set environment variables on Windows, macOS, or Linux with their respective links.
Usage
This tool requires only one variables:
DISCORD_TOKEN
: This is required to connect to Discord's servers. You can fetch one by:- Going to Discord's developer portal
- Creating a new application
- Going to the « Bot » tab and creating a new bot
- Copying the
Token
value
FAQ
Q: What permissions should the bot have? The bot only needs MANAGE_ROLES
(permission integer 268435456
). It needs this to create a Muted
role, if one doesn't already exist, that mutes the user across channels
Q: Is there a version of this bot already hosted? I do not host a public bot, but some people do host instances for personal servers.
Q: Why did you make this? Two reasons: wanted to experiment with discordgo
some more, but also wanted to help a friend out with some moderation troubles on a server of theirs.