New pluging hdf.lua
This commit is contained in:
parent
61133e445b
commit
aeb5bceac7
BIN
pictures/hdf/hdf1.jpg
Normal file
BIN
pictures/hdf/hdf1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 49 KiB |
BIN
pictures/hdf/hdf2.jpg
Normal file
BIN
pictures/hdf/hdf2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 125 KiB |
BIN
pictures/hdf/hdf3.jpg
Normal file
BIN
pictures/hdf/hdf3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
BIN
pictures/hdf/hdf4.jpg
Normal file
BIN
pictures/hdf/hdf4.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
BIN
pictures/hdf/hdf5.jpg
Normal file
BIN
pictures/hdf/hdf5.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
22
plugins/hdf.lua
Normal file
22
plugins/hdf.lua
Normal file
@ -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
|
Reference in New Issue
Block a user