# File rbot/plugins/slap.rb, line 14 def privmsg(m) unless(m.params) m.reply "incorrect usage: " + m.plugin end target = m.params target = m.sourcenick if(m.params == "me") if(m.params == "yourself" || m.params == "himself" || m.params == @bot.nick) m.reply "piss off!" return end debug m.params verb = @verbs[rand @verbs.length] way = @way[rand @way.length] size = @size[rand @size.length] tool = @tool[rand @tool.length] action = "#{verb} #{target} #{way + ' ' if way}with a #{size + ' ' if size}#{tool}" @bot.action m.replyto, action end