From 2a96c9198c1f6e13407d0999083f6ce5e0bc06fa Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Wed, 27 Jul 2005 16:32:32 +0000 Subject: move rbot into lib - still rearranging for packaging/installation --- lib/rbot/plugins/remind.rb | 154 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 lib/rbot/plugins/remind.rb (limited to 'lib/rbot/plugins/remind.rb') diff --git a/lib/rbot/plugins/remind.rb b/lib/rbot/plugins/remind.rb new file mode 100644 index 00000000..5ad980ae --- /dev/null +++ b/lib/rbot/plugins/remind.rb @@ -0,0 +1,154 @@ +require 'rbot/utils' + +class RemindPlugin < Plugin + def initialize + super + @reminders = Hash.new + end + def cleanup + @reminders.each_value {|v| + v.each_value {|vv| + @bot.timer.remove(vv) + } + } + @reminders.clear + end + def help(plugin, topic="") + if(plugin =~ /^remind\+$/) + "see remind. remind+ can be used to remind someone else of something, using instead of 'me'. However this will generally require a higher auth level than remind." + else + "remind me [about] in