4 # :title: botsnack - give your bot some love
7 # Author:: Jan Wikholm <jw@jw.fi>
9 # Copyright:: (C) 2008 Jan Wikholm
11 # License:: public domain
18 class BotsnackPlugin < Plugin
20 def help(plugin, topic="")
21 "botsnack => reward #{@nick} for being good"
26 # Below is the 0.9.10 version, but I changed it because it would conflict
27 # with config params [core.reply_with_nick true] and [core.nick_postfix ,]
30 # <@rrBot> unfo-, unfo-: thanks :)
31 # OLD: m.reply @bot.lang.get("thanks_X") % m.sourcenick if(m.public?)
32 # OLD: m.reply @bot.lang.get("thanks") if(m.private?)
34 m.reply @bot.lang.get("thanks")
38 plugin = BotsnackPlugin.new
40 plugin.map "botsnack", :action => :snack, :thread => "yes" #so it won't lock