Open source rewriting of the original Brawl Tool.
-
[Optional] Create and activate a virtual enviroment:
python -m venv venv
linux - macos
source venv/bin/activate
windows
.\venv\Scripts\activate
-
Install the requirements:
pip install -r requirements.txt
-
Create a .env file:
cp .env.example .env
edit the .env file and add the following variables:
API_ID=XXXXXX API_KEY=XXXXXXXXXXXXXXXXX API_HASH=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX BOT_TOKEN=XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX DATABASE_URL=postgres://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX FLOOD_WAIT_SECONDS=60 CLEAR_TIME_SECONDS=3600
You can find the API_ID and API_HASH logging on https://my.telegram.org.
Speak with @BotFather to generate your BOT_TOKEN.
To use the Brawlhalla API, you need to provide an API_KEY. Send an email to [email protected] to request one.
-
Push prisma db:
prisma db push
Start the bot with:
python src/bot.py
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions to this project are welcome. To contribute, follow these steps:
- Fork the repository
- Create a new branch for your changes
- Make your changes and commit them with clear commit messages
- Push your changes to your forked repository
- Submit a pull request
Before making any significant changes, please open an issue to discuss the changes you plan to make.