Skip to content

Latest commit

 

History

History
33 lines (31 loc) · 912 Bytes

README.md

File metadata and controls

33 lines (31 loc) · 912 Bytes

A


Running locally

1. Download

$ git clone https://github.com/alebymars/svistun.git
$ cd markov

2. Requirements

$ pipenv install --dev

3. Env vars

In order to run the bot, you need to define the env var TELEGRAM_TOKEN (to generate a bot token follow these instructions):

$ cp local.env .env
$ vim .env

4. Run tests

$ make test

4. Run the bot

$ make run

5. Permissions

Disable the bot privacy settings (it means that the bot will receive all messages, not just the ones starting with "/"). Run /sentence (or the command you defined using the env var SENTENCE_COMMAND) to generate random sentences. If you wish to delete the model, run /remove.

Have fun :)