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/cowsay.lua

18 lines
390 B
Lua
Raw Normal View History

2015-05-28 16:47:30 +02:00
function run(msg, matches)
cow = matches[1]
local receiver = get_receiver(msg)
if string.match(msg.text, '"') then
return 'Vergiss es'
else
2015-05-28 16:47:30 +02:00
local text = run_bash('cowsay "' .. cow .. '"')
send_msg(receiver, text, ok_cb, false)
end
2015-05-28 16:47:30 +02:00
end
return {
description = "",
usage = {""},
patterns = {"^/cowsay (.*)$"},
run = run
}
--by Akamaru [https://ponywave.de]