[V2] Discord-To-Roblox Ban bot | 100% Free, End User Friendly & Stable!

Is it possible to add multiple roles access to the bots commands?

It’s not open sourced, it’s just for personal use

This looks amazing! Along with that, you should start adding more features such as a server-ban system and a temp-ban system.

server-ban <Username> <Reason> | This command will ban the specified user from all servers that existed once the command was run and will not allow them to join until the server dies out. Obviously, they will still be able to join new servers.

temp-ban <Username> <Time> <Reason> | This command will ban the player from all current and new servers until the specified time is over with the reason. The time input could be 1m (1 minute), 1h (1 hour), 1d (1 day), 1mon (1 month) and 1y (1 year).

Obviously, there should be automatic checks with these commands which could make it harder and these checks are to ensure they haven’t already been banned by other commands, and if so, it will specify the data. Along with this, there should be a way to undo these commands.

And, if you do add those commands, you should think of a unique name for this open source as it is evolving bigger than before. (:

1 Like

Please use repl.it instead of glitch.
See https://anidiots.guide/hosting/repl
Glitch doesn’t allow you to host bots now, repl.it does.

This is incorrect. You can 100% host bots on glitch.

This article implies I’m breaking a rule by having the bot up 24/7 for free by using hacky self pings or other methods to keep the bot online. This is not the case for this system as the bot is kept up from external requests by Roblox, which is a legitimate functionality and not an abuse of their resources. Additionally, glitch used to have an issue where discord would blacklist the IP range they used because some users would develop bots that abused the discord API, so some of the bots would be shut down, but glitch is actively working on solutions to prevent this and has thus far been successful from what I can tell.

You can use repl, but glitch is a perfectly viable option. I’ve been using my personal version of this bot for months and have had 0 issues with 24/7 uptime.

1 Like

True, but it’s against their TOS to do that. :man_shrugging:
I’d recommend switching, as it is against their TOS with Glitch.
The external request from the Roblox game theoretically count as “pinging the bot”

There is no “theoretically” here. There is no violation using this system.

This is not against their TOS because it’s not externally pinging the bot with pointless information. It’s apart of how the bot transfers information to the Roblox server. Without the periodic request, the bot has no way of sending information. Since the GET request to the bot is a legitimate functionality and not intended for the purpose of keeping the bot online, this is not against TOS.

Like I said before, you are free to switch but I will likely not write a tutorial for it.

2 Likes

How am I able to convert this .lua file into an .rbxm file? It won’t let me drag it into Studio.

I’d recommend what I did and just opened it up with a notepad application as it will display the code and you can easily just copy and paste it into studio. :smile:

1 Like

Ah, that’s smart. It works now, thanks so much!

It is possible to have multiple roles have permission.
#1. Go to your glitch project
#2. Go to server.js
#3. Find where it says rolename = “(Admin Role)”
#4. Create another variable ex. rolename2 = “(Admin Role)”
#5. Control F on PC Command F on Mac and search up “rolename” and you will find code that will look like this “role => role.name === rolename”
#5 you will change that to “role => role.name === rolename || role.name === rolename2” (Or whatever your variable is). You can do this step as many times as you want make sure you have created your variable

I coudn’t get it to work, i don’t really understand discord bots…
image
Is this the same as Live App?

Mine doesn’t I’m having the same issue, how do i fix it?

Are there any errors in the Logs?

I fixed it, It was getting another error… I just needed to re create another live app thing;

I’m not sure if this is a bug or my fault, however every time I run ; ban userName it keeps saying
“Attempting to Ban username v_oulge…” for ages!

It bans the player off the game however it keeps saying “Attempting to ban” on discord, this also does happen with unban and kick.

Anyway to fix?

EDIT: No errors in console/logs either
Bug

1 Like

I believe it isn’t supposed to say that it banned or not, and even then it doesn’t really matter. It works anyway.

NVM.

It is supposed to say it, but it works anyway, seems like a glitch.

I am unable to reproduce this issue.

From what I can tell, I believe the Roblox server is shutting down before its able to send a response to the bot. Just to be sure, could you test it with more than one person in the game? It should take around 6 seconds to respond.

1 Like

Oh, could be that! Wasn’t able to test it with multiple people, so yeah, probably that!

The reason this is happening is because there are no roblox servers that are running so it will not receive the confirmation for the ban. When using the bot there should be a roblox server online.