Coder Social home page Coder Social logo

themeltz / securebot Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 155 KB

SecureBot is a Discord bot designed to provide the functionality of banning Roblox players from a game directly within the Discord platform.

License: MIT License

TypeScript 98.22% JavaScript 1.78%

securebot's Introduction

SecureBot

SecureBot is a Discord bot designed to provide the functionality of banning Roblox players from a game directly within the Discord platform.

Features

  • Easy banning of Roblox players from Discord.
  • Seamless integration with the Roblox game for efficient moderation.

Requirements

To run SecureBot, make sure you have the following:

  • Node.js v18.2.1+ (Not tested with any version below this)

Installation

Follow these steps to install and set up SecureBot:

  1. Clone the SecureBot repository to your local machine.
  2. Install the required dependencies by running the following command: npm install
  3. Configure the bot by creating a .env file and providing the necessary details (e.g., Discord bot token, Roblox game ID, etc.).
  4. Start the bot by running the following command: node .

Usage

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!

Example

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

Contributing

Contributions are welcome! If you would like to contribute to SecureBot, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and commit them with descriptive messages.
  4. Push your changes to your forked repository.
  5. Submit a pull request detailing your changes.

License

SecureBot is released under the MIT License.

Authors

Environment Variables

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

securebot's People

Contributors

themeltz avatar

Stargazers

Rikki Martin avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.