function run(msg, matches) URL = matches[1] local receiver = get_receiver(msg) 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) return 'Video wird gesendet! \nDas kann je nach Video bis zu 10 Minuten dauern!' end return { description = "Downloadet und sendet ein YouTube-Video", usage = {"/ydl [Link]"}, patterns = {"^/ydl (.*)$"}, run = run } --by Akamaru [https://ponywave.de]