From f090432bf557211b384e2314d573325d73371e16 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Fri, 27 Oct 2023 09:19:52 +0200 Subject: [PATCH] update to new API --- examples/echobot_advanced.py | 6 +++--- pyproject.toml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/echobot_advanced.py b/examples/echobot_advanced.py index ddeed7c..76890c1 100755 --- a/examples/echobot_advanced.py +++ b/examples/echobot_advanced.py @@ -9,11 +9,11 @@ @cli.on(events.RawEvent) def log_event(event): - if event.type == EventType.INFO: + if event.kind == EventType.INFO: logging.info(event.msg) - elif event.type == EventType.WARNING: + elif event.kind == EventType.WARNING: logging.warning(event.msg) - elif event.type == EventType.ERROR: + elif event.kind == EventType.ERROR: logging.error(event.msg) diff --git a/pyproject.toml b/pyproject.toml index b3d3c30..129280e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" [project] -version = "0.1.0" +version = "0.2.0" name = "deltabot-cli" description = "Library to speedup Delta Chat bot development" readme = "README.md" @@ -19,7 +19,7 @@ classifiers = [ "Intended Audience :: Developers", ] dependencies = [ - "deltachat-rpc-client>=1.125.0", + "deltachat-rpc-client>=1.127.0", "appdirs>=1.4.4", "rich>=12.6.0", "qrcode>=7.4.2", @@ -35,7 +35,7 @@ dev = [ "pytest", ] server = [ - "deltachat-rpc-server>=1.125.0", + "deltachat-rpc-server>=1.127.0", ] [tool.black]