Skip to content

julianolf/markov-bot

This branch is up to date with joaorafaelm/markov-bot:master.

Folders and files

NameName
Last commit message
Last commit date
Feb 13, 2019
Nov 18, 2018
Feb 13, 2019
Nov 18, 2018
Oct 19, 2018
Oct 2, 2018
Feb 25, 2019
Jul 28, 2020
Oct 14, 2018
Nov 18, 2018
Aug 5, 2020
Oct 12, 2020
Nov 23, 2018
Oct 24, 2018
Nov 18, 2018
Sep 30, 2018
Jul 28, 2020

Repository files navigation

markov bot

a bot that writes like you do




Add t.me/botijao_bot to a telegram group chat and it will generate pseudo random sentences.


Running locally

1. Download

$ git clone https://github.com/joaorafaelm/markov-bot
$ cd markov-bot

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 :)

Releases

No releases published

Languages

  • Python 97.8%
  • Mako 1.5%
  • Other 0.7%