diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rw-r--r-- | cogs/ai.py | 1 | ||||
| -rw-r--r-- | cogs/music/join.py | 3 | ||||
| -rw-r--r-- | cogs/music/stop.py | 2 | ||||
| -rw-r--r-- | settings.json | 3 |
5 files changed, 7 insertions, 5 deletions
| @@ -2,4 +2,5 @@ | |||
| 2 | __pycache__/ | 2 | __pycache__/ |
| 3 | temp/ | 3 | temp/ |
| 4 | cogs/__pycache__ | 4 | cogs/__pycache__ |
| 5 | cogs/music/__pycache__ \ No newline at end of file | 5 | cogs/music/__pycache__ |
| 6 | settings.json \ No newline at end of file | ||
| @@ -42,6 +42,7 @@ class AI(commands.Cog): | |||
| 42 | 42 | ||
| 43 | }) | 43 | }) |
| 44 | ) | 44 | ) |
| 45 | logger.info(response.json()) | ||
| 45 | await ctx.send_followup(response.json()["choices"][0]["message"]["content"]) | 46 | await ctx.send_followup(response.json()["choices"][0]["message"]["content"]) |
| 46 | 47 | ||
| 47 | 48 | ||
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): | |||
| 13 | async def join(self, ctx): | 13 | async def join(self, ctx): |
| 14 | channel = ctx.author.voice.channel | 14 | channel = ctx.author.voice.channel |
| 15 | await channel.connect() | 15 | await channel.connect() |
| 16 | await ctx.followup.send("Dołączono do kanalu głosowego", ephemeral=True) | 16 | await ctx.respond(content="\u200b", ephemeral=True) |
| 17 | await ctx.interaction.delete_original_message() | ||
| 17 | logger.info("Bot connected to voice channel") | 18 | logger.info("Bot connected to voice channel") |
| 18 | 19 | ||
| 19 | 20 | ||
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): | |||
| 11 | 11 | ||
| 12 | @commands.slash_command(name="stop", description="stopuj bota") | 12 | @commands.slash_command(name="stop", description="stopuj bota") |
| 13 | async def stop(self, ctx): | 13 | async def stop(self, ctx): |
| 14 | await ctx.respond(content="\u200b", ephemeral=True) | ||
| 15 | await ctx.interaction.delete_original_message() | ||
| 14 | await ctx.voice_client.disconnect() | 16 | await ctx.voice_client.disconnect() |
| 15 | logger.info("Bot disconnected from voice channel") | 17 | logger.info("Bot disconnected from voice channel") |
| 16 | 18 | ||
diff --git a/settings.json b/settings.json deleted file mode 100644 index c2ce2d4..0000000 --- a/settings.json +++ /dev/null | |||
| @@ -1,3 +0,0 @@ | |||
| 1 | { | ||
| 2 | "volume": 4 | ||
| 3 | } \ No newline at end of file | ||
