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

24 lines
898 B
Lua
Raw Normal View History

2015-04-18 18:46:37 +02:00
function run(msg, matches)
randomValue = math.random(6)
2015-04-20 18:52:25 +02:00
if randomValue == 1 then
2015-04-18 18:46:37 +02:00
send_photo(get_receiver(msg), "pictures/justkitten/justkitten1.jpg", ok_cb, false)
2015-04-20 18:52:25 +02:00
elseif randomValue == 2 then
2015-04-18 18:46:37 +02:00
send_photo(get_receiver(msg), "pictures/justkitten/justkitten2.jpg", ok_cb, false)
2015-04-20 18:52:25 +02:00
elseif randomValue == 3 then
2015-04-18 18:46:37 +02:00
send_photo(get_receiver(msg), "pictures/justkitten/justkitten3.jpg", ok_cb, false)
2015-04-20 18:52:25 +02:00
elseif randomValue == 4 then
2015-04-18 18:46:37 +02:00
send_photo(get_receiver(msg), "pictures/justkitten/justkitten4.jpg", ok_cb, false)
2015-04-20 18:52:25 +02:00
elseif randomValue == 5 then
2015-04-18 18:46:37 +02:00
send_photo(get_receiver(msg), "pictures/justkitten/justkitten5.jpg", ok_cb, false)
2015-04-20 18:52:25 +02:00
elseif randomValue == 6 then
2015-04-18 18:46:37 +02:00
send_photo(get_receiver(msg), "pictures/justkitten/justkitten6.jpg", ok_cb, false)
2015-04-20 18:52:25 +02:00
end
2015-04-18 18:46:37 +02:00
end
return {
description = "Sendet eins von 6 Just Kitten Bilder",
2015-04-28 17:49:11 +02:00
usage = {"/jk"},
2015-04-18 18:46:37 +02:00
patterns = {"^/jk"},
run = run
2015-04-20 18:52:25 +02:00
}
2015-05-22 17:01:33 +02:00
--by Akamaru [https://ponywave.de]