瀏覽代碼

Make "!remind list" behavior more predictable.

tags/v0.3
Ben Kurtovic 8 年之前
父節點
當前提交
802fa3227d
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      earwigbot/commands/remind.py

+ 3
- 1
earwigbot/commands/remind.py 查看文件

@@ -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:


Loading…
取消
儲存