From 992b643f5bd9a929087bee615fb9f8e57d81d812 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 15 Apr 2019 16:07:32 +0200 Subject: [PATCH] WIP Discord YtdlFile --- royalnet/audio/discordytdl.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 royalnet/audio/discordytdl.py diff --git a/royalnet/audio/discordytdl.py b/royalnet/audio/discordytdl.py new file mode 100644 index 00000000..856e12f2 --- /dev/null +++ b/royalnet/audio/discordytdl.py @@ -0,0 +1,7 @@ +import discord +from .youtubedl import YtdlFile + + +class DiscordYtdlFile(YtdlFile): + def create_audio_source(self): + return discord.FFmpegPCMAudio(self.filename)