diff --git a/dist/unrealircd_rpc_py-1.0.3-py3-none-any.whl b/dist/unrealircd_rpc_py-1.0.3-py3-none-any.whl new file mode 100644 index 0000000..24b4ef0 Binary files /dev/null and b/dist/unrealircd_rpc_py-1.0.3-py3-none-any.whl differ diff --git a/dist/unrealircd_rpc_py-1.0.3.tar.gz b/dist/unrealircd_rpc_py-1.0.3.tar.gz new file mode 100644 index 0000000..472a7a0 Binary files /dev/null and b/dist/unrealircd_rpc_py-1.0.3.tar.gz differ diff --git a/setup.py b/setup.py index 135161e..4463913 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='unrealircd_rpc_py', - version='1.0.2', + version='1.0.3', packages=find_packages(), install_requires=[ "requests>=2.25.1" diff --git a/unrealircd_rpc_py/Live.py b/unrealircd_rpc_py/Live.py index 6a0fe7b..c8ed400 100644 --- a/unrealircd_rpc_py/Live.py +++ b/unrealircd_rpc_py/Live.py @@ -108,15 +108,15 @@ def __init_log_system(self) -> None: encoding='UTF-8', format='%(asctime)s - %(levelname)s - %(filename)s - %(lineno)d - %(funcName)s - %(message)s') - def subscribe(self, param: dict = {"sources": ["all"]}): + def subscribe(self, sources: list = ["!debug", "all"]): """Subscribe to the rpc server stream param exemple: \n ["!debug","all"] would give you all log messages except for debug messages see: https://www.unrealircd.org/docs/List_of_all_log_messages Args: - param (dict, optional): The ressources you want to subscribe. Defaults to {"sources": ["all"]}. + param (list, optional): The ressources you want to subscribe. Defaults to ["!debug","all"]. """ - asyncio.run(self.query('log.subscribe', param=param)) + asyncio.run(self.query('log.subscribe', param={"sources": sources})) def unsubscribe(self): """Run a del timer to trigger an event and then unsubscribe from the stream diff --git a/version.json b/version.json index 19d87fe..5f0d6c7 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "1.0.2" + "version": "1.0.3" } \ No newline at end of file