diff --git a/pictures/wat/wat1.jpg b/pictures/wat/wat1.jpg new file mode 100644 index 0000000..8fc2b0f Binary files /dev/null and b/pictures/wat/wat1.jpg differ diff --git a/pictures/wat/wat2.jpg b/pictures/wat/wat2.jpg new file mode 100644 index 0000000..e5a3c65 Binary files /dev/null and b/pictures/wat/wat2.jpg differ diff --git a/pictures/wat/wat3.jpg b/pictures/wat/wat3.jpg new file mode 100644 index 0000000..bd63b14 Binary files /dev/null and b/pictures/wat/wat3.jpg differ diff --git a/pictures/wat/wat4.jpg b/pictures/wat/wat4.jpg new file mode 100644 index 0000000..5e3fcf3 Binary files /dev/null and b/pictures/wat/wat4.jpg differ diff --git a/pictures/wat/wat5.jpg b/pictures/wat/wat5.jpg new file mode 100644 index 0000000..fea11e9 Binary files /dev/null and b/pictures/wat/wat5.jpg differ diff --git a/pictures/wat/wat6.jpg b/pictures/wat/wat6.jpg new file mode 100644 index 0000000..6029ba1 Binary files /dev/null and b/pictures/wat/wat6.jpg differ diff --git a/pictures/wat/wat7.jpg b/pictures/wat/wat7.jpg new file mode 100644 index 0000000..9f8aaa1 Binary files /dev/null and b/pictures/wat/wat7.jpg differ diff --git a/plugins/wat.lua b/plugins/wat.lua new file mode 100644 index 0000000..95b46a6 --- /dev/null +++ b/plugins/wat.lua @@ -0,0 +1,26 @@ +function run(msg, matches) + randomValue = math.random(7) +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) +end +end + +return { + description = "Sendet eins von 6 WAT Bilder", + usage = {"/wat","/Wat","/WAT"}, + patterns = {"^/wat","^/Wat","^/WAT"}, + run = run +} +--by Akamaru \ No newline at end of file