diff --git a/pictures/hdf/hdf1.jpg b/pictures/hdf/hdf1.jpg new file mode 100644 index 0000000..4065129 Binary files /dev/null and b/pictures/hdf/hdf1.jpg differ diff --git a/pictures/hdf/hdf2.jpg b/pictures/hdf/hdf2.jpg new file mode 100644 index 0000000..1d8a4d2 Binary files /dev/null and b/pictures/hdf/hdf2.jpg differ diff --git a/pictures/hdf/hdf3.jpg b/pictures/hdf/hdf3.jpg new file mode 100644 index 0000000..971c276 Binary files /dev/null and b/pictures/hdf/hdf3.jpg differ diff --git a/pictures/hdf/hdf4.jpg b/pictures/hdf/hdf4.jpg new file mode 100644 index 0000000..2b89e0c Binary files /dev/null and b/pictures/hdf/hdf4.jpg differ diff --git a/pictures/hdf/hdf5.jpg b/pictures/hdf/hdf5.jpg new file mode 100644 index 0000000..f477144 Binary files /dev/null and b/pictures/hdf/hdf5.jpg differ diff --git a/plugins/hdf.lua b/plugins/hdf.lua new file mode 100644 index 0000000..3d5a2fc --- /dev/null +++ b/plugins/hdf.lua @@ -0,0 +1,22 @@ +function run(msg, matches) + randomValue = math.random(5) +if randomValue == 1 then + send_photo(get_receiver(msg), "pictures/hdf/hdf1.jpg", ok_cb, false) +elseif randomValue == 2 then + send_photo(get_receiver(msg), "pictures/hdf/hdf2.jpg", ok_cb, false) +elseif randomValue == 3 then + send_photo(get_receiver(msg), "pictures/hdf/hdf3.jpg", ok_cb, false) +elseif randomValue == 4 then + send_photo(get_receiver(msg), "pictures/hdf/hdf4.jpg", ok_cb, false) +elseif randomValue == 5 then + send_photo(get_receiver(msg), "pictures/hdf/hdf5.jpg", ok_cb, false) +end +end + +return { + description = "Sendet eins von 4 Katzenbilder", + usage = "/hdf", + patterns = {"^/hdf"}, + run = run +} +--by Akamaru \ No newline at end of file