Pārlūkot izejas kodu

Make "!remind list" behavior more predictable.

tags/v0.3
Ben Kurtovic pirms 8 gadiem
vecāks
revīzija
802fa3227d
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      earwigbot/commands/remind.py

+ 3
- 1
earwigbot/commands/remind.py Parādīt failu

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

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

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


Notiek ielāde…
Atcelt
Saglabāt