url_title ignore twitch
This commit is contained in:
parent
f5411aecb7
commit
1e53942a9e
22
.gitignore
vendored
22
.gitignore
vendored
@ -1,5 +1,23 @@
|
|||||||
res/
|
res/
|
||||||
data/
|
data/
|
||||||
.luarocks
|
.luarocks
|
||||||
.db
|
*.db
|
||||||
*.db
|
plugins/alive.lua
|
||||||
|
plugins/bitly.lua
|
||||||
|
plugins/danbooru.lua
|
||||||
|
plugins/danbooru2.lua
|
||||||
|
plugins/deviantart.lua
|
||||||
|
plugins/facebook.lua
|
||||||
|
plugins/facebook_photo.lua
|
||||||
|
plugins/facebook_video.lua
|
||||||
|
plugins/gender.lua
|
||||||
|
plugins/github.lua
|
||||||
|
plugins/googl.lua
|
||||||
|
plugins/ip_info.lua
|
||||||
|
plugins/konachan.lua
|
||||||
|
plugins/konachan_nsfw.lua
|
||||||
|
plugins/page2image.lua
|
||||||
|
plugins/pagespeed_insights.lua
|
||||||
|
plugins/ping_adress.lua
|
||||||
|
plugins/test.lua
|
||||||
|
plugins/twitch.lua
|
@ -35,7 +35,8 @@ function run(msg, matches)
|
|||||||
title == "Moved Permanently" or
|
title == "Moved Permanently" or
|
||||||
string.match(title, "deviantArt") or
|
string.match(title, "deviantArt") or
|
||||||
string.match(title, "twitch") or
|
string.match(title, "twitch") or
|
||||||
string.match(title, "eBay</title>") then
|
string.match(title, "eBay</title>") or
|
||||||
|
string.match(title, "Twitch") then
|
||||||
print('Invalide, da "'..title..'"')
|
print('Invalide, da "'..title..'"')
|
||||||
else
|
else
|
||||||
return title
|
return title
|
||||||
@ -45,7 +46,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