Skip to content

GrayNekoBean/telegram_teatime_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Teatime bot

提醒你的 tg 群友三点准时饮茶 !

Telegram bot: https://t.me/threeOclock_teatime_bot

加群后在群内使用"/start"命令来初始化bot.
use "/start" command in the telegram group to initiate bot.

通过使用"/settimezone"命令来设置你的时区. use "/settimezone" command to set the timezone for you.

通过使用"/help"命令来显示帮助. use "/help" command to show the help.

Deploy on your own bot(server)

你可以自行修改这段代码并把它应用到自己的bot上, 但是如果你有更好的主意改进这个bot并且愿意提交pull request的话我会很感激的.

Your are free to modify this code and deploy it on your own bot. But if you got any good ideas and willing to help this bot get better, I would be really appreciated if you could create a Pull Request.

部署说明 (Deploy instructions)


确保你有一个命名为TOKEN的文本文件, 该文件用于储存你的bot token. 然后运行teatime.py文件即可.

Make sure you got a text file named TOKEN which is used to store your bot token. Then just run teatime.py.

pip3 install -r requirements.txt
python3 teatime.py

(在Ubuntu20.04下测试可用)
(Tested on Ubuntu20.04)

控制台指令 (Terminal Commands)


(该指令指的不是telegram的bot指令, 而是该程序运行时的一个简易命令控制台)
(This command is not telegram bot command, it's something runs in a simple console in this program)

stop :
终止bot.
terminate bot.

set TEATIME hh:mm :
设置饮茶时间为hh:mm(24小时制), 默认时间15:15.
Set the teatime at hh:mm(formatted in 24 hour), default time is 15:15.


原文附赠

喂!三点几咧!做……做撚啊做!
饮茶先啊!
三点几 饮……饮茶先啊!
做咁多都冇用嘅,老细唔锡你嘅咧!
喂!饮下茶先啊!三点几咧!
做碌鸠啊做!

Releases

No releases published

Packages

No packages published

Languages