]> apps.delaporte.us Git - matrix-chore-bot.git/commitdiff
Allow space separated done list
authorEdward Delaporte <edward@delaporte.us>
Sun, 5 Apr 2026 15:48:59 +0000 (10:48 -0500)
committerEdward Delaporte <edward@delaporte.us>
Sun, 5 Apr 2026 15:48:59 +0000 (10:48 -0500)
README.md
matrix_chore_bot/bot.py

index 418e1dcd1db2d7daa48c69cccfe26aba84f923b7..51347e2394ca8fa146ba6342b4daaab19279197e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -38,3 +38,6 @@ Prefix: !chore
       remove - remove a daily chore
 ```
 
+## Todo list
+
+- [x] allow marking multiple items done in a comma separated list (see shop bot add or boal bot done)
index c97be63659ba47f057b6b1f47aaee85bcc0966d9..067c2f906d196170c07c95456c669484ce0dc74c 100644 (file)
@@ -84,9 +84,12 @@ async def handle_chore(match):
         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]