FakeMilo is an educational discord bot where you can organise a tournament and compete with your friends to a battle of trivia questions.
The features of the bot are split into 4 cogs (as of now) each of which caters to a set of commands and functionality.
The cogs used here are:
- exe2 : Admin only command used to run code snippets without actually needing to modify the code. For on the go testing.
- help : Caters to
m!help
command. - player : Handles the database queries and also shows highest scorers of all time.
- quiz : The main cog which handles the tournaments by creating brackets and conducts matches by fetching queries from the trivia API.
- Technology Stacks
- Usage
- Installation
- Links
- Contributors
- Python 3
- discord.py
- Mongo DB
- Trivia API
- Invite the bot to your server from the invite link
- Grant all the necessary permissions
- Type
m!help
to receive all the help you need with the bot.
Some of the common commands are as follows:
m!help
: guides the user on how to use other commandsm!quiz <parameter1> <parameter2> ...
: Creates match brackets and organise the tournament among the users providedm!match <match number>
: Conducts matches according to tournament brackets.m!highest_scores
: Returns the highest scorers of all time
If you want to run your own instance of the bot follow the following steps:
Clone the repository using
git clone https://github.com/embiway/FakeMilo.git
Install the requirements using
pip install -r requirements.txt
Create a .env
file and add the following tokens
F_TOKEN=<Your bot token>
CONNECTION_URL=<Your mongodb cluster url>
Run the following
python bot.py
Team Name : br1cks