Inspiration
Over the last year, we were hit with a deadly pandemic that had us stay isolated in our own households. Albeit an odd and strange, even scary time, one thing that kept us engaged with friends that were distanced was Discord. Discord had many channels and voice chats that made the lockdown way more fun. In Discord, there are many bots with different features that would add interesting aspects to a server, which is the overall hub for Discord. We as a group wanted to create our own super bot that would have many great functions all combined into one, including functions that we wanted that did not already exist. This bot would be super useful to members using it and would make our server even more unique!
What it does
AutoMod moderates a Discord server! AutoMod takes commands that start with '-'. This bot can have mini conversations with members, such as -ping and -pong. It also makes sure you have certain permissions to do certain tasks. AutoMod tracks and records the number of people on the server and updates a voice channel every 5 seconds. The bot can also serve punishments to members that spam, which will prevent them from messaging in chats and speaking in channels until they are unpunished. Finally, to clear the spam that was sent, you can call a clear command with a certain number and that many messages will be cleared in that given channel.
How we built it
We used node.js and discord.js languages to code AutoMod on the platform Visual Studio Code as a group of 4. The code consisted of the main program along with other files that contained the methods for these various commands.
Challenges we ran into
Discord.js is considered its own language, meaning it has a certain syntax and unique functions that other languages do not. We were not familiar with this language, thus a challenge we faced was that we were not programming as efficiently as we could have with another language such as Java.
Accomplishments that we're proud of
We are proud that the bot works, duh. We are also proud that we were able to get a gist of how Discord.js works. This is another step in increasing our coding knowledge, as learning various languages can help us down the future if we become professionals in the industry.
What we learned
We learned how Discord bots actually operate. We learned the basics of Discord.js and even more about node.js than we had previously.
What's next for Auto Mod
For the future of AutoMod, we plan to increase its functionality and capability.
Built With
- discord.js
- node.js
- visual-studio
Log in or sign up for Devpost to join the conversation.