[V3.2.2!] Discord-To-Roblox Bot | 100% Free, Stable, Datastore + GLITCH Support! (node.js)

Introducing Discord To Roblox Ban Bot Version 3.2.2!

Introducing the latest version of a Discord to Roblox Bot! As ROBLOX continues to grow and expand its endpoints and provide us with new and easier ways to interact with our creations, I have taken it upon myself to fork and update DTR v2 with the intention of maintaining it. This updated version of the bot comes equipped with a range of useful features, and best of all, it is completely free!

Support Server

Have any questions or inquiries? Feel free to join the Project Server

Check out these exciting features!

  • Enjoy the latest version of node.js
  • Updated to discord.js v14
  • No more requests sent to the host for improved security
  • Easily manage users with the ability to kick/ban/unban
  • Offline capabilities for convenience and accessibility
  • No more long waits with lightning-fast API
  • Detect users and IDs with ease
  • Non User/Id Detection
  • Discord-optimized for seamless integration
  • Option for timed banning
  • Keep track of your commands with command logging
  • Keep track of your player warnings
  • Keep your players with the new Unban Appeal System!

Exciting Upcoming Additions

  • Do you have any other cool ideas to add to the mix?

The Unforbidden Broken Fork

Previously, the old repository was locally hosted on Glitch, utilizing express to listen to requests, with ROBLOX sending a GetAsync request to the localhost/glitchURL. While Glitch servers are free, they often experience heavy traffic, resulting in longer response times and yields.

A Fresh New System

Say goodbye to complicated ban systems and hello to a straightforward solution. Now, you can easily kick/ban/unban players using data stores. My approach is refreshingly simple - I use ROBLOX’s Open Cloud Datastore API and a node.js server that can be hosted on your PC, Glitch, or RDP. With this system, you can ban players online or offline in an instant, by sending a direct request to the datastore of your game!

node

Introducing Slash Commands!

We’ve upgraded our bot to use Slash Commands, making it even more user-friendly! No more pesky prefixes to remember - it’s now easier than ever to access all of the bot’s features!

Check out the Showcase!

3.2.2 PREVIEW

How could I deploy this?

  1. To get started, you’ll need a Discord bot, which you can create by heading over to the Discord Developer Application Page and click on “New Application”.

  2. Follow this video to turn your app into a bot:

  3. Once you have successfully create a bot, you’ll need to install the project, or create an account on Glitch and set it up yourself. Glitch is a cloud-based platform that provides tools for creating and hosting web applications. It offers a visual coding interface that allows users to build and edit apps in real-time, collaborate with others, and publish their creations with a single click. Glitch.com also provides a community where users can discover, remix, and share projects, as well as access tutorials and resources to help them learn and improve their skills.

  4. You’ll need to setup the Datastore Api, you can find a Tutorial here

  5. Fork the repo below

Github Repository

Glitch Repository

  1. Once downloaded, open the Src/Credentials/Config.json file, and edit the top few values as shown:

botToken - Your Discord Bot Token Here
datastoreApiKey Your Datastore Api Key
clientId - Your Discord Bot Client ID
guildId - Your Discord Guild ID
universeID - Click your game, universeID in link
Screenshot_1
logChannelID - DO NOT TOUCH, set by the /setup command
appChannelID - DO NOT TOUCH, set by the /setup command

  1. Once setup, open a command prompt in the directory and run npm i --save, and then run node deploy-commands.js

  2. Place this script into ServerScriptService, and ensure Enable HTTP Requests is enabled
    DTR v3.2.2.lua (4.9 KB)
    An example of how to use it

  3. Setup your bot by running the command /setup logchan: commandLogChannel appchan: applicationResponsesChannel modalchan: applicationResponsesChannel

  4. Congratulations! You should be all set to go and banning users!

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.

Let’s take a closer look at some of the cool features of the bot:

  • Verified Name & User ID
    This bot utilizes a special ROBLOX API to ensure that the user ID or username you’re trying to ban/kick/unban is valid. No more worrying about making a mistake and targeting the wrong person - this feature will double-check everything for you!

  • Fast and Offline
    This bot can do everything offline, without sending any requests to the host. Plus, no more long yields - this blazing-fast API is lightning quick and always responsive.

  • Discord Integration
    This bot is completely Discord-oriented and optimized for use within the Discord platform. It’s user-friendly and easy to navigate, with commands that are simple and intuitive.

  • Ban with an Optional Time Parameter
    With this bot, you can easily ban a user for a set period of time using an optional time parameter. This is a great feature if you just want to give someone a temporary ban without having to go through the process of unbanning them later.

  • Command Logging
    This bot also keeps track of all the commands that are executed, so you can always go back and see what has been done in the past by an administrator or a player.

  • Unban Appeal System
    With this bot, you can now easily setup your Unban Appeal System. Unbanning users have never been easier! Upon reacting with a thumbs up to the message, will keep in contact with ROBLOX’s server and get them out of there!

  • Glitch Support
    We love free hosting as much as you do! Which is why I’m happy to say that this bot is fully compatible with Glitch! This means you can easily run this bot on Glitch servers without having to pay a dime, and without worrying about traffic overloads or long response times. Plus, you can easily edit the code directly on Glitch’s web interface, making it a breeze to customize the bot to your liking. Give it a try and see how easy it is to get started with the bot on Glitch! :slight_smile:

10 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

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

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

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.

1 Like

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

1 Like

Is it possible to add ban durations/warnings?

1 Like

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.

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

1 Like

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

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

1 Like

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

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

Update being committed Friday/Saturday

Version 3.11 Released

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

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

1 Like

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