Inspiration

  • I love Discord. I online on Discord for more than 12 hours a day. Even when I sleep, I also on a voice channel. Because of that, I want to develop bots that help Discord users.

What it does

  • User will request questions with their configuration (amount of question, category, difficulty, and type of question). The bot will send the request to API and then send the question every 30s.
    • It has graphing function that shows the user's performance.
  • Two types of leaderboards (server and global) for more competitive.

How we built it

  • Bot: I'm using discord.js library for connecting the app to Discord APIs.
  • Question database: using opentdb.com for questions.
  • User database: I was thinking MongoDB but I decided to use sqlite3.
  • Graphing function: Using matplotlib to draw graphs.

Challenges we ran into

  • This is my first time doing it on my own so I have problems with time management
  • I have some issues with sqlite3 from saving JSON and Array data.
  • I'm not a good designer so UX/UI is a big problem.
  • I'm not familiar with matplotlib to draw graphs so I need to research online for data.

What we learned

  • Better with processing JSON and Array.
  • How to manage times.
  • Use matplot to draw graphs.

What's next for Trivia Discord Bot

  • Better UX/UI
  • Leaderboard by Country
  • More categories.
  • Update stability.
  • Custom function that shows users which category they need to improve.

Built With

Share this project:

Updates