mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 13:34:40 +00:00
fx
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user