Skip to content

Custom command code for YAGPDB Bot to add flairs to the user's nickname.

License

Notifications You must be signed in to change notification settings

ne3lakolkar/YAGPDB-Custom-Command-Nickname-Flair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord YAGPDB Custom Flair Command

Desc: Custom bot commands designed for YAGPDB Discord bot for adding customizable flairs based on the user's requirement.

Source code

Source Code contains the command code and the expected response.

Work Environment

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.:

response

Implementation

System Input : -flair GER

System Response : [GER] ne3lakolkar

For Example:

response

Exception Handling

Some exceptions and errors that can be taken care by caution/error message returned by the bot. For example:

response

Known errors and mishaps

  • 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.

response

  • 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:

response

  • Case Sensitivity - The commands are case sensitive so the spelling mistakes are NOT taken care of.

response

Note: You cannot manipulate bot permissions from YAGPDB Dashboard. Must change the settings in the discord role options and permissions.

Examples

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'

Conclusion

Head over to YAGPDB Bot console and try it out yourself!

Thank you.

Misc./Extras

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

response

About

Custom command code for YAGPDB Bot to add flairs to the user's nickname.

Topics

Resources

License

Stars

Watchers

Forks