Inspiration

I simply wanted to create something that I could see myself using on a somewhat regular basis. I use Discord together for a lot of group party game sessions, and a Trivia Bot with semi-obscure knowledge is perfect for that.

What it does

As the name implies, it's a Triva Bot. It allows you players to compete in a game of trivia. You can play with as little as 5 questions and as much as 20 questions. There are two categories to play from, one based on the show Community and one based on the show Seinfeld. And anybody in the server can play!

How I built it

I built it primarily using Python and the Discord.py library.

Challenges I ran into

The last time I used Discord.py was a few years ago now, and it has since received some updates so that some of the syntax and functions are now outdated, so it was a little hard adjusting to that. Additionally, actually trying to map out the logic as to how the trivia questions would be shuffled proved to harder than I anticipated as there were a lot of small nuances that kept cropping up.

Accomplishments that I'm proud of

I'm quite proud of the scoring mechanism and how it's able to keep track of multiple players' scores at once.

What I learned

I learned how to readjust to this new updated Discord.py, and I also learned some cool new tricks, such as identifying which users typed out a specific message, something that I didn't know beforehand.

What's next for Discord Trivia Bot

Originally, I had intended for there to be a "Mixed" category where players could get a mix of questions from both categories, but I had to scrap that in the name of time. That's something to implement in the future. And of course, more categories can be added to make the question list even richer.

Built With

Share this project:

Updates