|
1 | | -# Balatrobot - A Botting API for Balatro |
| 1 | +# BalatroBot |
2 | 2 |
|
| 3 | +A powerful botting framework for Balatro that provides both Lua and Python APIs for creating automated gameplay bots. |
3 | 4 |
|
4 | | -https://github.com/besteon/balatrobot/assets/103706338/8722b3ec-e74f-4953-a201-47e2f9bd13a9 |
| 5 | +## Features |
5 | 6 |
|
| 7 | +- 🎮 **Game State Access** - Full access to Balatro's game state and mechanics |
| 8 | +- 🐍 **Python API** - Write bots in Python with a clean, intuitive interface |
| 9 | +- 🌙 **Lua Integration** - Direct Lua scripting support for advanced users |
| 10 | +- 🔌 **Middleware System** - Extensible middleware for custom bot behaviors |
| 11 | +- 📊 **Logging & Debugging** - Comprehensive logging system for bot development |
| 12 | +- 🚀 **Easy Setup** - Simple installation and configuration process |
6 | 13 |
|
7 | | -## Installation |
| 14 | +## Quick Start |
8 | 15 |
|
9 | | -Requires Steamodded (Tested on v0.9.3) |
| 16 | +### Installation |
10 | 17 |
|
11 | | -## Botting |
| 18 | +1. Clone the repository: |
| 19 | +```bash |
| 20 | +git clone https://github.com/your-username/balatrobot.git |
| 21 | +cd balatrobot |
| 22 | +``` |
12 | 23 |
|
13 | | -THIS MOD DOES NOT CONTAIN A FINISHED BOT, JUST THE API. |
| 24 | +2. Install Python dependencies: |
| 25 | +```bash |
| 26 | +pip install -r requirements.txt |
| 27 | +``` |
14 | 28 |
|
15 | | -To make your own bot, just modify Bot.lua. |
| 29 | +3. Configure the bot (see [Configuration Guide](docs/configuration.md)) |
16 | 30 |
|
17 | | -## Disclaimer |
| 31 | +### Basic Usage |
| 32 | + |
| 33 | +**Python Bot Example:** |
| 34 | +```python |
| 35 | +from bot import BalatroBot |
| 36 | + |
| 37 | +bot = BalatroBot() |
| 38 | + |
| 39 | +@bot.on_turn_start |
| 40 | +def handle_turn_start(game_state): |
| 41 | + # Your bot logic here |
| 42 | + pass |
| 43 | + |
| 44 | +bot.run() |
| 45 | +``` |
| 46 | + |
| 47 | +**Lua Bot Example:** |
| 48 | +```lua |
| 49 | +local bot = require('src.bot') |
| 50 | + |
| 51 | +bot.on_turn_start(function(game_state) |
| 52 | + -- Your bot logic here |
| 53 | +end) |
| 54 | +``` |
| 55 | + |
| 56 | +## Documentation |
| 57 | + |
| 58 | +- 📖 [Full Documentation](https://your-username.github.io/balatrobot/) |
| 59 | +- 🛠️ [Installation Guide](docs/installation.md) |
| 60 | +- ⚙️ [Configuration](docs/configuration.md) |
| 61 | +- 🏗️ [Architecture Overview](docs/architecture.md) |
| 62 | +- 🤖 [Bot Development Guide](docs/bot-development.md) |
| 63 | +- 🐍 [Python API Reference](docs/python-api.md) |
| 64 | +- 💡 [Examples](docs/examples.md) |
| 65 | +- 🔧 [Troubleshooting](docs/troubleshooting.md) |
| 66 | + |
| 67 | +## Project Structure |
| 68 | + |
| 69 | +``` |
| 70 | +balatrobot/ |
| 71 | +├── src/ # Lua source code |
| 72 | +├── docs/ # Documentation |
| 73 | +├── lib/ # External Lua libraries |
| 74 | +├── bot.py # Python API |
| 75 | +├── main.lua # Main entry point |
| 76 | +└── config.lua # Configuration |
| 77 | +``` |
| 78 | + |
| 79 | +## Contributing |
| 80 | + |
| 81 | +Contributions are welcome! Please read our contributing guidelines and submit pull requests for any improvements. |
| 82 | + |
| 83 | +## License |
| 84 | + |
| 85 | +This project is licensed under the MIT License - see the LICENSE file for details. |
| 86 | + |
| 87 | +## Support |
| 88 | + |
| 89 | +If you encounter any issues or have questions: |
| 90 | + |
| 91 | +- Check the [Troubleshooting Guide](docs/troubleshooting.md) |
| 92 | +- Open an issue on GitHub |
| 93 | +- Join our community discussions |
18 | 94 |
|
19 | | -This mod may not work in conjunction with other mods. Use at your own risk. |
|
0 commit comments