diff --git a/pomice/pool.py b/pomice/pool.py index e0dbd70..0796307 100644 --- a/pomice/pool.py +++ b/pomice/pool.py @@ -4,6 +4,7 @@ import random from . import exceptions from .node import Node +from typing import Optional from discord.ext import commands @@ -35,12 +36,12 @@ class NodePool: return available_nodes.get(identifier, None) @classmethod - async def create_node(self, bot: typing.Union[commands.Bot, discord.Client, commands.AutoShardedBot, discord.AutoShardedClient], host: str, port: str, password: str, identifier: str) -> Node: + async def create_node(self, bot: typing.Union[commands.Bot, discord.Client, commands.AutoShardedBot, discord.AutoShardedClient], host: str, port: str, password: str, identifier: str, spotify_client_id: Optional[str], spotify_client_secret: Optional[str]) -> Node: """Creates a Node object to be then added into the node pool. If you like to have Spotify searching capabilites, pass in valid Spotify API credentials.""" if identifier in self._nodes.keys(): raise exceptions.NodeCreationError(f"A node with identifier '{identifier}' already exists.") - node = Node(pool=self, bot=bot, host=host, port=port, password=password, identifier=identifier) + node = Node(pool=self, bot=bot, host=host, port=port, password=password, identifier=identifier, spotify_client_id=spotify_client_id, spotify_client_secret=spotify_client_secret) await node.connect() self._nodes[node._identifier] = node return node diff --git a/setup.py b/setup.py index f5ca481..0206384 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.md") as f: setuptools.setup( name="pomice", author="cloudwithax", - version="1.0.3", + version="1.0.3.1", url="https://github.com/cloudwithax/pomice", packages=setuptools.find_packages(), license="GPL",