This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot-2/otouto/plugins/surrogate.lua

15 lines
257 B
Lua
Raw Normal View History

local surrogate = {}
surrogate.triggers = {
"^/s (%-%d+) +(.+)$",
"^/s (%d+) +(.+)$"
}
function surrogate:action(msg)
-- Supergroups don't work!?
utilities.send_message(self, matches[1], matches[2], true, nil, true)
return
end
return surrogate