- Published on
Discord Learning Made Fun
- Authors
- Name
- Ronald Luo, MSc
Hi there!
Check out the official landing page: url 👈
Project Description: url
The quiz bot you needed but never asked for. Answer questions, get points.
Commands:
!daily to generate a question.
!leaderboard to display points.
!init to set points to 0.
Background:
With the majority of education moving online, students find that the process of learning, once enjoyable is now becoming a solo mission. Discord allows users to create channels and chat with friends - can the platform also be used to take back the fun in learning?
Technologies Used:
This trivia bot was written in JavaScript, primarily using discord.js url, and is currently hosted on the cloud application platform: Heroku url. Although no APIs were used here, a full list of commands and API are included in the GitHub repository url
Biggest Challenges:
One of the biggest challenges I faced in creating the bot was in working with data in nested forms, particularly the objects, lists, and collections received by the discord server. Because many of them have their own properties, I had to explore how different loops were more appropriate for working with different data structures.
Next Steps:
- Implement a backend. Currently, the data is being stored in a plain old JavaScript file. Without a backend, the bot is unable to store the users points for a long period of time. This means that after a few days, scores are reset to their default, and the user must re-initialize the leaderboard.
- Generate questions from API. The current questions were written by me, but the bot has the potential to generate infinite questions. There are trivia APIs (OpenTrivia DB url, jservice url) worth exploring which might accomplish this feat.
👋 Thanks for making it to the end!