Desc: Custom bot commands designed for YAGPDB Discord bot for adding customizable flairs based on the user's requirement.
Source Code contains the command code and the expected response.
YAGPDB (Yet Another General Purpose Discord Bot) is a advanced configurable discord bot providing a load of useful features for help with managing a server. It supports custom commands feature to create customizable shortcuts and automations. Custom command info.:
System Input : -flair GER
System Response : [GER] ne3lakolkar
For Example:
Some exceptions and errors that can be taken care by caution/error message returned by the bot. For example:
- Missing permissions - The bot must have higher authorization permissions to change the user's nickname. In some cases permissions need to be overridden by users. For example: Moderators and Admins.
- Username/nickname length - Discord supports usernames upto 27 characters. Make sure that the flair and the username fits within the range provided. You may return a custom exception response as:
- Case Sensitivity - The commands are case sensitive so the spelling mistakes are NOT taken care of.
Note: You cannot manipulate bot permissions from YAGPDB Dashboard. Must change the settings in the discord role options and permissions.
Here are some of the examples how you can use the bot. Currently I've demonstrated the purpose of fulfilling the National Football team's flairs and also F1 Constructors flairs. Can also be implemented to classify moderators and admins from rest of the users.
Input | Response | |
---|---|---|
Germany National Football Team flair | '-flair ger' |
updates username to '[GER] username' |
F1 Mercedes Constructors' flair | '-flair merc' |
updates username to '[MERC] username' |
Moderator/Admin flair | '-flair mod' |
updates username to '[MOD] username' |
Head over to YAGPDB Bot console and try it out yourself!
Thank you.
I personally developed this project for Chelsea Football Club Official Discord Server Community. National Football is on horizon and members from the same club now start supporting their favourite countries. To classify and make the engagement among these international football rivals, flairs was introduced. It was implemented just before the tournament started. Hence the bot command notched a huge response.
Feel free to join the community on discord by https://discord.gg/chelseafc