/rev Command hinzugefügt
This commit is contained in:
parent
bbf3213d32
commit
8a6fbfdd0b
@ -4,16 +4,20 @@ function run(msg, matches)
|
|||||||
local receiver = get_receiver(msg)
|
local receiver = get_receiver(msg)
|
||||||
if string.match(msg.text, '"') then
|
if string.match(msg.text, '"') then
|
||||||
return 'Vergiss es'
|
return 'Vergiss es'
|
||||||
else
|
elseif string.match(msg.text, '/flip') then
|
||||||
local text = run_bash('flip "' .. text .. '"')
|
local text = run_bash('flip "' .. text .. '"')
|
||||||
send_msg(receiver, text, ok_cb, false)
|
send_msg(receiver, text, ok_cb, false)
|
||||||
|
elseif string.match(msg.text, '/rev') then
|
||||||
|
local text = run_bash('echo "' .. text .. '" | rev')
|
||||||
|
send_msg(receiver, text, ok_cb, false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
description = "",
|
description = "",
|
||||||
usage = {""},
|
usage = {""},
|
||||||
patterns = {"^/flip (.*)$"},
|
patterns = {"^/flip (.*)$",
|
||||||
|
"^/rev (.*)"},
|
||||||
run = run
|
run = run
|
||||||
}
|
}
|
||||||
--by Akamaru [https://ponywave.de]
|
--by Akamaru [https://ponywave.de]
|
Reference in New Issue
Block a user