]> apps.delaporte.us Git - matrix-chore-bot.git/blobdiff - matrix_chore_bot/bot.py
Allow space separated done list
[matrix-chore-bot.git] / matrix_chore_bot / bot.py
index c97be63659ba47f057b6b1f47aaee85bcc0966d9..067c2f906d196170c07c95456c669484ce0dc74c 100644 (file)
@@ -84,9 +84,12 @@ async def handle_chore(match):
         return [result]
 
     if match.command('done'):
         return [result]
 
     if match.command('done'):
-        chore_id = match.args()[1]
-        result = CHORES.done(chore_id)
-        return [result]
+        ids = match.args()[1:]
+        results = []
+        for chore_id in ids:
+            result = CHORES.done(chore_id)
+            results.append(result)
+        return results
 
     if match.command('undo'):
         chore_id = match.args()[1]
 
     if match.command('undo'):
         chore_id = match.args()[1]