A Discord bot which allows users to join and leave roles using a selection box.
Also includes a command for mods to ping specific roles which are normally unpingable.
Command | Description |
---|---|
/addrole <role> |
Adds a role to the bot so users can join it. |
/removerole <role> |
Removes a role from the bot so users can no longer join it. |
/createroleselector |
Creates a role selector message like in the image above. |
/ping <role> |
Pings a role which would normally be un-pingable. Role must be added as joinable in the bot. |
- Install .NET 6 if it doesn't already exist on your system.
- Create a new bot application and invite it to your server.
- Go to
Settings->Integrations->Bot->Command Permissions
and turn off command access for the everyone role. - Download the bot for your operating system, either a release version or a dev build
- Run
./RoleManager
on Linux or./RoleManager.exe
on Windows to generate the config. - Set up the config to your specifications, there are instructions inside.
- Restart the bot.
- Go to
Settings->Integrations->Bot->Command Permissions
in your Discord server to set up permissions for the commands.
If you need more help either contact me in Discord or through an issue here.
This is the default included config:
bot:
# Bot token.
token: "<add-token-here>"
# ID of the Discord server
server-id: 000000000000000000
# Decides what messages are shown in console
# Possible values are: Critical, Error, Warning, Information, Debug.
console-log-level: "Information"
# Sets the type of activity for the bot to display in its presence status
# Possible values are: Playing, Streaming, ListeningTo, Watching, Competing
presence-type: "ListeningTo"
# Sets the activity text shown in the bot's status
presence-text: "role requests"