Archived
0
Fork 0
Vote to mute people in a Discord server. An experiment with discordgo.
This repository has been archived on 2024-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2021-09-04 10:18:27 -07:00
.github chore: disable dep dashboard 2021-09-04 10:18:27 -07:00
.env.example chore: add environement example to comply with README 2021-08-19 22:02:48 -07:00
.gitattributes Create .gitattributes 2021-08-19 22:00:20 -07:00
.gitignore chore: add license and ignore 2021-08-19 20:07:47 -07:00
go.mod chore: handle dependencies 2021-08-19 20:08:00 -07:00
go.sum chore: handle dependencies 2021-08-19 20:08:00 -07:00
LICENSE chore: add license and ignore 2021-08-19 20:07:47 -07:00
main.go fix: find the GuildID from a more reliable source 2021-08-19 21:55:36 -07:00
README.md chore: improved FAQ styling and content 2021-08-19 22:01:45 -07:00

Vote to Mute

An experiment with bwmarrin's discordgo library.

Building from source

  1. Install Golang
  2. 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:
    1. Going to Discord's developer portal
    2. Creating a new application
    3. Going to the « Bot » tab and creating a new bot
    4. 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.