gif support 💗
This commit is contained in:
parent
0157ab8a7b
commit
5e2a329f01
@ -1,7 +1,7 @@
|
|||||||
http = require("socket.http")
|
http = require("socket.http")
|
||||||
json = (loadfile "./bot/JSON.lua")()
|
json = (loadfile "./bot/JSON.lua")()
|
||||||
|
|
||||||
VERSION = 'v0.2'
|
VERSION = 'v0.2.1'
|
||||||
|
|
||||||
|
|
||||||
function on_msg_receive (msg)
|
function on_msg_receive (msg)
|
||||||
@ -58,7 +58,7 @@ function is_image_url(text)
|
|||||||
print ('IS image ' .. text ..'?')
|
print ('IS image ' .. text ..'?')
|
||||||
last = string.get_last_word(text)
|
last = string.get_last_word(text)
|
||||||
extension = string.get_extension_from_filename(last)
|
extension = string.get_extension_from_filename(last)
|
||||||
if extension == 'jpg' or extension == 'png' then
|
if extension == 'jpg' or extension == 'png' or extension == 'gif' then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
Reference in New Issue
Block a user