return source only by command
This commit is contained in:
parent
b25fa0fe70
commit
18cb50f0a8
@ -3,7 +3,11 @@ local function run(msg, matches)
|
||||
local url = 'http://i.gifeye.com/'..matches[1]..'.gif'
|
||||
print("GIF URL: "..url)
|
||||
send_document_from_url(receiver, url)
|
||||
if string.starts(msg.text, '/ge') or string.starts(msg.text, '/gifeye') then
|
||||
return 'Source: http://gifeye.com/'..matches[1]
|
||||
else
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user