#uhmActually This project was created at technica 2023
We all have that one friend. You know them. They are an endless fountain of inspiration, constantly telling new and interesting facts. However, sometimes they will hold all of their knowledge over you like you are a hopeless idiot- which to be fair- is often true.
I have created a discord bot to share different types of fun facts and knowledge so that the rest of us can compensate.
This Discord bot has four primary functions currently:
- displays the Wikipedia page of the day
- uses the Wikipedia API to gain access to interesting things and events that happened in the past on the given date
- uses the Wikipedia API to search through Wikipedia and gives short descriptions of the results.
- Plays a small trivia game
The project is made completely out of JavaScript using Node and the Wikipedia API, discord.js, and the Open Trivia Database.
I started by setting up the bot using discord.js, which is a library I have never used before. Then I moved on to setting up the Wikipedia commands, and finally adding the trivia aspect.
For me personally, the most challenging things were interacting with libraries and APIs that I have never used before and the harsh time limit.
I am proud that I was able to push out a product that has all the commands that I set out for it to have.
I am so much more familiar with all the different APIs that I used, especially discord.js. I honestly just learned a lot about completing a project in general!
Things to change:
- add links to the Wikipedia pages that are referenced
- make the trivia questions be able to be answered through discord reactions
- track trivia points for each user
Things to add:
- fun fact command