Inspiration
My friends and I always had these bots in our discord that has many different commands. Some that we use a lot, and some that we never touch and are pointless. Marlon and I thought it would be cool for us to have a bot that has commands that we can actually use every single day. We also always wondered what it takes to create a discord bot and if its actually worth spending time to create.
What it does
Our Eren discord bot has many different commands in order to achieve certain things. For example if the user inputs !play [YouTube URL], the bot would join the call and start playing the music. If you would like to pause the sound you can just input the !pause command and use !resume to continue afterwards. Another command would be the Covid-19 tracker. Covid-19 is very prevalent in our lives for the past year and a half and we often dont realize how bad it is until we see the numbers. By inputting the command !activeCases, we are able to see active cases in Ontario. We have more commands such as !dog which gives us a fact, !meme which uploads a meme png, !anime which outputs a random anime and its rating, as well as 4 star wars commands which outputs a quote from one of the characters chosen (!obiwan, !yoda, !darthvader, and !palpatine)
How we built it
We built this bot using Python as well as the Discord API and other API sources.
Challenges we ran into
We had multiple challenges with programming this bot. One big problem was with the Covid Tracker. As it was our first time ever working with this Discord API and other API's, we were unfamiliar with the syntax as we have not touched Python in a long time and we were not sure how to extract the data from the Covid-19 API. It took us a lot of trial and error as well as debugging in order for us to be able to solve the problem. Another challenge that we dealt with was with the music player. We had to download several libraries in order for it to be able to play music such as YouTube DL, and FFMPEG. Downloading these libraries were quite a hassle and not as simple as we thought. Once we were able to properly install the libraries, coding it was a breeze.
Accomplishments that we're proud of
After completing this Eren Discord Bot, we were very proud of what we had finished. Marlon and I have never attempted programming a Discord Bot, and were not super confident with our knowledge of APIs and JSON however we both pushed through and got through ever hurdle in our way. We both came up with fun commands that we always wished the discord bot in our server had, and we also came up with commands that we felt were important in our everyday lives. The workshops that were provided from TOHacks also helped a lot with this program as it taught us how to properly start up a discord bot and gave us the starting steps of this project. Marlon and I learned a lot through this experience that we will keep with us for the rest of our programming careers.
What we learned
We learned how to program a Discord bot, how to read a JSON file properly, how to access and extract data from an API, downloading libraries, and how to properly debug program.
What's next for Eren Bot
We plan to add much commands such as for example a weather command that displays the temperature and weather conditions of a location, more interactive games, and much much more.

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