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
876 B
Lua

function run(msg, matches)
randomValue = math.random(6)
if randomValue == 1 then
send_photo(get_receiver(msg), "pictures/justkitten/justkitten1.jpg", ok_cb, false)
elseif randomValue == 2 then
send_photo(get_receiver(msg), "pictures/justkitten/justkitten2.jpg", ok_cb, false)
elseif randomValue == 3 then
send_photo(get_receiver(msg), "pictures/justkitten/justkitten3.jpg", ok_cb, false)
elseif randomValue == 4 then
send_photo(get_receiver(msg), "pictures/justkitten/justkitten4.jpg", ok_cb, false)
elseif randomValue == 5 then
send_photo(get_receiver(msg), "pictures/justkitten/justkitten5.jpg", ok_cb, false)
elseif randomValue == 6 then
send_photo(get_receiver(msg), "pictures/justkitten/justkitten6.jpg", ok_cb, false)
end
end
return {
description = "Sendet eins von 6 Just Kitten Bilder",
usage = {"/jk"},
patterns = {"^/jk"},
run = run
}
--by Akamaru