This is a fun Discord bot made with Python! It reads from a quotes.py file of quotes saved from UB3R-Bot, randomly chooses a quote, and uses regex to print the quote without the speaker. Once the correct speaker is guessed, the bot replies with the full original quote.
bot.py obtains the quotes list from quotes.py
It then obtains a random quotes from the list, displays the text for users to see, and initializes the game.
The game won't stop until the correct username has been guessed or -giveup
has been triggered.
These instructions will get you a copy of the bot up and running on your local machine and on the discord servers as well.
Make sure to create the two following files:
.env
quotes.py
This is where you store your bot's discord token. The file should contain the following:
DISCORD_TOKEN={your discord token here}
Alternatively, you could replace TOKEN = os.getenv('DISCORD_TOKEN')
line 9 in bot.py
with your token itself. Though this is not recommended if you are planning on pushing this to github (as your token will cry).
The quotes dump from UB3R-B0T could be found here: https://admin.ub3r-b0t.com/api/quotes/514949893278924802
Simply populate your quotes.py
with the following:
quotes={UB3R-B0T QUOTE DUMP HERE}
replace {UB3R-B0T QUOTE DUMP HERE}
with the entire list of JSON quotes from UB3R-B0T
-
Niveditha Kani - Developer - NivedithaK
-
Lance Santiago - Developer - LanceSantiago
Inspired by the members of the UTM White Van: discord.gg/whitevan