Random Pic Plugins senden nun MP4 (GIF)
This commit is contained in:
parent
0dbf087456
commit
9f3a41c316
@ -23,7 +23,7 @@ function run(msg, matches)
|
|||||||
if pics[imgtype] then
|
if pics[imgtype] then
|
||||||
local img = pics[imgtype]..get_random_image(pics[imgtype])
|
local img = pics[imgtype]..get_random_image(pics[imgtype])
|
||||||
print("Sende... "..img)
|
print("Sende... "..img)
|
||||||
if string.ends(img, ".gif") then
|
if string.ends(img, ".gif") or string.ends(img, ".mp4") then
|
||||||
send_document(receiver, img, function() end, function() end)
|
send_document(receiver, img, function() end, function() end)
|
||||||
elseif string.ends(img, ".jpg") or string.ends(img, ".jpeg") or string.ends(img, ".png") then
|
elseif string.ends(img, ".jpg") or string.ends(img, ".jpeg") or string.ends(img, ".png") then
|
||||||
send_photo(receiver, img, function() end, function() end)
|
send_photo(receiver, img, function() end, function() end)
|
||||||
|
@ -19,7 +19,7 @@ function run(msg, matches)
|
|||||||
if pics[imgtype] then
|
if pics[imgtype] then
|
||||||
local img = pics[imgtype]..get_random_image(pics[imgtype])
|
local img = pics[imgtype]..get_random_image(pics[imgtype])
|
||||||
print("Sende... "..img)
|
print("Sende... "..img)
|
||||||
if string.ends(img, ".gif") then
|
if string.ends(img, ".gif") or string.ends(img, ".mp4") then
|
||||||
send_document(receiver, img, function() end, function() end)
|
send_document(receiver, img, function() end, function() end)
|
||||||
elseif string.ends(img, ".jpg") or string.ends(img, ".jpeg") or string.ends(img, ".png") then
|
elseif string.ends(img, ".jpg") or string.ends(img, ".jpeg") or string.ends(img, ".png") then
|
||||||
send_photo(receiver, img, function() end, function() end)
|
send_photo(receiver, img, function() end, function() end)
|
||||||
|
Reference in New Issue
Block a user