-
Notifications
You must be signed in to change notification settings - Fork 23
Adding Bot to a IIIT Club Server
-
Make a pull request to the server by ediing the
bot/server_config.inifile as per your server requirements. (configurations are detailed below) -
Create a new role for the bot, which satisfies the criterions as given in the next section.
-
After your PR is merged, navigate to the this URL to invite the bot and add it to your server. Note that you must have "Manage Server" permission on this server. (If you're new to Discord roles, read the FAQ: link)
-
.verifymight not work for server-admins. That indicates your role setup does not follow the criterions below. - We recommend that you create a new channel (like #server-help) where all your users can run the
.verifycommand.
If at any point you face any difficulty, please raise a new issue in this GitHub repository.
You can create a new "Bot" role in your server, and give it to our bot. This role should satisfy the following criterions:
- The bot will only be able to give the user the role A if the bot's topmost role is above role A.
- To change nickname for a user, the user's highest role should be lower than the bot's highest role.
- The bot should have read access to the channel to read
.verifycommands - The bot should have write access to the channel to give feedback on verification (Success/Failure).
(If you're new to Discord roles, read the FAQ: link)
The following configuration are possible through bot/server_config.ini:
-
setrealname: set member nickname (post verification) equal to their real name (obtained from CAS). -
grantroles: a comma-separated list of roles you'd like to assign to the member post-verification. If the roles do not exist in the server, they'll be created automatically. -
serverid: ID of the Discord server. See Discord FAQ. (In Discord lingo, a server is known as a guild.) -
deleteroles: a comma-separated list of roles you'd like to remove from the member post-verification. For example, if new users get theunverifiedrole on joining your server, you can setdeleteroles=unverified.
deleteroles, setrealname are optional. If you don't specify a value for them, it's picked up from the [DEFAULT] section at the top.
Example usage:
[Chess Club]
serverid=724827932778037370
setrealname=yes
grantroles=Verified,IIIT