X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fremind.rb;h=c10186f5861fd32c67a0604872f369678bde5f0f;hb=052217de30c59206d7025b582d4604557a747470;hp=1c1a21a93fc356cdf8f42583a98e275d9e387b75;hpb=db1fae02053ec1a891e37498e1a5c0fd28043823;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/remind.rb b/data/rbot/plugins/remind.rb index 1c1a21a9..c10186f5 100644 --- a/data/rbot/plugins/remind.rb +++ b/data/rbot/plugins/remind.rb @@ -8,6 +8,10 @@ class RemindPlugin < Plugin Utils.parse_time_offset(timestr) end + class UnparsedPeriodError < RuntimeError ; end + class NegativePeriodError < RuntimeError ; end + class ShortRepeatError < RuntimeError ; end + def initialize super @reminders = Hash.new @@ -24,17 +28,20 @@ class RemindPlugin < Plugin def help(plugin, topic="") "reminder plugin: remind [about] in