From 9884419d5d18581f5a8b0233ae1606515bf87571 Mon Sep 17 00:00:00 2001 From: Samlon Date: Wed, 13 Aug 2025 12:43:43 +0200 Subject: prevent discord from complaining --- .gitignore | 3 ++- cogs/ai.py | 1 + cogs/music/join.py | 3 ++- cogs/music/stop.py | 2 ++ settings.json | 3 --- 5 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 settings.json diff --git a/.gitignore b/.gitignore index deb381b..b97d559 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ __pycache__/ temp/ cogs/__pycache__ -cogs/music/__pycache__ \ No newline at end of file +cogs/music/__pycache__ +settings.json \ No newline at end of file diff --git a/cogs/ai.py b/cogs/ai.py index 0a99c64..31e384d 100644 --- a/cogs/ai.py +++ b/cogs/ai.py @@ -42,6 +42,7 @@ class AI(commands.Cog): }) ) + logger.info(response.json()) await ctx.send_followup(response.json()["choices"][0]["message"]["content"]) diff --git a/cogs/music/join.py b/cogs/music/join.py index a0b51f9..47c746f 100644 --- a/cogs/music/join.py +++ b/cogs/music/join.py @@ -13,7 +13,8 @@ class Join(commands.Cog): async def join(self, ctx): channel = ctx.author.voice.channel await channel.connect() - await ctx.followup.send("Dołączono do kanalu głosowego", ephemeral=True) + await ctx.respond(content="\u200b", ephemeral=True) + await ctx.interaction.delete_original_message() logger.info("Bot connected to voice channel") diff --git a/cogs/music/stop.py b/cogs/music/stop.py index c7abfbd..5713c81 100644 --- a/cogs/music/stop.py +++ b/cogs/music/stop.py @@ -11,6 +11,8 @@ class Stop(commands.Cog): @commands.slash_command(name="stop", description="stopuj bota") async def stop(self, ctx): + await ctx.respond(content="\u200b", ephemeral=True) + await ctx.interaction.delete_original_message() await ctx.voice_client.disconnect() logger.info("Bot disconnected from voice channel") diff --git a/settings.json b/settings.json deleted file mode 100644 index c2ce2d4..0000000 --- a/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "volume": 4 -} \ No newline at end of file -- cgit v1.2.3