From 9f76882319caba80f00f560ff8a1f514d72b83e1 Mon Sep 17 00:00:00 2001 From: nex Date: Thu, 1 Jun 2023 01:14:39 +0100 Subject: [PATCH] Tidy up code --- cogs/other.py | 5 ----- main.py | 5 ++++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index 9471ae3..a03334b 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -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() diff --git a/main.py b/main.py index fa2bf61..061621a 100644 --- a/main.py +++ b/main.py @@ -35,7 +35,10 @@ 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 - await ctx.respond("Application Command Error: `%r`" % error) + 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