/rev Command hinzugefügt

This commit is contained in:
Akamaru 2016-02-02 16:13:57 +01:00
parent bbf3213d32
commit 8a6fbfdd0b
1 changed files with 6 additions and 2 deletions

View File

@ -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]