GithubHelp home page GithubHelp logo

ne3lakolkar / yagpdb-custom-command-nickname-flair Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 279 KB

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

License: MIT License

discord discord-bot bot yagpdb yagpdb-cc yagpdb-discord-bot

yagpdb-custom-command-nickname-flair's Introduction

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

yagpdb-custom-command-nickname-flair's People

Contributors

ne3lakolkar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.