Inspiration
One of the biggest inspirations for this project was our desire to gain an understanding of RESTFUL APIs and to build discord bots. We had found that RESTFUL APIs were extremely useful, and knowing how to utilize them would be a valuable skill to have. Knowing how to build a discord bot also seemed appealing to us, as we could implement bots we make on our own server.
What it does
The main function of our discord bot - Require Bot - is to let users play a game of Higher or Lower on discord. Instead of comparing monthly google searches, Require Bot compares the number of users in subreddits on Reddit.
Require Bot uses RESTFUL APIs (i.e the GET function) to acquire data about the subreddits, including the icon, number of members, and the name of the subreddit. The bot then put this data into embeds on discord for the users to see and play the game.
How we built it
Our bot was created in python. The other main technologies we used were RESTFUL APIs and the Nextcord library.
We used the RESTFUL APIs to gather relevant data (as mentioned above). and the data was then stored in a text file. Next, we used Nextcord on python to program the game onto our bot and to make use of the data we had collected. In addition to this, we also configured the bot to respond to emoji reactions on messages, send embeds and edit messages
Challenges we ran into
Most of the challenges we faced during the hackathon were while trying to use Nextcord to create the bot.
One major problem we faces was trying to implement embeds the way we wanted. For example, we wanted to show both subreddit icons within 1 embed message. However, this turned out to be not possible using Nextcord on Python, this lead us to have the bot send two separate messages, each with different embeds of icons.
Accomplishments that we're proud of
The successful Implementation of RESTFUL APIs. This is one of the accomplishments we are most proud of, as it was the main inspiration for this project
What we learned
After completing our discord bot, our team has gained a strong understanding of RESTFUL APIs and Nextcord.
What's next for Require Bot
We hope to take the use of the APIs one step further and make it so that Require Bot will be able to not only get information from wikis but also be able to post and update data on wikis too.
Built With
- nextcord
- python
- restful-api

Log in or sign up for Devpost to join the conversation.