/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)
|
||||
if string.match(msg.text, '"') then
|
||||
return 'Vergiss es'
|
||||
else
|
||||
elseif string.match(msg.text, '/flip') then
|
||||
local text = run_bash('flip "' .. text .. '"')
|
||||
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
|
||||
|
||||
return {
|
||||
description = "",
|
||||
usage = {""},
|
||||
patterns = {"^/flip (.*)$"},
|
||||
patterns = {"^/flip (.*)$",
|
||||
"^/rev (.*)"},
|
||||
run = run
|
||||
}
|
||||
--by Akamaru [https://ponywave.de]
|
Reference in New Issue
Block a user