@ -1,11 +1,13 @@
|
||||
-- Actually the simplest plugin ever!
|
||||
|
||||
local triggers = {
|
||||
'^/ping[@'..bot.username..']*'
|
||||
'^/ping[@'..bot.username..']*',
|
||||
'^/annyong[@'..bot.username..']*'
|
||||
}
|
||||
|
||||
local action = function(msg)
|
||||
sendMessage(msg.chat.id, 'Pong!')
|
||||
sendMessage(msg.chat.id,
|
||||
msg.text_lower.match('^/ping') and 'Pong!' or 'Annyong.')
|
||||
end
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user