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/hello.lua
Andreas Bielawski 8bc1b541c4 - Hello: send_message, statt send_reply
- Stats: Zähle alle Nachrichten zusammen und verwnede comma_value()
2016-08-01 02:02:13 +02:00

12 lines
228 B
Lua

local hello = {}
hello.triggers = {
"^[Ss][Aa][Gg] [Hh][Aa][Ll][Ll][Oo] [Zz][Uu] (.*)$"
}
function hello:action(msg, config, matches)
utilities.send_message(self, msg.chat.id, 'Hallo, '..matches[1]..'!')
end
return hello