A Discord bot that gets a random question and awaits an answer.
A fun little bot that I made in my free time to improve my knowledge with built-in Discord interactions e.g slash commands, buttons.
Credits to Zechariah Tan for coming up with a 'framework' for the bot.
Grab a question with /question
(interface is still being worked on):
Then, choose the correct answer based on the corresponding buttons within 15 seconds. Or get it wrong.
If you've registered for a profile, you gain XP per question answered correctly.
View another player's profile! (if already registered) (WIP)
View the leaderboard for the guild! (WIP)
Guilds are stored in Firestore, where each one contains a list of (registered) players. Players' progress does not apply across guilds. All questions are grabbed from the Open Trivia Database API.