]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blob - rbot/plugins/cal.rb
initial import of rbot
[user/henk/code/ruby/rbot.git] / rbot / plugins / cal.rb
1 class CalPlugin < Plugin
2   def help(plugin, topic="")
3     "cal [options] => show current calendar [unix cal options]"
4   end
5   def privmsg(m)
6     if m.params && m.params.length > 0
7       m.reply Utils.safe_exec("cal", m.params) 
8     else
9       m.reply Utils.safe_exec("cal")
10     end
11   end
12 end
13 plugin = CalPlugin.new
14 plugin.register("cal")