Skip to content

u-x/nationbot

Repository files navigation

nationbot

A (much simpler) bot to suit your ro-nation's needs. Takes little time to set up.

THIS DOES REQUIRE NODE.JS IF YOU ARE RUNNING IT ON YOUR MAIN COMPUTER! https://nodejs.org/en/

The main file that will be used in this guide will be the config.json. I am not responsible for any ratelimiting issues within this bot, and these may be fixed by changing the delay field in the immigration settings.

The .env file will contain your secrets, such as your Discord token and your Roblox cookie.

If you need any further assistance, join the support discord here or open an issue.

My current discord can be found below:

Discord Presence

(im terrible at doc writing ok please help)

Setup

Most of the setup options are spoken about in the config itself, but the rest are self-explanatory.

Accounts

DO NOT USE YOUR MAIN ROBLOX ACCOUNT FOR SUCH A MATTER. Others who use the bot will action through your account. Instead, make an alt and rank it in your group.

Open this account in a new Google Chrome profile. Logging out invalidates the COOKIE. To get the cookie, you need to inspect your Roblox page and head to the Application tab. You will find a .ROBLOSECURITY. Copy the whole thing. You can close the window, but never click the Log Out button.

UPDATE: You will likely get logged out if you are doing this in a country other than the United States of America. You can bypass this using a VPN on the Chrome tab.

ctrl+shift+i menu

To obtain a discord bot token, head to the Discord Developer Portal and create a new application. Under the bot tab, you will be able to create a bot application. Client ID should be there and you can regenerate the token. Enable the Server Member intent too please on the Bot tab of the application 😁

Getting roleset IDs

Install the extension BTRoblox. If you right-click a rank, you will be able to copy its ID, as show below. Get roleset ID

Hosting

You are able to host this bot on your own computer, however it is not recommended as you would have to leave your computer open all the time. I suggest a form of cloud hosting, and a free and easy way is none other than repl.it.

Run on Replit

If you click this button, it will lead you to a version of this bot in repl.it. Click on the fork button in the top right. Configure the config as you'd like and then run it. It will open a link in the top right. In repl, the .env file will be hidden on the left bar as its own tab. You will have to input the COOKIE and TOKEN keys again

repl .env

Head to UptimeRobot and make an account if you don't have one. Put your bot in as an HTTP monitor set to check every 5 minutes. Alternatively to UptimeRobot, Freshping will suffice. It's a simple "type in the bot URL and go" type thing.

thing

PS: you may obtain the active developer badge using this bot.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published