'''
-Prefix: !goal
+Prefix: .goal
Synax:
- !goal COMMAND ARGS
+ .goal COMMAND ARGS
Commands:
help - show this help
remove ID - remove a task by ID
start GOAL_ID - un-put-off a goal (reverse of later)
visionless - list goals with no set vision
+ wins - list recently completed goals
'''
bot_name,
bot_pwd,
db_file=None,
- bot_prefix='!goal'):
+ bot_prefix='.goal'):
creds = botlib.Creds(matrix_server, bot_name, bot_pwd)
self.bot = botlib.Bot(creds)
results.append(item)
return results
+ if match.command('wins'):
+ items = self.data.wins()
+ results = ['# Wins']
+ if not items:
+ results.append('-- No wins yet --')
+
+ for item in items:
+ results.append(item)
+ return results
+
+
+
if match.command('set.vision'):
goal_id = int(match.args()[1])
vision_id = int(match.args()[2])