diff --git a/src/cogs/music.py b/src/cogs/music.py index 928d2eb..a7107ff 100644 --- a/src/cogs/music.py +++ b/src/cogs/music.py @@ -2,7 +2,7 @@ import discord from subprocess import Popen, DEVNULL from wavelink import Client as wClient from discord.ext import commands -from utils.core import load +from time import sleep def setup(client): client.add_cog(Music(client)) @@ -22,15 +22,14 @@ class Music(commands.Cog): async def start_nodes(self): await self.client.wait_until_ready() + sleep(2) # pour être sur que lavalink est le temps de démarré correctement - # Initiate our nodes. For this example we will use one server. - # Region should be a discord.py guild.region e.g sydney or us_central (Though this is not technically required) await self.client.wavelink.initiate_node(host = "127.0.0.1", port = 2333, rest_uri = "http://127.0.0.1:2333", password = "youshallnotpass", - identifier = "TEST", - region = "us_central") + identifier = "PROD", + region = "eu_west") @commands.command(name='connect') async def connect_(self, ctx, *, channel: discord.VoiceChannel = None):