Skip to content

Commit

Permalink
update to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Oct 27, 2023
1 parent be2b902 commit f090432
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/echobot_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand All @@ -35,7 +35,7 @@ dev = [
"pytest",
]
server = [
"deltachat-rpc-server>=1.125.0",
"deltachat-rpc-server>=1.127.0",
]

[tool.black]
Expand Down

0 comments on commit f090432

Please sign in to comment.