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.
Features
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.
Requirements
Python 3.7+
interactions.py library
cloudscraper library
Setup
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 and BuyerRoleId variables to match your Discord server and role IDs.
Run the bot:
python main.py
Usage
Commands
/mines
Generates a mine grid with a specified number of safe tiles.
BloxFlip Mine and Tower Predictor Bot
This project is a Discord bot built using the
interactions.pylibrary, 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.Features
Requirements
interactions.pylibrarycloudscraperlibrarySetup
Clone the repository
Run “requirements.bat” - installs requirements from requirements.txt
Add your Discord bot token in the
BotTokenvariable in the script. You can create a bot and obtain a token from the Discord Developer Portal.Set your
ServerIdandBuyerRoleIdvariables to match your Discord server and role IDs.Run the bot:
Usage
Commands
/minesGenerates a mine grid with a specified number of safe tiles.
Usage:
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)./towersGenerates a tower grid with a specified number of rows.
Usage:
game_id: The ID of the game. Must follow specific formatting rules to be valid.rows: The number of rows to generate (Max: 8)./crashPredicts the outcome of a crash game based on previous game data.
Usage:
This command does not require any additional parameters. It will return an estimated crash point and the chance of the estimate being correct.
Permissions
BuyerRoleIdor if their user ID matches a predefined ID (1262827258444517446).Preview
Attatchments
Contributing
Star and Fork this Repo to Contribute
License
This project is licensed under the MIT License. See the LICENSE file for details.