# File rbot/plugins/slap.rb, line 14 def privmsg(m) unless(m.params) m.reply "incorrect usage: " + m.plugin end verb = @verbs[rand @verbs.length] way = @way[rand @way.length] size = @size[rand @size.length] tool = @tool[rand @tool.length] action = "#{verb} #{m.params} #{way + ' ' if way}with a #{size + ' ' if size}#{tool}" @bot.action m.replyto, action end