zhouyanyu / zaobot

A telegram bot to reply to /zao

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ZAO

This is a long long story which started from a man who engraved a "" on his desktop. Since then, there has been so many warriors who try to write "" to any place...

This is a telegram bot which allows you to say hello to the world and know the number of people who wake up ealier than you.

In fact, this bot is pluggable, and easy to write plugins to implement time-related jobs.

Requirements

Python3 needed.(tested on python3.5)

Installation

(on Archlinux)

$ git clone <this repo>
$ cd zaobot
$ virtualenv3 venv
$ . ./venv/bin/activate
(venv)$ pip install -r requirements.txt

Create a new bot and retrieve token from BotFather and then save the token to token.txt

(venv)$ python start.py

TODO

  • persistent storage with redis
  • flush messages when booting
  • list time of waking
  • recognize user with avatar
  • random time to start a new day

About

A telegram bot to reply to /zao

License:MIT License


Languages

Language:Python 100.0%