Bläddra i källkod

Make "!remind list" behavior more predictable.

tags/v0.3
Ben Kurtovic 8 år sedan
förälder
incheckning
802fa3227d
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. +3
    -1
      earwigbot/commands/remind.py

+ 3
- 1
earwigbot/commands/remind.py Visa fil

@@ -30,7 +30,7 @@ import time
from earwigbot.commands import Command from earwigbot.commands import Command
from earwigbot.irc import Data from earwigbot.irc import Data


DISPLAY = ["display", "show", "list", "info", "details"]
DISPLAY = ["display", "show", "info", "details"]
CANCEL = ["cancel", "stop", "delete", "del", "stop", "unremind", "forget", CANCEL = ["cancel", "stop", "delete", "del", "stop", "unremind", "forget",
"disregard"] "disregard"]
SNOOZE = ["snooze", "delay", "reset", "adjust", "modify", "change"] SNOOZE = ["snooze", "delay", "reset", "adjust", "modify", "change"]
@@ -304,6 +304,8 @@ class Remind(Command):


if data.args[0] == "help": if data.args[0] == "help":
return self._show_help(data) return self._show_help(data)
if data.args[0] == "list":
return self._show_reminders(data)
if data.args[0] == "all": if data.args[0] == "all":
return self._show_all_reminders(data) return self._show_all_reminders(data)
if data.args[0] in DISPLAY + CANCEL + SNOOZE: if data.args[0] in DISPLAY + CANCEL + SNOOZE:


Laddar…
Avbryt
Spara