diff options
Diffstat (limited to 'rbot/plugins/cal.rb')
-rw-r--r-- | rbot/plugins/cal.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rbot/plugins/cal.rb b/rbot/plugins/cal.rb new file mode 100644 index 00000000..1e823194 --- /dev/null +++ b/rbot/plugins/cal.rb @@ -0,0 +1,14 @@ +class CalPlugin < Plugin + def help(plugin, topic="") + "cal [options] => show current calendar [unix cal options]" + end + def privmsg(m) + if m.params && m.params.length > 0 + m.reply Utils.safe_exec("cal", m.params) + else + m.reply Utils.safe_exec("cal") + end + end +end +plugin = CalPlugin.new +plugin.register("cal") |