https://github.com/iley/rating-bot
Telegram bot for tracking rating on rating.chgk.info
https://github.com/iley/rating-bot
Last synced: 9 days ago
JSON representation
Telegram bot for tracking rating on rating.chgk.info
- Host: GitHub
- URL: https://github.com/iley/rating-bot
- Owner: iley
- Created: 2018-02-18T20:58:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-06-10T08:43:59.000Z (8 months ago)
- Last Synced: 2025-06-10T09:38:30.126Z (8 months ago)
- Language: Python
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CHGK rating bot for Telegram
## Development
1. Create a virtualenv using Python 3
```bash
python3 -m venv ~/venv
source ~/venv/bin/activate
```
You'll need to re-activate the virtualenv each time you open a new shell. Run `source ~/venv/bin/activate` again. The shell prompt should indicate the environment name e.g. `(venv) user@host $`.
2. Install dependencies
```bash
pip install -r requirements.txt
```
3. Register a Telegram bot for testing using [BotFather](https://telegram.me/botfather).
See [Creating a new bot](https://core.telegram.org/bots#creating-a-new-bot) section in the Telegram documentation.
Make note of the API token.
4. Run the bot locally
```bash
python -m rating_bot -v --token YOUR-TOKEN-HERE
```
Alternatively you can skip step 1 and use the system-wide python. In such case run `python3` and `pip3`.