results = pretty_print(vision, goals)
return results
-
if match.command('done'):
task_id = int(match.args()[1])
goal_id = Data().complete_task(task_id)
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])
await bot.api.send_text_message(
room.room_id, str(line))
except Exception as ex:
- return ['Ye cannot get ye flask.']
-
+ line ='Ye cannot get ye flask.'
+ await bot.api.send_text_message(
+ room.room_id, str(line))
+