Add t.me/botijao_bot to a telegram group chat and it will generate pseudo random sentences.
$ git clone https://github.com/joaorafaelm/markov-bot
$ cd markov-bot
$ pipenv install --dev
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
$ make test
$ make run
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 :)