Update advanced.py

This commit is contained in:
AakashS 2022-01-08 10:34:26 +05:30 committed by GitHub
parent 3d659208db
commit da2c854c7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -92,10 +92,11 @@ class Music(commands.Cog):
bot.loop.create_task(self.start_nodes()) bot.loop.create_task(self.start_nodes())
async def start_nodes(self): async def start_nodes(self):
# You can pass in Spotify credentials to enable Spotify querying.
# If you do not pass in valid Spotify credentials, Spotify querying will not work
# Waiting for the bot to get ready before connecting to nodes. # Waiting for the bot to get ready before connecting to nodes.
await self.bot.wait_until_ready() await self.bot.wait_until_ready()
# You can pass in Spotify credentials to enable Spotify querying.
# If you do not pass in valid Spotify credentials, Spotify querying will not work
await self.pomice.create_node( await self.pomice.create_node(
bot=self.bot, bot=self.bot,
host="127.0.0.1", host="127.0.0.1",