Update advanced.py
This commit is contained in:
parent
5c961b9a36
commit
3d659208db
|
|
@ -89,11 +89,13 @@ class Music(commands.Cog):
|
|||
self.pomice = pomice.NodePool()
|
||||
|
||||
# Start the node
|
||||
bot.loop.create_task(self.start_nodes)
|
||||
bot.loop.create_task(self.start_nodes())
|
||||
|
||||
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.
|
||||
await self.bot.wait_until_ready()
|
||||
await self.pomice.create_node(
|
||||
bot=self.bot,
|
||||
host="127.0.0.1",
|
||||
|
|
|
|||
Loading…
Reference in New Issue