GithubHelp home page GithubHelp logo

embotic-xyz / ratelimit-check Goto Github PK

View Code? Open in Web Editor NEW
2.0 0.0 2.0 70 KB

This is a discord.js bot which can check if your IP address is ratelimited on discord.

License: GNU General Public License v3.0

JavaScript 100.00%

ratelimit-check's Introduction

Discord Rate Limit Check

This Discord bot checks whether specific IP addresses are rate-limited by Discord. The bot responds to the !check command by providing rate limit information for a list of predefined IP addresses.

Features

  • Checks if specified IP addresses are rate-limited by Discord.
  • Provides detailed information about each IP address.
  • Uses Discord.js v14 for interacting with the Discord API.
  • Fetches the bot token from the .env file.

Prerequisites

  • Node.js v16.6.0 or higher
  • npm (Node Package Manager)

Installation

  1. Clone the repository:

    git clone https://github.com/Embotic-xyz/Ratelimit-Check.git
    cd ratelimit-check
  2. Install the dependencies:

    npm install
  3. In the .env.example file, add your Discord bot token, then rename it to .env

Usage

  1. Start the bot:

    node index.js
  2. Use the !check command in any channel the bot has access to. The bot will respond with an embed containing the rate limit status of each specified IP address.

Code Overview

  • index.js: Main file containing the bot logic.
  • .env: Environment file for storing sensitive information like the bot token.

Main Functionality

  • The bot listens for the !check command and responds with an embed containing rate limit information for a list of predefined IP addresses.
  • It uses the axios library to make HTTP requests to the Discord API, passing each IP address as a header to check its rate limit status.

Example

Here is an example of what the bot's response might look like:

https://prnt.sc/cPGwaCbKkV8f

Dependencies

Contributing

If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

License

This project is licensed under the GPL-3.0 License. See the LICENSE file for details.

ratelimit-check's People

Contributors

superevilluke avatar lezetho avatar

Stargazers

The Performance Nexus avatar  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.