[] 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 {
description = "Wenn ein Link zu einem Bild gesendet wird, läd und sendet der Bot das Bild.",
usage = {"Link zum Bild"},
patterns = {"^(https?://[%w-_%.%?%.:/%+=~&]+%.png)",
"^(https?://[%w-_%.%?%.:/%+=~&]+%.jpg)",
"^(https?://[%w-_%.%?%.:/%+=~&]+%.jpeg)",},
patterns = {"^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.png)",
"^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.jpg)",
"^(https?://[%w-_%.%?%.:/%+=~&%[%]]+%.jpeg)",},
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.",
usage = {""},
patterns = {
"^(https?://[%w-_%.%?%.:/%+=&]+%.(gif))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(mp4))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(pdf))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(ogg))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(zip))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(tar.gz))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(7z))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(mp3))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(rar))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(wmv))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(doc))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(avi))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(wav))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(apk))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(webm))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(ogv))$",
"^(https?://[%w-_%.%?%.:/%+=&]+%.(webp))$"
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(gif))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(mp4))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(pdf))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(ogg))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(zip))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(tar.gz))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(7z))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(mp3))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(rar))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(wmv))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(doc))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(avi))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(wav))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(apk))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(webm))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(ogv))$",
"^(https?://[%w-_%.%?%.:/%+=&%[%]]+%.(webp))$"
},
run = run
}