1 class FortunePlugin < Plugin
2 def help(plugin, topic="")
3 "fortune [<module>] => get a (short) fortune, optionally specifying fortune db"
8 m.reply "incorrect usage: " + help(m.plugin)
15 m.reply "incorrect usage: " + help(m.plugin)
18 ret = Utils.safe_exec("/usr/games/fortune", "-n", "255", "-s", db)
19 m.reply ret.split("\n").join(" ")
23 plugin = FortunePlugin.new
24 plugin.register("fortune")