diff --git a/General.py b/General.py index 2dfa343..b2ed477 100644 --- a/General.py +++ b/General.py @@ -82,12 +82,16 @@ class General(object): def gif(self, ctx, yt: str, start: str, duration: str, res: str, fps: int): """ Giffify. Syntax: !gif [YT] [START] [DUUR] [RESOLUTIE] [FPS] - Bv: !gif RPxvTd_jCPQ 00:02:39 13 320 10 + Bv: !gif RPxvTd_jCPQ 10 5 320 10 + Alleen de Youtube ID is nodig. + Start en duur zijn in seconden. + Resolutie is de breedte """ try: yield from ctx.message.delete() except: print("No permission to delete message") + os.remove('temp') ydl_opts = { 'outtmpl': 'temp', 'format': 'bestvideo[ext=mp4]/mp4' @@ -107,7 +111,6 @@ class General(object): .overwrite_output() .run() ) - os.remove('temp') yield from ctx.channel.send(ctx.author.mention + ' hoi ', file=discord.File('out.gif')) @commands.command(pass_context=True, hidden=True)