mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Fx
This commit is contained in:
@@ -295,17 +295,19 @@ 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")
|
||||
|
||||
await client.load_extension("voice_recognition")
|
||||
logger.info("Cogs")
|
||||
logger.info(client.cogs)
|
||||
await client.change_presence(activity=discord.Game(name="Axe Throwing Darts"))
|
||||
await client.tree.sync()
|
||||
for com in client.commands:
|
||||
logger.info(com.qualified_name)
|
||||
check_self.start()
|
||||
check_data_q.start()
|
||||
|
||||
|
||||
@@ -50,5 +50,5 @@ class Transcriber(commands.Cog):
|
||||
for utterance in transcript.utterances:
|
||||
print(f"Speaker {utterance.speaker}: {utterance.text}")
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Transcriber(bot))
|
||||
async def setup(bot):
|
||||
await bot.add_cog(Transcriber(bot))
|
||||
Reference in New Issue
Block a user