Skip to content

Commit

Permalink
Merge pull request #16 from adator85/V1.x.x
Browse files Browse the repository at this point in the history
V1.x.x
  • Loading branch information
adator85 authored Sep 29, 2024
2 parents 791bb8e + 98fe5ff commit 929c105
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Binary file added dist/unrealircd_rpc_py-1.0.3-py3-none-any.whl
Binary file not shown.
Binary file added dist/unrealircd_rpc_py-1.0.3.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions unrealircd_rpc_py/Live.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "1.0.2"
"version": "1.0.3"
}

0 comments on commit 929c105

Please sign in to comment.