Merge pull request #18 from Aakash-kun/patch-2
Added some fixes to the advanced example.
This commit is contained in:
commit
c0fd4fe734
|
|
@ -89,9 +89,12 @@ class Music(commands.Cog):
|
||||||
self.pomice = pomice.NodePool()
|
self.pomice = pomice.NodePool()
|
||||||
|
|
||||||
# Start the node
|
# Start the node
|
||||||
bot.loop.create_task(self.start_nodes)
|
bot.loop.create_task(self.start_nodes())
|
||||||
|
|
||||||
async def start_nodes(self):
|
async def start_nodes(self):
|
||||||
|
# Waiting for the bot to get ready before connecting to nodes.
|
||||||
|
await self.bot.wait_until_ready()
|
||||||
|
|
||||||
# You can pass in Spotify credentials to enable Spotify querying.
|
# You can pass in Spotify credentials to enable Spotify querying.
|
||||||
# If you do not pass in valid Spotify credentials, Spotify querying will not work
|
# If you do not pass in valid Spotify credentials, Spotify querying will not work
|
||||||
await self.pomice.create_node(
|
await self.pomice.create_node(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue