Inspiration

As university students, organization is more important than ever, and it can be tedious to open up and navigate to an online calendar whenever you want to add something to a to-do list. Thus, we made the ToDo bot, which runs on Discord, an application that many of us often have open in the background.

What it does

With simple commands, items can easily be added, removed, checked, and unchecked to this list, which is hosted in a cloud database. Additionally, the list can be printed as a Discord embed, and is automatically edited as updates are made.

How we built it

We built the bot in Node.js mainly using the Discord.js library, as well as the mongoose npm library to easily connect to MongoDB. We used a collection in MongoDB to store user profiles, which would contain their id and other options, as well as an array of tasks, which contain details such as task name, date, and completion status.

Challenges we ran into

A few challenges we ran into were primarily concerning connecting to the database, and figuring how to correctly read from and write to it. None of us had experience with cloud databases, so it was very difficult to figure out and debug our code. However, once we got the hang of it, the project went quite smoothly.

Accomplishments that we're proud of

We're proud of successfully completing our project and learning how to use JS and Mongoose by ourselves.

What we learned

We learned how to connect to MongoDB using Node.js, which is extremely important, as databases allow for endless possibilities compared to values stored at runtime, which we had been limited to before.

What's next for Discord ToDo Bot

Next, ToDo bot might get upgraded functionality, such as automatically deleting command messages to prevent spam, as well as automatically deleting past tasks to save database storage. Additionally, we are thinking of adding a calendar function and a move date function to the list.

Built With

Share this project:

Updates