mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-15 14:22:13 +00:00
Tag: 1.15
Intermediate commits (oldest → newest): - Testing transcribe - Additions before wsl purge - Transcribe cog - Tst - fx - fx - Fx - Fix - Testing for transcribe - work - Test - Att2 - Att 3 - saving - ffmpeg - Fsink wsink - fx - msink - tst - Fix - 2 - Events - fx1 - fx2 - fix - 11 - A - TR - Fix - Fix - Revert - fx - fx - Fix - fx - fx - fx - fx - aaa - FX - fx - :S - :) - aaaa - fx - fgf - Fx - aa - Fx - ff - aa - as - zzz - fx - :) - fx - fx - addfs - fa - Test - Fixtime - FX - Fix - aa - FX - test - Fa - fix - test - fix - fx - aaa - fix - fx - Hack na hacku hackiem pogania - Fix fo hack - Fix asyncio sleep - tst - tst - 1 - tst 2 - ii - Thread - asa - Fx - Fix - Fx test - fx - tst - asynv - async - fx - fx - Test - SAy - ass - Bugfix - fx - fx - test - fx - fx - fx - fx - Masha wants to code - tesst - test - Fur ktosia! - Last łan for todej mejbi - test - Fixing debug levels - Clock tests
This commit is contained in:
@@ -122,7 +122,6 @@ class MusicFileList(object):
|
||||
|
||||
|
||||
# *=========================================== Predefines
|
||||
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
|
||||
MASTER_TIMEOUT = datetime.now()
|
||||
INITIAL_TIME_WAIT = 500
|
||||
MUZYKA: Music_Config = {"ctx": None, "queue": [], "requester": []}
|
||||
@@ -243,6 +242,7 @@ handler = handlers.RotatingFileHandler(
|
||||
maxBytes=6 * 1024 * 1024,
|
||||
backupCount=6,
|
||||
)
|
||||
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
|
||||
handler.setFormatter(formatter)
|
||||
logger.addHandler(handler)
|
||||
random.seed()
|
||||
@@ -301,8 +301,13 @@ logger.info("Done")
|
||||
async def on_ready():
|
||||
"""Metoda wywoływana przy połączeniu do serwera."""
|
||||
logger.debug("%s has connected to Discord!", client.user)
|
||||
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()
|
||||
|
||||
@@ -537,16 +542,20 @@ async def connect(ctx, arg=None):
|
||||
"""
|
||||
if ctx and arg:
|
||||
logger.info("Ctx and arg defined for connect")
|
||||
voice_channel = client.get_channel(1060349757349974066)
|
||||
|
||||
if client.voice_clients:
|
||||
voice_client = client.voice_clients[0]
|
||||
if voice_client.is_connected():
|
||||
logger.info("Already connected with other client")
|
||||
else:
|
||||
vc = None
|
||||
if ctx.author.voice.channel:
|
||||
vc = await ctx.author.voice.channel.connect()
|
||||
else:
|
||||
voice_channel = client.get_channel(1060349757349974066)
|
||||
vc = await voice_channel.connect()
|
||||
if not vc:
|
||||
logger.error("Not possible to connect to voice")
|
||||
return
|
||||
voice_channel_connection = await voice_channel.connect()
|
||||
if not voice_channel_connection:
|
||||
logger.error("Not possible to connect to voice")
|
||||
logger.info("Connecting to voice")
|
||||
logger.info("Connected to voice")
|
||||
|
||||
|
||||
async def disconnect(ctx):
|
||||
|
||||
Reference in New Issue
Block a user