mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Aggiunto comando !clear.
This commit is contained in:
parent
084a000842
commit
294e875236
1 changed files with 11 additions and 0 deletions
|
@ -436,6 +436,17 @@ async def cmd_shuffle(channel: discord.Channel, author: discord.Member, params:
|
|||
await client.send_message(channel, "♠️ ♦️ ♣️ ♥️ Shuffle completo!")
|
||||
|
||||
|
||||
@command
|
||||
@requires_cv
|
||||
async def cmd_clear(channel: discord.Channel, author: discord.Member, params: typing.List[str]):
|
||||
global voice_queue
|
||||
if len(voice_queue) == 0:
|
||||
await client.send_message(channel, "⚠ Non ci sono video in coda!")
|
||||
return
|
||||
voice_queue = []
|
||||
await client.send_message(channel, "❌ Tutti i video in coda rimossi.")
|
||||
|
||||
|
||||
async def queue_predownload_videos():
|
||||
while True:
|
||||
for index, video in enumerate(voice_queue[:int(config["YouTube"]["predownload_videos"])].copy()):
|
||||
|
|
Loading…
Reference in a new issue