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.json
toconfig.json
- Replace
YOUR_TOKEN_HERE
with your bot user token inconfig.json
- Replace
channel-name
with the name of a channel the bot will listen for commands in
- Copy
roles.example.json
toroles.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 install
to install dependenciesnpm start
to 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 !
setup
creates all of the roles specified inroles.json
Example:!setup
rolename
addsrolename
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 theReady for Match
role 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