Authored by
Dilan Cruz-Flores, Raion Fet, Joshua Ikegwu, and Dhruv Rathod
Inspiration
All of us play the game Counter-Strike: Global Offensive together using popflash.site. Sometimes, we would like to know our stats after a game, or we would like to know how well we did compared to someone else that we played with.
What it does
This Discord bot responds to certain commands done by the user on a Discord server. The user must start by registering their popflash profile to their Discord username by way of the !reg command. Doing so will send their popflash id to our database based in MongoDB. Once the user is registered, the bot will let the user know by way of a Discord message and will in return the user's stats in the form of a Discord message
How we built it
This project was built using javascript on the front and backend. We also used Discord's developer portal in order to create the actual Discord bot and give it the appropriate permissions.
Challenges we ran into
First and foremost, none of us have coded in javascript before, which was a slight problem seeing as how our entire project depended on us being able to use javascript. Secondly, once we had the Discord bot created via Discord's developer portal, we had trouble getting it to respond properly to our commands. We also had trouble getting Docker to work properly with the database that we were using.
Accomplishments that we're proud of
We're quite proud of the fact that we managed to get the bot to respond to different commands besides !reg.
What we learned
We learned a lot about javascript! Since it was the first any of us had seen javascript, we learned to rely on each other for help and assistance in case someone else had figured out something we hadn't. We also learned a lot on using a database, which only one of us had worked with.
What's next for pop-bot
We would like to implement many more commands. Some potential ones are:
- !compare: By passing two users id's, we could compare the two people's stats
Log in or sign up for Devpost to join the conversation.