geen duration check meer
yolo
This commit is contained in:
+1
-3
@@ -79,13 +79,11 @@ class General(object):
|
|||||||
|
|
||||||
@commands.command(pass_context=True)
|
@commands.command(pass_context=True)
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def gif(self, ctx, yt: str, start: str, duration: int, 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 00:02:39 13 320 10
|
||||||
"""
|
"""
|
||||||
if (duration > 20):
|
|
||||||
yield from ctx.channel.send(ctx.author.mention + ' Au, stop. Dat is te lang.')
|
|
||||||
try:
|
try:
|
||||||
yield from ctx.message.delete()
|
yield from ctx.message.delete()
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user