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/kitty.lua
2015-05-22 17:01:33 +02:00

20 lines
695 B
Lua

function run(msg, matches)
randomValue = math.random(4)
if randomValue == 1 then
send_photo(get_receiver(msg), "pictures/cats/cat1.jpg", ok_cb, false)
elseif randomValue == 2 then
send_photo(get_receiver(msg), "pictures/cats/cat2.jpg", ok_cb, false)
elseif randomValue == 3 then
send_photo(get_receiver(msg), "pictures/cats/cat3.jpg", ok_cb, false)
elseif randomValue == 4 then
send_photo(get_receiver(msg), "pictures/cats/cat4.jpg", ok_cb, false)
end
end
return {
description = "Sendet eins von 4 Katzenbilder",
usage = {"/kitty","/katze","/cat","/neko","/kadse"},
patterns = {"^/kitty$","^/katze$","^/cat$","^/neko$","^/kadse$"},
run = run
}
--by Akamaru [https://ponywave.de]