Skip to content

Commit

Permalink
🔧 Reminder optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Beddow authored and ironman5366 committed Mar 1, 2017
1 parent f73d3c1 commit b126a69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/plugins/reminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def is_reminder(event):
else:
return False


@subscribe({"name": "reminder", "check": is_reminder})
def main(event):
'''Set a reminder using the interface scheduler'''
Expand Down Expand Up @@ -64,6 +63,9 @@ def main(event):
lefts = [left.orth_ for left in chunk.lefts]
rights = [right.orth_ for right in chunk.rights]
event_time = " ".join(lefts + [chunk.text] + rights)
#Break out of the loop so the event time is the first matching word
if time_message:
break
if not time_message:
time_message == "Reminder: {0}".format(event_command)
if not event_time:
Expand Down

0 comments on commit b126a69

Please sign in to comment.