mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Hejko
This commit is contained in:
@@ -1335,7 +1335,6 @@ async def graj_muzyko(ctx):
|
||||
"""
|
||||
|
||||
logger.info("Press play on tape")
|
||||
check_music.start()
|
||||
async with ctx.typing():
|
||||
global MUZYKA # pylint: disable=global-variable-not-assigned
|
||||
MUZYKA["playing"] = True
|
||||
@@ -1343,6 +1342,7 @@ async def graj_muzyko(ctx):
|
||||
await connect(ctx=ctx)
|
||||
await play(ctx=ctx)
|
||||
logger.info("Press play on tape completed")
|
||||
check_music.start()
|
||||
|
||||
|
||||
@client.hybrid_command(
|
||||
@@ -1364,13 +1364,13 @@ async def cisza(ctx):
|
||||
MUZYKA["playing"] = False
|
||||
MUZYKA["ctx"] = None
|
||||
voice_client = client.voice_clients[0]
|
||||
check_music.stop()
|
||||
if voice_client.is_connected():
|
||||
await disconnect(ctx=ctx)
|
||||
while MUZYKA["queue"]:
|
||||
MUZYKA["queue"].pop()
|
||||
MUZYKA["requester"].pop()
|
||||
logger.info("Stop completed")
|
||||
check_music.stop()
|
||||
|
||||
|
||||
@client.hybrid_command(
|
||||
|
||||
Reference in New Issue
Block a user