27 lines
334 B
Lua
Executable File
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
|
|
}
|