X-Git-Url: https://apps.delaporte.us/gitweb/matrix-goal-bot.git/blobdiff_plain/03fe9dc89c7295c1ef5d623b43d36bf51de35f47..377204ce95f475f6dc70dc6dbf247c4cab7a7b62:/matrix_goal_bot/bot.py diff --git a/matrix_goal_bot/bot.py b/matrix_goal_bot/bot.py index 9c0bec0..957051c 100644 --- a/matrix_goal_bot/bot.py +++ b/matrix_goal_bot/bot.py @@ -116,7 +116,6 @@ async def do_goal(match): results = pretty_print(vision, goals) return results - if match.command('done'): task_id = int(match.args()[1]) goal_id = Data().complete_task(task_id) @@ -167,6 +166,8 @@ async def goal_bot(room, message, bot): await bot.api.send_text_message( room.room_id, str(line)) except Exception as ex: - return ['Ye cannot get ye flask.'] - + line ='Ye cannot get ye flask.' + await bot.api.send_text_message( + room.room_id, str(line)) +