]> us-delaporte.pagekite.me Git - matrix-goal-bot.git/blobdiff - matrix_goal_bot/bot.py
fixup
[matrix-goal-bot.git] / matrix_goal_bot / bot.py
index 2417d04f505288abaac8c1e9803f993b47447ad4..159c99738fe5eb67c52ece54dd97cab79fbf1f55 100644 (file)
@@ -122,8 +122,8 @@ class GoalBot():
             return results
 
         if match.command('list'):
-            logger.debug('Asked to list goals...')
-            goals = self.data.get_all_goals()
+            logger.debug('Asked to list current goals...')
+            goals = self.data.get_current_goals()
             results = ['# Goals list...']
             for goal in goals:
                 results.append(str(goal))
@@ -190,7 +190,7 @@ class GoalBot():
 
         if match.command('start'):
             goal_id = int(match.args()[1])
-            vision_id = self.data.start(goal_id)
+            vision_id = self.data.start_goal(goal_id)
             vision,goals = self.data.get_vision(vision_id)
             results = pretty_print(vision, goals)
             return results