Fork of markov chain Telegram bot for local VR chat
Go to file
Katya Demidova d06e399e82 Update command_handler.py 2016-11-12 01:59:03 +03:00
migrations Fixes of saving algorithm 2016-11-07 23:06:30 +03:00
src Update command_handler.py 2016-11-12 01:59:03 +03:00
.gitignore updated .gitignore 2016-11-06 20:42:57 +03:00
README.md Added info on commands and usage to README.md (#9) 2016-11-11 20:41:01 +03:00
db.py [WIP] It works! Kinda.. 2016-11-02 01:22:26 +03:00
main.cfg.example Implemented #5, for now w/o jobs table 2016-11-10 19:04:02 +03:00
requirements.txt Updates to config and readme 2016-11-08 21:40:20 +03:00
run.py Reworked message handler 2016-11-10 17:21:08 +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!) stiker ("I'm frustrated by all these stickers"),
  • do some commands.

Commands

  • /ping,
  • /get_stats: get information on how many pairs are known by ImaginaryFriend,
  • /set_chance: set the probability that ImaginaryFriend would reply to a random message (must be in range 1-50, default: 5),
  • /get_chance: get current probability that ImaginaryFriend would reply to a message.

Installation and Setup

Dependencies

  • python >= 3.5.2
  • python-telegram-bot==5.2.0
  • orator==0.9.2

Setup

  1. Install dependencies with PIP
  2. Rename main.cfg.example to main.cfg, set bot and db properties
  3. Execute command orator migrate -c db.py to create database and required tables
  4. Run the run.py using python