mirror of
https://github.com/weyne85/discord_music_bot.git
synced 2025-10-29 16:58:27 +00:00
Fixing error 35
This commit is contained in:
parent
f4e9e46d6d
commit
8dc68b0898
@ -1,5 +1,5 @@
|
||||
import asyncio
|
||||
from time import time
|
||||
from time import sleep, time
|
||||
from urllib.parse import parse_qs, urlparse
|
||||
from Music.VulkanInitializer import VulkanInitializer
|
||||
from discord import User, Member, Message, VoiceClient
|
||||
@ -257,6 +257,13 @@ class PlayerProcess(Process):
|
||||
self.__loop.create_task(self.__playSong(song), name=f'Song {song.identifier}')
|
||||
|
||||
def __commandsReceiver(self) -> None:
|
||||
# Forces the Thread that listen to the commands to await this bot instance
|
||||
# to stablish the connection with discord, may delay when running bots in several servers
|
||||
while True:
|
||||
if self.__guildID is not None:
|
||||
break
|
||||
sleep(0.1)
|
||||
|
||||
while True:
|
||||
command: VCommands = self.__queueReceive.get()
|
||||
type = command.getType()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user