Fork of markov chain Telegram bot for local VR chat
Go to file
REDNBLACK ef399285df Merge branch 'master' into redis 2016-12-28 21:34:14 +03:00
src Merge branch 'master' into redis 2016-12-28 21:34:14 +03:00
.gitignore updated .gitignore 2016-11-06 20:42:57 +03:00
README.md [WIP] #19 Updated readme, config and requirements 2016-12-27 22:16:15 +03:00
commands_description.txt [WIP] #19 Updated readme, config and requirements 2016-12-27 22:16:15 +03:00
main.cfg.example [WIP] #19 Updated readme, config and requirements 2016-12-27 22:16:15 +03:00
requirements.txt [WIP] #19 Updated readme, config and requirements 2016-12-27 22:16:15 +03:00
run.py [WIP] #19 Updated readme, config and requirements 2016-12-27 22:16:15 +03:00

README.md

My great plan is to create a Telegram chat bot that would be like shizoid, but in Python and maybe with some extra features.

A-a-a-a-and... it works! Thanks to @REDNBLACK.

Features

ImaginaryFriend can:

  • reply to random messages in chat groups,
  • reply to replies to its messages / messages mentioning it,
  • send (one!) sticker ("I'm frustrated by all these stickers"),
  • do some commands.

Examples

 @ImaginaryFriendBot один ты меня понимаешь
 Ты глупый кот. Меня зовут антон иванов, мне только что поймала ту же пустоту.
 привет, Антон
 Привет!
 оч приятно, Антон. Я Боря
 Я не знаю юридических тонкостей но по факту квартира же твоя! Боря кот. Оч приятно антон.
 Чем ты занимаешься, ты юрист?
 Ты не видишь чтоль?
 Ну извини, решил уточнить. Как дела то?
 Как дела с потоками в яве обстоят? Ну ты понел. Дела отлично, а твои как?
 Нет. У меня друг в дестве кусался.
 он тебя загрыз?
 Он же говна кусок.
 тебя загрыз кусок говна?
 Тебя наверх задрать надо.
 ты сегодня особо в тему пишешь, что с тобой, ты поумнел?
 Что бы крашилось :3?
 да ты суицидник XD
 Ты не очень умный?
 годный бот
 Бот захватит мир.

Commands

  • /ping,
  • /get_stats: get information on how many pairs are known by ImaginaryFriend,
  • /chance n: set the probability that ImaginaryFriend would reply to a random message (must be in range 1-50, default: 5),
  • /сhance: get current probability that ImaginaryFriend would reply to a message,
  • /mod_f word: -
  • /mod_d word: -
  • /meow, /woof, /borscht, /boobs, /butts and others: make ImaginaryFriend send a picture.

Installation and Setup

Dependencies

  • python >= 3.5.2
  • python-telegram-bot==5.2.0
  • redis==2.10.5

Setup

  1. Install dependencies with PIP
  2. Install Redis
  3. Rename main.cfg.example to main.cfg, set bot and redis properties
  4. (Optionally) Configure updates property for websocket support
  5. Run the run.py using python