提醒你的 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.
你可以自行修改这段代码并把它应用到自己的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.
确保你有一个命名为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)
(该指令指的不是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.
喂!三点几咧!做……做撚啊做!
饮茶先啊!
三点几 饮……饮茶先啊!
做咁多都冇用嘅,老细唔锡你嘅咧!
喂!饮下茶先啊!三点几咧!
做碌鸠啊做!