Package: rbot
Version: 0.9.10-1
Severity: wishlist
Tags: patch

Please include this trivial plugin based on figlet plugin.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.22.3-sexy (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rbot depends on:
ii  libdb4.3-ruby1.8              0.5.8-1.1  Interface to Berkeley DB for Ruby 
ii  libopenssl-ruby1.8            1.8.6.36-1 OpenSSL interface for Ruby 1.8
ii  ruby                          1.8.2-1    An interpreter of object-oriented 

Versions of packages rbot recommends:
ii  aspell                      0.60.5-1     GNU Aspell spell-checker
ii  bind9-host [host]           1:9.4.1-P1-1 Version of 'host' bundled with BIN
ii  bsdmainutils                6.1.6        collection of more utilities from 
pn  fortune-mod | fortune       <none>       (no description available)
pn  librexml-ruby               <none>       (no description available)

-- no debconf information
class ToiletPlugin < Plugin
  def help(plugin, topic="")
    "toilet [<message>] => print using toilet"
  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("toilet", "--gay", "--irc", m.params)
		  return
	  end
  end
end
plugin = ToiletPlugin.new
plugin.register("toilet")

Reply via email to