coreBlox | A Discord to Roblox Bot ( Ban API Support )

Check out the Showcase!

3.2.2 OUTDATED Preview

Getting Started

Prerequisites

Installation

  • Clone the repository

git clone https://github.com/corehimself/coreBlox.git

  • Navigate to the project directory:

cd coreBlox

  • Install project dependencies

npm install

  • Setup your .env file

BOT_TOKEN=your_discord_bot_token

MONGODB_URI=your_mongodb_connection_string

ENCRYPTION_KEY=your_secure_16_character_key

  • Install the roblox script:

  • Copy the DTR.server.lua script from coreBlox/Roblox directory

  • Paste it into the ServerScriptService of your game

Usage

Start the bot by running:


node .

Basic Commands

  • Setup your Roblox API key:

/api-key set <YOUR_API_KEY>

  • Add a Roblox universe:

/universe add <game_name> <universe_id>

  • Moderate a user:

/game ban <server> <player> <duration> <length> <display-reason>

DTRProductionOUDATED.rbxm (20.6 KB)
Want the model instead?

I want to ensure that you have the best experience possible with our bot. I highly recommend that you avoid executing commands repeatedly - this can cause a buildup of requests and potentially slow down your experience.

31 Likes

Curious, how does this keep itself up 24/7? Iirc Glitch made a policy a few years ago that made artificially keeping the projects banable

2 Likes

It doesn’t keep its self up, unsure if you read it at all, it’s a local hosted repo., however the Roblox → Glitch POST method works to keep it alive with long response times.

TL;DR
Host on your own PC until that support is added

2 Likes

The Lua code that you supply doesn’t even send requests to a server, so this just doesn’t exist atm

If it did, and you wanted to host on your PC, you’d have to port-forward the server so that Roblox can send requests to it, but if you don’t know how to do this, you could potentially make your network insecure

You mentioned you wanted to add Glitch support, but doing this risks people getting their Glitch accounts banned for TOS violations. I’d recommend switching to Repl cause they are more lax than Glitch for hosting things like this

2 Likes

I didn’t say that my code does? The previous repository did, which can be found on that post, more information can be reviewed at your discretion.

On that note, I localhost all my projects anyways, kind of crazy to think that I can get everything to work without port-forwarding, and only utilizing discord <-> node → roblox API.

I appreciate the input anyways, when I do get ready to add support for Hosting, I’ll double check my options once more once I reach that point.

3 Likes

Ohhh, I got confused when you said the post request part as I thought you meant this and not the original one. Yea, if Roblox doesn’t need to send anything to your server then no port-forwarding is needed. My bad

2 Likes

Is it possible to add ban durations/warnings?

2 Likes

Hey there!

It is indeed possible, however curious as to how you’d like it implemented. Could have it ran as !ban <user> <time>, if there is no time specified then auto perm. ban by default, or couple days.

1 Like

uhhh discord prevents you from getting requests from roblox because of the rate limit

2 Likes

Uhhh I don’t send GET requests? I send POST requests directly to the datastore, and saved lol.

1 Like

Yeah, !ban works well. Autoperm ban by default sounds great.

2 Likes

Sweet, I’ll get onto it! Should it be !ban user 1s/1m/1h or more extensive period support, !ban user 1d/1m/1y

1 Like

A mix of both possible? 1hr/1d/1m seems viable.

1 Like

Update being committed Friday/Saturday

1 Like

Version 3.11 Released

  • Implemented an optional time parameter
  • Command logging
  • Updated the user search minimally
  • Discord Bot Optimized for Performance
1 Like

It appears that you use axios and https. Both packages do the same thing, so I recommend that you solely use axios.

2 Likes

Hey there!

Thanks for the input. Meant to remove that as I was testing with that earlier on before I’ve decided to release. Updated.

V3.2.0 is near release.

Mainly wrapped in a module, rewritten most of the functionality. Now available for testing, latest release & changes can be found on the github page here.

V3.2.0 Development Release

  • V3.2.0 now released
  • Performance fixes
  • Discord Bot Optimized
  • Slash Commands coming in v3.2.1

How does it work?

The script uses a table of ban methods, which include a ban method and a kick method. Each method has a corresponding message that will be displayed to the player when they are banned or kicked. The ban method also includes a ban end time, which is used to determine if the player should still be banned or not.

DTR V3.2.1 Production Release

  • Bot rewrite (Utilizes event/command handler)
  • Confirmation Embed
  • Log Command Embed
  • We introduced slash commands!

Latest Update can be found on the github