diff --git a/plugins/flip_text.lua b/plugins/flip_text.lua index 41c22ba..a390dbf 100644 --- a/plugins/flip_text.lua +++ b/plugins/flip_text.lua @@ -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] \ No newline at end of file