]> us-delaporte.pagekite.me Git - matrix-goal-bot.git/blobdiff - matrix_goal_bot/bot.py
Add visionless command
[matrix-goal-bot.git] / matrix_goal_bot / bot.py
index 957051c785f516e50764754af3c7251a7fe7b455..8c8183c386ef42ff9c0b849ca1b92d2fee33f00c 100644 (file)
@@ -142,6 +142,15 @@ async def do_goal(match):
             results.append(item)
         return results
 
+    if match.command('visions'):
+        items = Data().visionless()
+        results = ['# Goals with no vision']
+        if not items:
+            results.append('-- No visionless goals --')
+
+        for item in items:
+            results.append(item)
+        return results
 
     if match.command('set-vision'):
         goal_id = int(match.args()[1])