plugins/slap.lua

changeset 100
f90ead53573a
parent 61
aca019044c51
equal deleted inserted replaced
99:072509afc701 100:f90ead53573a
3 local st = require 'util.stanza' 3 local st = require 'util.stanza'
4 4
5 function riddim.plugins.slap(bot) 5 function riddim.plugins.slap(bot)
6 if type(bot.config.weapons) ~= 'table' then 6 if type(bot.config.weapons) ~= 'table' then
7 -- start off with something to slap people with 7 -- start off with something to slap people with
8 bot.config.weapons = {'large trout'} 8 bot.config.weapons = {'a large trout'}
9 end 9 end
10 10
11 -- slap someone 11 -- slap someone
12 local function slap(command) 12 local function slap(command)
13 local who, weapon 13 local who, weapon

mercurial