This commit is contained in:
2024-08-15 16:54:08 +02:00
parent 63fb7a3b8a
commit ce9beb5ecf
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -49,7 +49,6 @@ from communication_subroutine import (
comm_subroutine, comm_subroutine,
PREPPED_TRACKS, PREPPED_TRACKS,
) )
import voice_recognition
from spotify_dl import spotify from spotify_dl import spotify
from spotify_dl import youtube as youtube_download from spotify_dl import youtube as youtube_download
@@ -296,13 +295,14 @@ logger.info("Done")
logger.info("Creating flask app") logger.info("Creating flask app")
logger.info("Done") logger.info("Done")
client.load_extension("voice_recognition")
# *=========================================== Define Events # *=========================================== Define Events
@client.event @client.event
async def on_ready(): async def on_ready():
"""Metoda wywoływana przy połączeniu do serwera.""" """Metoda wywoływana przy połączeniu do serwera."""
logger.debug("%s has connected to Discord!", client.user) 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.change_presence(activity=discord.Game(name="Axe Throwing Darts"))
await client.tree.sync() await client.tree.sync()
+1 -1
View File
@@ -30,7 +30,7 @@ class Transcriber(commands.Cog):
if channel is not None: if channel is not None:
await channel.send(f'Witaj u Nas {member.mention}.') 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): async def witaj(self, ctx, *, member: discord.Member = None):
"""Says hello""" """Says hello"""
member = member or ctx.author member = member or ctx.author