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.
- Node.js (just go with the latest)
- A Discord Bot token (create an application and bot user here)
- Copy
config.example.jsontoconfig.json - Replace
YOUR_TOKEN_HEREwith your bot user token inconfig.json - Replace
channel-namewith the name of a channel the bot will listen for commands in
- Copy
roles.example.jsontoroles.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)
npm installto install dependenciesnpm startto run the bot
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.
All commands are prefixed with a !
setupcreates all of the roles specified inroles.json
Example:!setuprolenameaddsrolenameto 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 Kidsreadyadds or removes theReady for Matchrole from yourself, which is mentionable and hoisted, so you can quickly talk to users that are ready to play!
suguri is licensed under the MIT License