1
0

Add ping function

This commit is contained in:
Akbar Rahman 2018-06-26 20:55:55 +01:00
parent 567aef53c5
commit a59a636d70
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

6
bot.py
View File

@ -36,6 +36,8 @@ def on_message(msg):
do_tasks(arguments, chat_id)
elif command == '/undo':
undo_tasks(arguments, chat_id)
elif command == '/marco':
marco(chat_id)
else:
add_task(Task(text), chat_id)
@ -169,6 +171,10 @@ def undo_tasks(task_ids, chat_id):
set_task(int(i), task, chat_id)
def marco(chat_id):
bot.sendMessage(chat_id, "Polo")
MessageLoop(bot, on_message).run_as_thread()
while True: