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
Andreas Bielawski 83a637bc29 - dkjson durch lua-cjson ausgetauscht. Bitte lua-cjson installieren!
- Surrogate unterstützt jetzt auch @-Namen (und dadurch auch Kanäle)
2016-08-03 16:32:24 +02:00

15 lines
266 B
Lua

local surrogate = {}
surrogate.triggers = {
"^/s (%-%d+) +(.+)$",
"^/s (%d+) +(.+)$",
"^/s (@[A-Za-z0-9-_-.-._.]+) +(.+)"
}
function surrogate:action(msg)
utilities.send_message(self, matches[1], matches[2], true, nil, true)
return
end
return surrogate