This commit is contained in:
Mylloon 2021-08-06 17:11:08 +02:00
parent 65d691040d
commit 0ab77a89f0

View file

@ -23,13 +23,15 @@ class Music(commands.Cog):
async def start_nodes(self):
await self.client.wait_until_ready()
await self.client.wavelink.initiate_node(host = "127.0.0.1",
port = 2333,
rest_uri = "http://127.0.0.1:2333",
password = "youshallnotpass",
identifier = "PROD",
region = self.keys["REGION_DISCORD"])
try:
await self.client.wavelink.initiate_node(host = "127.0.0.1",
port = 2333,
rest_uri = "http://127.0.0.1:2333",
password = "youshallnotpass",
identifier = "PROD",
region = self.keys["REGION_DISCORD"])
except:
await self.start_nodes()
@commands.command(name='connect')
async def connect_(self, ctx, *, channel: discord.VoiceChannel = None):