Inspiration

During the pandemic, we've had a hard time committing to planned events because we often forget when they happen. Additionally, we've found a need to access League of Legends information quickly and not being able to find a discord bot that did everything we wanted it to.

What it does

We built a discord bot that responds to certain keywords with memes/images, and it can set an alarm for a given time and day and then message the channel it was sent in at that time.

How we built it

Our bot is written in JavaScript using the discord.js module to use the discord API. The alarm functionality was added using the agenda.js module which uses a MongoDB to schedule events.

Challenges we ran into

We ran into challenges when using the agenda.js module, It took a lot of debugging to get the constructor working and to figure out how to properly pass data to jobs.

Accomplishments that we're proud of

We are proud of how we implemented the job scheduler to create an alarm system that saves to a database so hopefully surviving a server restart.

What we learned

We learned how to make a discord bot, how to schedule events via a Node.js module, how to get a simple database running locally.

What's next for Discord Squad Bot

We would like to add to the number of keywords that the bot responds to with images. Also the alarm functionality will be improved so that a custom message can be included with the alarm and displayed when it goes off. We may also add a timer that works of the same agenda module. Finally Discord Squad Bot will get moved to the cloud so it is not running on our personal computers.

Current Commands

stonks
galaxy brain
snoop dog
!setAlarm [hour]:[min] [month(optional)]/[day(optional)]/[year(optional)]
[5v5, rift, aram] [champion name]

Built With

Share this project:

Updates