I’ve created a self-hosted discord bot that can be used to manage your Roblox moderation needs while you’re offline. Yes, I’ve taken inspiration and recreated this bot, however, I’ve made sure to update it, clean up, and bring some new features to the project.
The discord bot is written fully in NodeJS, It does use a few dependencies that are required to run the bot. It also interacts with the Roblox cloud API, to deal with datastores & communicate with the servers.
If you encounter an “Invalid API Key” error, please go over to the credentials page and give the IP 0.0.0.0/0 authorization so any IP is able to access the API with that specific key.
Yes, I am planning to maintain this project so no one will have to worry about it being outdated for a while. Please make sure to also recommend new features for the bot, and I might consider adding them.
What was cleaned up in comparison to these modules that makes this better? Would love to see in-game announcements, being able to ban for certain durations, and a kick system with a warning shown to a player that’s being kicked.
If you do take a look at the source code of both you can see that my bot is more scalable, you are definitely able to add more commands of your own to the bot as It comes with a command handler. If you look at the other bot, and when it was updated it was 2 years ago meaning the code it uses is outdated since the packages have been updated to work with the changes in the Discord API.
Thank you for the suggestions! I’ll make sure to incorporate them in the coming update!
Yeah, I agree with you. I was planning on switching it to an env file, while in was writing the bot I was thinking in a sense that you are hosting it on your on personal server like a RPI. I am planning to also incorporate slash commands in the next update. I’ll definitely add an option to add a custom reason but it will be defaulted to the message in the config
Might need a tutorial on hosting this, not going to lie. Getting Missing Script: “start” whenever I try to run the script via Repl.it using npm run start
I did come across this while I was attempting to run this on my side. I’m not really sure why that’s happening on repl, but I’m guessing it’s because the virtual server is not able to handle the usage of the bot. However, it was fixed after I turned off the bot and turned it back on. I really recommend using some other service to host the bot.