An open API service indexing awesome lists of open source software.

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

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`.