# in pattern for url_title
This commit is contained in:
parent
48c90b3717
commit
724696f2f2
@ -8,7 +8,7 @@ local function run(msg, matches)
|
|||||||
local receiver = get_receiver(msg)
|
local receiver = get_receiver(msg)
|
||||||
send_photo_from_url(receiver, url)
|
send_photo_from_url(receiver, url)
|
||||||
else
|
else
|
||||||
return 'Konnte kein Bild mit "' .. matches[1] .. '" erstellen'
|
return 'Konnte kein Bild mit "' .. matches[1] .. '" erstellen.'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
do
|
do
|
||||||
|
|
||||||
function getGoogleImage(text)
|
function getGoogleImage(text)
|
||||||
|
@ -58,7 +58,7 @@ function run(msg, matches)
|
|||||||
return {
|
return {
|
||||||
description = "Postet URL-Titel",
|
description = "Postet URL-Titel",
|
||||||
usage = {"Irgendein Link"},
|
usage = {"Irgendein Link"},
|
||||||
patterns = {"^(https?://[%w-_%.%?%.:,/%+=&]+)$",},
|
patterns = {"^(https?://[%w-_%.%?%.:,/%+=&#]+)$",},
|
||||||
run = run
|
run = run
|
||||||
}
|
}
|
||||||
end
|
end
|
Reference in New Issue
Block a user