Documentation update

This commit is contained in:
Mark Hoekveen
2019-04-24 16:22:01 +02:00
parent 22df5adc75
commit 72e2d10f2c
+5 -2
View File
@@ -82,12 +82,16 @@ class General(object):
def gif(self, ctx, yt: str, start: str, duration: str, res: str, fps: int): def gif(self, ctx, yt: str, start: str, duration: str, res: str, fps: int):
""" Giffify. """ Giffify.
Syntax: !gif [YT] [START] [DUUR] [RESOLUTIE] [FPS] 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: try:
yield from ctx.message.delete() yield from ctx.message.delete()
except: except:
print("No permission to delete message") print("No permission to delete message")
os.remove('temp')
ydl_opts = { ydl_opts = {
'outtmpl': 'temp', 'outtmpl': 'temp',
'format': 'bestvideo[ext=mp4]/mp4' 'format': 'bestvideo[ext=mp4]/mp4'
@@ -107,7 +111,6 @@ class General(object):
.overwrite_output() .overwrite_output()
.run() .run()
) )
os.remove('temp')
yield from ctx.channel.send(ctx.author.mention + ' hoi ', file=discord.File('out.gif')) yield from ctx.channel.send(ctx.author.mention + ' hoi ', file=discord.File('out.gif'))
@commands.command(pass_context=True, hidden=True) @commands.command(pass_context=True, hidden=True)