1
0

Fix /last command when command is commandless add

This commit is contained in:
Akbar Rahman 2018-06-27 23:01:18 +01:00
parent 85d5ffc318
commit 2650c265b9
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

2
bot.py
View File

@ -51,6 +51,8 @@ def on_message(msg):
elif command == '/marco':
marco(chat_id)
else:
set_property(PROPERTY_LAST_COMMAND, '/add', chat_id)
set_property(PROPERTY_LAST_ARGUMENTS, text.split(' '), chat_id)
add_task(Task(text), chat_id)