diff --git a/earwigbot/commands/remind.py b/earwigbot/commands/remind.py index bb0c873..2ecbacb 100644 --- a/earwigbot/commands/remind.py +++ b/earwigbot/commands/remind.py @@ -20,43 +20,245 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from threading import Timer +from itertools import chain +import random +from threading import Thread import time from earwigbot.commands import Command +DISPLAY = ["display", "show", "list", "info"] +CANCEL = ["cancel", "stop", "delete", "del"] +SNOOZE = ["snooze", "delay", "reset", "adjust"] + class Remind(Command): """Set a message to be repeated to you in a certain amount of time.""" name = "remind" - commands = ["remind", "reminder"] + commands = ["remind", "reminder", "reminders", "snooze"] - def process(self, data): - if not data.args: - msg = "Please specify a time (in seconds) and a message in the following format: !remind