cacfea1fa5
Everything reworked and rewritten. Antisquig is now a plugin to work with moderation.lua. The bot can now upload photos, stickers, and other files. Return values in plugin functions to affect the bot's behavior. All this and more!
27 lines
324 B
Lua
Executable File
27 lines
324 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
|
|
sendReply(msg, latcyr(input))
|
|
else
|
|
sendReply(msg, doc)
|
|
end
|
|
|
|
end
|
|
|
|
return {
|
|
action = action,
|
|
triggers = triggers,
|
|
doc = doc
|
|
}
|