From ce9beb5ecfcca3c16333fdedec7fade299a5b896 Mon Sep 17 00:00:00 2001 From: mtuszowski Date: Thu, 15 Aug 2024 16:54:08 +0200 Subject: [PATCH] fx --- bot.py | 4 ++-- voice_recognition.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 65a7894..03f9ef2 100644 --- a/bot.py +++ b/bot.py @@ -49,7 +49,6 @@ from communication_subroutine import ( comm_subroutine, PREPPED_TRACKS, ) -import voice_recognition from spotify_dl import spotify from spotify_dl import youtube as youtube_download @@ -296,13 +295,14 @@ logger.info("Done") logger.info("Creating flask app") logger.info("Done") +client.load_extension("voice_recognition") # *=========================================== Define Events @client.event async def on_ready(): """Metoda wywoływana przy połączeniu do serwera.""" logger.debug("%s has connected to Discord!", client.user) - client.load_extension("voice_recognition") + #client.load_extension("voice_recognition") await client.change_presence(activity=discord.Game(name="Axe Throwing Darts")) await client.tree.sync() diff --git a/voice_recognition.py b/voice_recognition.py index 1e18a74..7821699 100644 --- a/voice_recognition.py +++ b/voice_recognition.py @@ -30,7 +30,7 @@ class Transcriber(commands.Cog): if channel is not None: await channel.send(f'Witaj u Nas {member.mention}.') - @commands.hybrid_command() + @commands.hybrid_command(name="witaj") async def witaj(self, ctx, *, member: discord.Member = None): """Says hello""" member = member or ctx.author