16 lines
319 B
Lua
Executable File
16 lines
319 B
Lua
Executable File
-- Actually the simplest plugin ever!
|
|
|
|
local triggers = {
|
|
'^/ping[@'..bot.username..']*',
|
|
'^/annyong[@'..bot.username..']*'
|
|
}
|
|
|
|
local action = function(msg)
|
|
sendMessage(msg.chat.id, msg.text_lower:match('^/ping') and '*Pong!*' or '*Annyong.*', true, nil, true)
|
|
end
|
|
|
|
return {
|
|
action = action,
|
|
triggers = triggers
|
|
}
|