Random Pic Plugins senden nun MP4 (GIF)

This commit is contained in:
Akamaru 2016-04-11 23:21:49 +02:00
parent 0dbf087456
commit 9f3a41c316
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ function run(msg, matches)
if pics[imgtype] then
local img = pics[imgtype]..get_random_image(pics[imgtype])
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)
elseif string.ends(img, ".jpg") or string.ends(img, ".jpeg") or string.ends(img, ".png") then
send_photo(receiver, img, function() end, function() end)

View File

@ -19,7 +19,7 @@ function run(msg, matches)
if pics[imgtype] then
local img = pics[imgtype]..get_random_image(pics[imgtype])
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)
elseif string.ends(img, ".jpg") or string.ends(img, ".jpeg") or string.ends(img, ".png") then
send_photo(receiver, img, function() end, function() end)