From 72e2d10f2c336b8c79a9eea21803d5c9928f9626 Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Wed, 24 Apr 2019 16:22:01 +0200 Subject: [PATCH] Documentation update --- General.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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)