Skip to content

A simple Discord bot written to handle the merging of roles.

License

Notifications You must be signed in to change notification settings

ktisis-tools/Discord-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord-Bot

A simple Discord bot written for Ktisis to handle the merging of roles, using the Eris library.

Setup

npx degit Ktisis/Discord-Bot

yarn
# copy .env.example to .env and fill in the values
yarn build
yarn start

Configuration

All values are required.

Variable Description
DISCORD_BOT_TOKEN The bot token.
DISCORD_GUILD_ID The guild ID.
DISCORD_TRIGGER_ROLES The roles that trigger the bot, separated by a comma.
DISCORD_EXTRA_ROLES Additional roles that are removed when the DISCORD_ROLE_TO_ADD is removed.
DISCORD_ROLE_TO_ADD The role to add to the user, if they have any trigger role.
DISCORD_JOIN_LOG_CHANNEL The channel ID to print the member count to.

Storing and using the bot token

Warning

The token should be stored as a environment variable and not committed to the repository.
Posting it publicly is a security risk, and Discord will reset it (docs.github.com) if committed to a public repository.

The authorized bot user must have...

  • the server member intent, which can be enabled on the application dashboard.
  • the MANAGE_ROLES permission for the DISCORD_GUILD_ID it is configured to run on
  • a role higher than DISCORD_ROLE_TO_ADD

About

A simple Discord bot written to handle the merging of roles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published