Skip to content

A Discord bot to easily create batches of roles and let users (de)assign them

License

Notifications You must be signed in to change notification settings

bildpunkt/suguri

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

suguri

Suguri is a bot specifically written for the Discord server 100% Pure Orange Juice which enables the Server admins to quickly create a set of roles. Users then can use the role names to (de)assign these roles to themselves.

NOTE: These roles are only for visual sake, as they have no special permissions assigned to them. They inherit the default permission set.

Basically my excuse to learn how to write Discord bots.

Usage

Prerequisites

  • Node.js (just go with the latest)
  • A Discord Bot token (create an application and bot user here)

Token

  • Copy config.example.json to config.json
  • Replace YOUR_TOKEN_HERE with your bot user token in config.json
  • Replace channel-name with the name of a channel the bot will listen for commands in

Roles

  • Copy roles.example.json to roles.json
  • Add new roles to the file
    • the Object key is the role name (spaces are supported)
    • the Object value is the role color (hex)

Usage

  • npm install to install dependencies
  • npm start to run the bot

Adding the Bot to your Server

Simply open the following URL in your browser:

https://discordapp.com/oauth2/authorize?client_id=[yourbotid]&scope=bot&permissions=40001200

Also, be sure to replace [yourbotid] with the User ID of your bot! You can then select which server you want to add suguri to.

Commands

All commands are prefixed with a !

  • setup creates all of the roles specified in roles.json
    Example: !setup
  • rolename adds rolename to the user sending it, requires the role to exist beforehand, so be sure to run !setup. Running the same command again will remove the specified role from the user.
    Example: !Cool Kids
  • ready adds or removes the Ready for Match role from yourself, which is mentionable and hoisted, so you can quickly talk to users that are ready to play!

License

suguri is licensed under the MIT License

About

A Discord bot to easily create batches of roles and let users (de)assign them

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published