Some cool media files
This commit is contained in:
parent
33441b7dd7
commit
2e63040f99
@ -1,14 +0,0 @@
|
||||
|
||||
function run(msg, matches)
|
||||
file = download_to_file(matches[1])
|
||||
send_document(get_receiver(msg), file, ok_cb, false)
|
||||
end
|
||||
|
||||
return {
|
||||
description = "from gif URL downloads it and sends to origin",
|
||||
usage = "",
|
||||
patterns = {
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.gif)$"
|
||||
},
|
||||
run = run
|
||||
}
|
23
plugins/media.lua
Normal file
23
plugins/media.lua
Normal file
@ -0,0 +1,23 @@
|
||||
|
||||
function run(msg, matches)
|
||||
file = download_to_file(matches[1])
|
||||
send_document(get_receiver(msg), file, ok_cb, false)
|
||||
end
|
||||
|
||||
return {
|
||||
description = "from media URL downloads it and sends to origin",
|
||||
usage = "",
|
||||
patterns = {
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.gif)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.mp4)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.pdf)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.ogg)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.zip)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.mp3)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.rar)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.wmv)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.doc)$",
|
||||
"(https?://[%w-_%.%?%.:/%+=&]+.avi)$"
|
||||
},
|
||||
run = run
|
||||
}
|
Reference in New Issue
Block a user