From 21949774b91eaec6ecde4eaa8ad121e2c0a36b87 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Wed, 27 Jul 2005 15:59:13 +0000 Subject: rearrange repo for packaging --- data/rbot/contrib/plugins/figlet.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/rbot/contrib/plugins/figlet.rb (limited to 'data/rbot/contrib/plugins/figlet.rb') diff --git a/data/rbot/contrib/plugins/figlet.rb b/data/rbot/contrib/plugins/figlet.rb new file mode 100644 index 00000000..ce17fe71 --- /dev/null +++ b/data/rbot/contrib/plugins/figlet.rb @@ -0,0 +1,20 @@ +class FigletPlugin < Plugin + def help(plugin, topic="") + "figlet [] => print using figlet" + end + def privmsg(m) + case m.params + when nil + m.reply "incorrect usage: " + help(m.plugin) + return + when (/^-/) + m.reply "incorrect usage: " + help(m.plugin) + return + else + m.reply Utils.safe_exec("/usr/bin/figlet", "-k", "-f", "mini", m.params) + return + end + end +end +plugin = FigletPlugin.new +plugin.register("figlet") -- cgit v1.2.3