New plugin "justkitten"
This commit is contained in:
parent
85437c8dc0
commit
5159c65794
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
res/
|
res/
|
||||||
data/
|
data/
|
||||||
.luarocks
|
.luarocks
|
||||||
.db
|
.db
|
||||||
|
*.db
|
BIN
pictures/justkitten/justkitten1.jpg
Normal file
BIN
pictures/justkitten/justkitten1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
BIN
pictures/justkitten/justkitten2.jpg
Normal file
BIN
pictures/justkitten/justkitten2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 59 KiB |
BIN
pictures/justkitten/justkitten3.jpg
Normal file
BIN
pictures/justkitten/justkitten3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 67 KiB |
BIN
pictures/justkitten/justkitten4.jpg
Normal file
BIN
pictures/justkitten/justkitten4.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
BIN
pictures/justkitten/justkitten5.jpg
Normal file
BIN
pictures/justkitten/justkitten5.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
BIN
pictures/justkitten/justkitten6.jpg
Normal file
BIN
pictures/justkitten/justkitten6.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
24
plugins/justkitten.lua
Normal file
24
plugins/justkitten.lua
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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
|
||||||
|
}
|
Reference in New Issue
Block a user