mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
Fixing error 35
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import asyncio
|
import asyncio
|
||||||
from time import time
|
from time import sleep, time
|
||||||
from urllib.parse import parse_qs, urlparse
|
from urllib.parse import parse_qs, urlparse
|
||||||
from Music.VulkanInitializer import VulkanInitializer
|
from Music.VulkanInitializer import VulkanInitializer
|
||||||
from discord import User, Member, Message, VoiceClient
|
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}')
|
self.__loop.create_task(self.__playSong(song), name=f'Song {song.identifier}')
|
||||||
|
|
||||||
def __commandsReceiver(self) -> None:
|
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:
|
while True:
|
||||||
command: VCommands = self.__queueReceive.get()
|
command: VCommands = self.__queueReceive.get()
|
||||||
type = command.getType()
|
type = command.getType()
|
||||||
|
|||||||
Reference in New Issue
Block a user