]> us-delaporte.pagekite.me Git - matrix-goal-bot.git/blobdiff - bot.py
Update to complete goals
[matrix-goal-bot.git] / bot.py
diff --git a/bot.py b/bot.py
index 731113d2c053a9db0047298683dd752aff315e5c..a6e7f65615c78ab051a406262d385fc60025c77d 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -68,8 +68,14 @@ async def do_goal(match):
             else:
                 results.append(f' - [ ] {task}')
         return results
+
+    if match.command('done'):
+        goal_id = int(match.args()[1])
+        logger.debug(f'Searching for goal {goal_id}...')
+        result = Data().complete_goal(goal_id)
+        return [result]
     
-    return 'Ye flask must be load bearing or something.'
+    return __doc__
 
 
 @bot.listener.on_message_event