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/plugins/echo.lua
2016-06-22 13:59:06 +02:00

18 lines
304 B
Lua

local function run(msg, matches)
local text = matches[1]
local b = 1
while b ~= 0 do
text,b = text:gsub('^/+','')
text = text:trim()
end
return text
end
return {
description = "Wiederholt euch",
usage = {"#echo [Satz]"},
patterns = {"^#[Ee][Cc][Hh][Oo] (.*)$"},
run = run
}