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