better comments

This commit is contained in:
Mylloon 2021-08-16 17:07:33 +02:00
parent c0aa999cbd
commit 02f7c1a86b

View file

@ -367,10 +367,10 @@ class Music(commands.Cog, wavelink.WavelinkMixin):
a_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) a_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if a_socket.connect_ex(location) == 0: if a_socket.connect_ex(location) == 0:
await self.bot.wavelink.initiate_node(**nodeValues[n]) # Port is open, connecting... await self.bot.wavelink.initiate_node(**nodeValues[n]) # Port isn't open -> a service is behind, connecting...
n += 1 n += 1
else: else:
sleep(1) # Port is not open, retrying in 1 second... sleep(1) # Port is open -> no service behind, retrying in 1 second...
@wavelink.WavelinkMixin.listener() @wavelink.WavelinkMixin.listener()
async def on_node_ready(self, node: wavelink.Node): async def on_node_ready(self, node: wavelink.Node):