Skip to content

Work in progress / experimental open source rewriting of the original t.me/brawltool_bot

License

Notifications You must be signed in to change notification settings

NicKoehler/brawlhalla_bot

Repository files navigation

logo

Brawlhalla Telegram Bot

Open source rewriting of the original Brawl Tool.

Table of contents

Installation

  1. [Optional] Create and activate a virtual enviroment:

    python -m venv venv

    linux - macos

    source venv/bin/activate

    windows

    .\venv\Scripts\activate
  2. Install the requirements:

    pip install -r requirements.txt
    
  3. 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.

  4. Push prisma db:

    prisma db push

Usage

Start the bot with:

python src/bot.py

License

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

Contributions

Contributions to this project are welcome. To contribute, follow these steps:

  1. Fork the repository
  2. Create a new branch for your changes
  3. Make your changes and commit them with clear commit messages
  4. Push your changes to your forked repository
  5. Submit a pull request

Before making any significant changes, please open an issue to discuss the changes you plan to make.

About

Work in progress / experimental open source rewriting of the original t.me/brawltool_bot

Topics

Resources

License

Stars

Watchers

Forks