[] im Pattern für media.lua und imges.lua

This commit is contained in:
Akamaru 2015-12-06 17:20:56 +01:00
parent 4d8fdfe7ce
commit b50b000fd3
2 changed files with 20 additions and 20 deletions

View File

@ -10,9 +10,9 @@ end
return { return {
description = "Wenn ein Link zu einem Bild gesendet wird, läd und sendet der Bot das Bild.", description = "Wenn ein Link zu einem Bild gesendet wird, läd und sendet der Bot das Bild.",
usage = {"Link zum Bild"}, usage = {"Link zum Bild"},
patterns = {"^(https?://[%w-_%.%?%.:/%+=~&]+%.png)", patterns = {"^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.png)",
"^(https?://[%w-_%.%?%.:/%+=~&]+%.jpg)", "^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.jpg)",
"^(https?://[%w-_%.%?%.:/%+=~&]+%.jpeg)",}, "^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.jpeg)",},
run = run run = run
} }

View File

@ -48,23 +48,23 @@ return {
description = "Wenn ein User eine Medien-Datei sendet (gif, mp4, pdf, etc.), wird es gedownloadet und gesendet.", description = "Wenn ein User eine Medien-Datei sendet (gif, mp4, pdf, etc.), wird es gedownloadet und gesendet.",
usage = {""}, usage = {""},
patterns = { patterns = {
"^(https?://[%w-_%.%?%.:/%+=&]+%.(gif))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(gif))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(mp4))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(mp4))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(pdf))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(pdf))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(ogg))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(ogg))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(zip))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(zip))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(tar.gz))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(tar.gz))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(7z))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(7z))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(mp3))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(mp3))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(rar))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(rar))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(wmv))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(wmv))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(doc))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(doc))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(avi))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(avi))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(wav))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(wav))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(apk))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(apk))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(webm))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(webm))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(ogv))$", "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(ogv))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(webp))$" "^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(webp))$"
}, },
run = run run = run
} }