few little changes

This commit is contained in:
Akamaru 2015-05-27 18:55:36 +02:00
parent cc64c13884
commit 8bd373bade
3 changed files with 4 additions and 4 deletions

View File

@ -35,4 +35,4 @@ return {
usage = {"/google [Begriff]","/Google [Begriff]"}, usage = {"/google [Begriff]","/Google [Begriff]"},
patterns = {"^/google (.*)$","^/Google (.*)$"}, patterns = {"^/google (.*)$","^/Google (.*)$"},
run = run run = run
} }

View File

@ -5,7 +5,7 @@ end
return { return {
description = "Nii-san <3", description = "Nii-san <3",
usage = {"nii-san","Nii-san","nissan","Nissan"}, usage = {"nii-san","Nii-san","nissan","Nissan"},
patterns = {"^nii-san","^Nii-san","^nissan","^Nissan"}, patterns = {"^nii-san$","^Nii-san$","^nissan$","^Nissan$"},
run = run run = run
} }
--by Akamaru [https://ponywave.de] --by Akamaru [https://ponywave.de]

View File

@ -8,14 +8,14 @@ end
function run(msg, matches) function run(msg, matches)
URL = matches[1] URL = matches[1]
local receiver = get_receiver(msg) local receiver = get_receiver(msg)
text = run_bash("youtube-dl -o tmp/video.mp4 " .. URL) text = run_bash("rm tmp/video.mp4 && youtube-dl -o tmp/video.mp4 " .. URL)
send_video(get_receiver(msg), "tmp/video.mp4", ok_cb, false) send_video(get_receiver(msg), "tmp/video.mp4", ok_cb, false)
return 'Video wird gesendet! \nDas kann je nach Video bis zu 10 Minuten dauern!' return 'Video wird gesendet! \nDas kann je nach Video bis zu 10 Minuten dauern!'
end end
return { return {
description = "Downloadet und sendet ein YouTube-Video", description = "Downloadet und sendet ein YouTube-Video",
usage = {"/ydl"}, usage = {"/ydl [Link]"},
patterns = {"^/ydl (.*)$"}, patterns = {"^/ydl (.*)$"},
run = run run = run
} }