Skip to content

Latest commit

 

History

History
95 lines (56 loc) · 2.75 KB

File metadata and controls

95 lines (56 loc) · 2.75 KB

BloxFlip Mine and Tower Predictor Bot

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.

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).

/towers

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).

/crash

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.

Permissions

  • 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.

Preview

Attatchments

image

image

image

Contributing

Star and Fork this Repo to Contribute

License

This project is licensed under the MIT License. See the LICENSE file for details.