Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local triggers = {
- '^/ping[@'..bot.username..']*'
- }
- local action = function(msg)
- local input = msg.text:input()
- if input == 'server' then
- sendMessage(msg.chat.id, 'MSG-Date: '.. os.date('%F-:-%T', msg.date) .. '\nServer-Date: ' .. io.popen('date +%F-:-%T'):read('*all'))
- elseif input == 'pong' then
- sendMessage(msg.chat.id, '🎾P🎾I🎾N🎾G🎾')
- else
- sendMessage(msg.chat.id, 'Pong! 🎾')
- end
- end
- return {
- action = action,
- triggers = triggers
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement