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 5d26c4289c - Portierung folgender Plugins:
+ Reddit_post
+ Eindeutschung von Reddit
+ Site_header
+ Soundcloud
+ Speedtest
+ Spotify
+ Surrogate
+ Tex
+ Xkcd
+ Yourls
- Plugin-Name wird nun angezeigt, wenn Bot getriggert wird
- Wie immer: kleine Änderungen
2016-06-20 17:58:46 +02:00

17 lines
304 B
Lua

local surrogate = {}
local utilities = require('otouto.utilities')
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