I've made discord bots before, but they were all simple and didn't any real functionality. I decided to make a discord bot that has a real purpose.

The bot is the ultimate development tool for discord users. It allows users to create files, edit them easily, host their html, and run their javascript. Users can develop websites and scripts without ever leaving discord.

I built it using node.js. I used the discord.js library to interface with discord. I used mongoosejs, which is a object modeler for mongoDB. I also used expressjs for the webserver.

The biggest challenge I faced was coding alone. I should have joined another team. I experienced challenges working with MongoDB Atlas, when I finally started the bot on my server, they ignored the database calls because the IP wasn't recognized. While this was frustrating at the time, it shows that MongoDB atlas deeply cares about security. Giving the bot access to my website was also difficult. I had to edit the nginx configuration, which I have very little experience with.

I am very proud of how it works. It is capable of every function I envisioned it having in the beginning. I wasn't originally planning on moving the bot to my server, but it was easier than I thought it would be.

I learned many methods for dealing with strings. The indexOf and split methods were the most useful for understanding the user's command. I learned more about nginx configuration and mongoDB. I gained experience with javascript too.

I will leave the bot running on several discord servers i'm in. The code is open source, so anyone with a database and a computer can create a new version of it.

Using the free domain for a year offer, I bought generalintelligence.tech.

Built With

Share this project:

Updates