Pegasus V1.2 Discord-FireBase-Roblox Ban Bot

Not really? There is a reason why I used noblox API for example to get the player id from the player username and check if the player exists in Roblox like I said before.

1 Like

Could you explain it to me in depth? Like I said, assuming from what I saw in the code itself, noblox is absolutely useless…

Yes I could. I made it so you only need the player username and a reason when banning for example: !ban GeneralLPrince Exploiting. The bot will use noblox API to get the Player Id from the suspect GeneralLPrince.

I also use noblox API to check if the suspect exists in Roblox

Banned from where? The game you haven’t linked to? The discord server that doesn’t even have the authentication api in it?

What you mean? The player will be banned in your game if you linked the script I provided with your firebase data.

The bot will create a new data in FireBase with the ban informations for example: The player ID, the moderator and the reason why they got banned. When a banned player joins the game the script that I provided above will kick them and state why they got kicked and who banned them.

I still don’t know what you trying to expain but very much there is a reason why I am using noblox API

If you want me to explain you in detail how my bot works I would love to

Could you point that out in the code itself starting from setting up the place ID?
I went through the code again and there’s no mention of Place or game ID in index.js nor in your env file and only Auth it’s calling for is fire base related…




3 Likes

The code what you seeing is the code that handles the bot only. It doesn’t kick or ban the player since I think that’s impossible? I provided a RBXM file that contains 2 scripts, a script and a firebase API by @MXKhronos.

Basically what it does is, everytime a new player joins the game, the script will tell the API to check if the player user Id is found in the database. If the player had a data then it kicks them from the game.

1 Like

And Like @GeneralLPrince said, Noblox Is to GET the Targets UserId

1 Like

edit: sorry, i didn’t mean to reply to you i thought i was commenting on the main post

The 3rd party site aspect of this would be daunting to set up in my personal opinion, and can be avoided completely, in other words this can also be done using a simple webhook and Messaging Service. Along with storing bans you can use a datastore to store any bans given from users.

IE:

   local commands = game:GetService("MessagingService")

function(user, mod, context)
    	commands:PublishAsync("banusers",user,context)
        
    local bambi = {
    		["username"] = ("User Was Banned"),
    		["content"] = ("User**"..name.."** was **banned** by **"..moduser.."** **"..(context).."**."),
    	}
    	bambi= http:JSONEncode(bambi)
    	http:PostAsync("Discord Webhook", bambi)

(Of course with more detail you’d have a full logging and ban system via Roblox To Discord)

1 Like

Edit: Ops sorry there was a misunderstanding

1 Like

In the part where it says that anyone with the database reference can view, edit, and deleted data in 30 days. After those 30 days are over, I think it’ll default to block all requests to the database until the end user writes rules for it. The reason why I know is because I did this before for a Discord bot and it said in an email that all requests after 30 days will be blocked, so unless they changed this, it’ll be this case.

For anyone who is having trouble with opening the RBXM file here is a model instead Firebase-Roblox Ban script - Roblox

Side note: I have many plans for Pegasus so I would like to announce some of the plans that I would like everyone to know.

I am planning to transform Pegasus into a closed-source public bot, whoever I am still gonna keep the V1 of the bot open-sourced and still offer support for it. I will also include many more commands such as verification, group functions like exile, promote, set rank, demote, accept joins requests, and shouts.

Whoever, due to school started this might take time. Anyways, I am always open to suggestions and I would love to offer support to anyone.

My Discord user: Prince#5191

Where can I find my Authenticaion Token for the RBX model?

You will find your Firebase Authentication Token here:

1 Like

I would like to know how to make a getban command for the Discord bot, what I want it to do is when someone types !getban [PlayerName] it will return with the Ban Reason. Your help would be appreciated.

Hello, sorry for a late response.
I am planning to add getban command for V1.2 that might be done in 2-4 days, once I release V1.2 I will notify you.

Thanks for using Pegasus.

1 Like

Works great! I definitely recommend this to small businesses in the Roblox Platform.

1 Like

Why is the name Pegasus?
@GeneralLPrince

1 Like