Skip to content

TeamRandomizer discord bot utilizing the Hikari API w/ lightbulb framework

Notifications You must be signed in to change notification settings

basilnoor/TeamRandomizerBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeamRandomizerBot

If you wish to use this bot in your discord server simply clone the repository and run the trbot.py file. I will host it online soon so that all you need to do is add the bot into your discord!


Languages/Frameworks/Tools used:

  • Python, Hikari API, Hikari-lightbulb, Markdown, Visual studio code

Project Goals:

  • Create a TeamRandomizer discord bot capable of randomly generating two teams based on a weighted skill system.
  • Discord bot coded in Python and utilizes Hikari API to setup the bot and the lightbulb framework to utilize commands.
  • Utilizes SQLite3 as an SQL database to store players and maps.
  • Provide an appealing interface with various functionalities for the user to add, remove, edit players and more.

Future Goals:

  • Host discord bot online so users can simply invite the TR bot into their discord server and use it freely.
    • Currently trying to find a free hosting service with persistance. Since TR bot utilizes SQLite3 for its database the hosting service has to consistantly update the database so that adding, removing, and editing players is instant for the user.
  • Add an easier way for users to rebalance teams
    • Currently users must redo the "/tr start" command.


Documentation:

Here i will go over how to use the bot and its functionality.

To view all the possible commands for the bot type "/tr".
TRbot utilizes group commands with the prefix /tr to make it easier for the user.

To get help on how to use the commands and there limitations use "/tr help".
This command provides the necessary documentation for all the commands.

To add a player to the database use "/tr add-player".
The names in the database are all unique and do not account for capitals or any special characters.

On success the bot will return the success embed as shown below:

On failure the bot will return the failed embed as shown below:

The same principle applies for removing players, editing players, adding maps, and removing maps.
The bot will always return the appropraite embed.

To check all the players currently in the database use "/tr players".

Similarly, the same can be done for "/tr maps".

Main function:
To generate two randomzied teams of equal level use the command "/tr start"

The resulting power levels of the teams is provided for the user in case they would like 
to potentially rebalance the teams as the algorithm isn't perfect. More info in "/tr help".

To randomly select a Map from the database use "/tr pick_map".

About

TeamRandomizer discord bot utilizing the Hikari API w/ lightbulb framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages