2015-04-30 16:04:22 +02:00
|
|
|
function run(msg, matches)
|
2015-05-07 19:48:08 +02:00
|
|
|
randomValue = math.random(8)
|
2015-04-30 16:04:22 +02:00
|
|
|
if randomValue == 1 then
|
|
|
|
send_photo(get_receiver(msg), "pictures/wat/wat1.jpg", ok_cb, false)
|
|
|
|
elseif randomValue == 2 then
|
|
|
|
send_photo(get_receiver(msg), "pictures/wat/wat2.jpg", ok_cb, false)
|
|
|
|
elseif randomValue == 3 then
|
|
|
|
send_photo(get_receiver(msg), "pictures/wat/wat3.jpg", ok_cb, false)
|
|
|
|
elseif randomValue == 4 then
|
|
|
|
send_photo(get_receiver(msg), "pictures/wat/wat4.jpg", ok_cb, false)
|
|
|
|
elseif randomValue == 5 then
|
|
|
|
send_photo(get_receiver(msg), "pictures/wat/wat5.jpg", ok_cb, false)
|
|
|
|
elseif randomValue == 6 then
|
|
|
|
send_photo(get_receiver(msg), "pictures/wat/wat6.jpg", ok_cb, false)
|
|
|
|
elseif randomValue == 7 then
|
|
|
|
send_photo(get_receiver(msg), "pictures/wat/wat7.jpg", ok_cb, false)
|
2015-05-07 19:48:08 +02:00
|
|
|
elseif randomValue == 8 then
|
|
|
|
send_photo(get_receiver(msg), "pictures/wat/wat8.jpg", ok_cb, false)
|
2015-07-26 22:01:24 +02:00
|
|
|
--elseif randomValue == 9 then
|
|
|
|
--send_document(get_receiver(msg), "pictures/wat/wat9.gif", ok_cb, false)
|
2015-04-30 16:04:22 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
return {
|
|
|
|
description = "Sendet eins von 6 WAT Bilder",
|
2016-06-22 13:59:06 +02:00
|
|
|
usage = {"#wat"},
|
|
|
|
patterns = {"^#[Ww][Aa][Tt]$"},
|
2015-04-30 16:04:22 +02:00
|
|
|
run = run
|
|
|
|
}
|
2015-05-22 17:01:33 +02:00
|
|
|
--by Akamaru [https://ponywave.de]
|