SecureBot is a Discord bot designed to provide the functionality of banning Roblox players from a game directly within the Discord platform.
- Easy banning of Roblox players from Discord.
- Seamless integration with the Roblox game for efficient moderation.
To run SecureBot, make sure you have the following:
- Node.js v18.2.1+ (Not tested with any version below this)
Follow these steps to install and set up SecureBot:
- Clone the SecureBot repository to your local machine.
- Install the required dependencies by running the following command:
npm install
- Configure the bot by creating a
.env
file and providing the necessary details (e.g., Discord bot token, Roblox game ID, etc.). - Start the bot by running the following command:
node .
Once the bot is up and running, you can use the following command to ban a Roblox player:
/ban (identifier) <reason> <duration>
(identifier)
: The identifier of the player to be banned (e.g., Roblox username, user ID).<reason>
(optional): The reason for the ban.<duration>
(optional): The duration of the ban.
The opposite is also valid, use /unban
to unban a player!
To ban a player with the username "examplePlayer" for 7 days with the reason "Inappropriate behavior," use the following command:
/ban examplePlayer Inappropriate behavior 7d
Contributions are welcome! If you would like to contribute to SecureBot, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Push your changes to your forked repository.
- Submit a pull request detailing your changes.
SecureBot is released under the MIT License.
To run this project, you will need to add the following environment variables to your .env
file:
# This is an example!
# DON'T EDIT THIS FILE.
# Create your own ".env" file in src/
ROBLOX_API_KEY=PUT_YOUR_ROBLOX_API_KEY_HERE
DISCORD_CLIENT_TOKEN=PUT_YOUR_DISCORD_BOT_CLIENT_TOKEN_HERE
DISCORD_CLIENT_ID=PUT_YOUR_DISCORD_BOT_CLIENT_ID_HERE
GUILD_ID=PUT_YOUR_SERVER_ID_HERE
UNIVERSE_ID=PUT_YOUR_UNIVERSE_ID_HERE