This repository has been archived on 2024-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
BWTAqua/README.md

44 lines
1.3 KiB
Markdown
Raw Normal View History

2022-09-08 12:23:22 +03:00
# BWTAqua
2023-03-18 01:52:36 +02:00
2022-09-08 13:54:13 +03:00
[![License: GPL v3](https://img.shields.io/badge/License-GPL_v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.html)
2022-09-08 13:42:34 +03:00
Simple yet helpful bot to check BWT Aqua's card balance
2022-09-08 12:23:22 +03:00
2022-12-15 13:40:15 +02:00
> ⚠️ Please note that this branch is made for testing only so it can sometimes work strange or do not work at all.
2022-12-15 13:39:56 +02:00
2022-09-08 13:42:34 +03:00
## Requirements
2023-03-18 01:52:36 +02:00
2023-08-23 15:13:17 +03:00
* Python 3.8+
2022-09-08 13:42:34 +03:00
* git
## Installation
2023-03-18 01:52:36 +02:00
2022-09-08 13:42:34 +03:00
1. Download package
1. `git clone https://git.end-play.xyz/profitroll/BWTAqua.git`
2. `cd BWTAqua`
2023-08-23 15:24:12 +03:00
2023-08-23 15:13:17 +03:00
2. Create venv
1. `python3 -m venv .venv`
2. `source .venv/bin/activate`
2023-08-23 15:24:12 +03:00
3. Install needed modules
2023-08-23 15:13:17 +03:00
* `pip install -r requirements.txt`
2023-08-23 15:24:12 +03:00
4. Configure the bot
* `nano config.json` (You can use any other text editor actually, for example `vim`)
5. Run the bot
* `python main.py`
2022-09-08 13:42:34 +03:00
## Configuration
2023-03-18 01:52:36 +02:00
2022-09-08 14:04:37 +03:00
You can edit with vim, nano, whatever.
2023-08-23 15:13:17 +03:00
If you don't know where to find bot_token and your id - here you can find some hints:
[get bot token](https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token),
[get your id](https://www.alphr.com/telegram-find-user-id/),
[get api_hash and api_id](https://core.telegram.org/api/obtaining_api_id).
## Upgrading from v1.x
If you have just installed your fresh and new v2.x, migrate the database by starting the bot with `--migrate` argument.