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