1
0

Fix adding commands w/o add command

This commit is contained in:
2018-06-26 21:21:56 +01:00
parent 68ef96b184
commit e7d21dedba

2
bot.py
View File

@@ -26,7 +26,7 @@ def on_message(msg):
command = text.split(' ')[0].lower()
arguments = text.split(' ')[1:]
if command in '/add':
if command == '/add':
add_task(Task(" ".join(arguments)), chat_id)
elif command == '/rm':
rm_tasks(arguments, chat_id)