6 class RotPlugin < Plugin
9 @bot.register_filter(:rot13) { |s|
11 ss[:text] = s[:text].tr("A-Za-z", "N-ZA-Mn-za-m")
16 def help(plugin, topic="")
17 "rot13 <string> => encode <string> to rot13 or back"
21 m.reply @bot.filter(:rot13, params[:string].to_s)
24 plugin = RotPlugin.new
25 plugin.map 'rot13 *string'