Skip to content

Commit

Permalink
Fixes for schedule plugin commands
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknyquist committed Jan 29, 2023
1 parent e0867e0 commit 5bca7ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nedry/builtin_plugins/schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def invalid_format(cmd_word):
# Save event for this user ID, for the "unremind last" command
lastreminder_by_user[message.author.id] = event

return ("%s OK, I will remind you \"%s\" %s %s!\n```(%s until reminder)```" %
return ("%s OK, I will remind you \"%s\" %s %s!\n```\n(%s until reminder)```" %
(message.author.mention, msg, splitw, timedesc, event.time_remaining_string()))


Expand Down Expand Up @@ -532,9 +532,9 @@ def invalid_format(cmd_word):
if seconds is None:
return invalid_format(cmd_word)

fields = args.rsplit(' ' + splitw + ' ', 1)
fields = argtext.rsplit(' ' + splitw + ' ', 1)
if len(fields) == 1:
fields = args.rsplit('\n' + splitw + ' ', 1)
fields = argtext.rsplit('\n' + splitw + ' ', 1)

msg = fields[0].strip()

Expand All @@ -558,7 +558,7 @@ def invalid_format(cmd_word):
# Save event for this user ID, for the "unschedule last" command
lastsched_by_user[message.author.id] = event

return ("%s OK, I will send the following message:\n```%s```\n in channel \"%s\" %s %s!\n"
return ("%s OK, I will send the following message:\n```\n%s```\n in channel \"%s\" %s %s!\n"
"```(%s until scheduled message)```" % (message.author.mention, msg, channel_name,
splitw, timedesc, event.time_remaining_string()))

Expand Down

0 comments on commit 5bca7ef

Please sign in to comment.