mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Tidy up code
This commit is contained in:
parent
485061bb49
commit
9f76882319
2 changed files with 4 additions and 6 deletions
|
@ -866,11 +866,6 @@ class OtherCog(commands.Cog):
|
|||
) = "",
|
||||
extract_audio: bool = False,
|
||||
upload_log: bool = False,
|
||||
# cookies: discord.Option(
|
||||
# bool,
|
||||
# description="Whether to ask for cookies.",
|
||||
# default=False
|
||||
# ) = False
|
||||
):
|
||||
"""Downloads a video using youtube-dl"""
|
||||
await ctx.defer()
|
||||
|
|
3
main.py
3
main.py
|
@ -35,6 +35,9 @@ async def on_application_command_error(ctx: discord.ApplicationContext, error: E
|
|||
if error.args and error.args[0] == "User not connected to a voice channel.":
|
||||
return
|
||||
|
||||
if ctx.user.id == 1019233057519177778:
|
||||
await ctx.respond("Uh oh! I did a fucky wucky >.< I'll make sure to let important peoplez know straight away!!")
|
||||
else:
|
||||
await ctx.respond("Application Command Error: `%r`" % error)
|
||||
raise error
|
||||
|
||||
|
|
Loading…
Reference in a new issue