18 lines
375 B
Lua
18 lines
375 B
Lua
local surrogate = {}
|
|
|
|
surrogate.triggers = {
|
|
"^/s (%-%d+) +(.+)$",
|
|
"^/s (%d+) +(.+)$",
|
|
"^/s (@[A-Za-z0-9-_-.-._.]+) +(.+)"
|
|
}
|
|
|
|
function surrogate:action(msg, config, matches)
|
|
if not is_sudo(msg, config) then
|
|
utilities.send_reply(msg, config.errors.sudo)
|
|
return
|
|
end
|
|
utilities.send_message(matches[1], matches[2], true, nil, true)
|
|
return
|
|
end
|
|
|
|
return surrogate |