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/plugins/echo.lua
2015-12-04 09:56:48 -05:00

27 lines
334 B
Lua
Executable File

local doc = [[
/echo <text>
Repeat a string of text!
]]
local triggers = {
'^/echo[@'..bot.username..']*'
}
local action = function(msg)
local input = msg.text:input()
if input then
sendMessage(msg.chat.id, latcyr(input))
else
sendReply(msg, doc)
end
end
return {
action = action,
triggers = triggers,
doc = doc
}