This project is a Discord bot built using the interactions.py
library, designed to generate grids for mine and tower games, as well as predict outcomes for crash games. The bot allows users with specific roles to generate game grids or predict outcomes based on predefined conditions.
- Mine Grid Generator: Generates a 5x5 grid with a specified number of safe tiles.
- Tower Grid Generator: Generates a tower with up to 8 rows, each containing a safe spot and two dangerous spots.
- Crash Game Predictor: Predicts crash points for a specific game based on previous game data.
- Python 3.7+
interactions.py
librarycloudscraper
library
-
Clone the repository
-
Run "requirements.bat" - installs requirements from requirements.txt
-
Add your Discord bot token in the
BotToken
variable in the script. You can create a bot and obtain a token from the Discord Developer Portal. -
Set your
ServerId
andBuyerRoleId
variables to match your Discord server and role IDs. -
Run the bot:
python main.py
Generates a mine grid with a specified number of safe tiles.
Usage:
/mines game_id=<game_id> clicks=<number_of_safe_tiles>
game_id
: The ID of the game. Must follow specific formatting rules to be valid.clicks
: The number of safe spots to generate (Max: 23).
Generates a tower grid with a specified number of rows.
Usage:
/towers game_id=<game_id> rows=<number_of_rows>
game_id
: The ID of the game. Must follow specific formatting rules to be valid.rows
: The number of rows to generate (Max: 8).
Predicts the outcome of a crash game based on previous game data.
Usage:
/crash
This command does not require any additional parameters. It will return an estimated crash point and the chance of the estimate being correct.
- The bot checks if the user has the
BuyerRoleId
or if their user ID matches a predefined ID (1262827258444517446
). - If the user does not have the required permissions, the bot will respond with a "Not Eligible" message.
Star and Fork this Repo to Contribute
This project is licensed under the MIT License. See the LICENSE file for details.