Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Oct 27, 2023
1 parent e2576bb commit fe6e831
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions matterdelta/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def _on_start(bot: Bot, args: Namespace) -> None:

@cli.on(events.RawEvent)
def _log_event(event: AttrDict) -> None:
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
2 changes: 1 addition & 1 deletion 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.2.1"
version = "0.2.2"
name = "matterdelta"
description = "Matterbridge API plugin for Delta Chat"
readme = "README.md"
Expand Down

0 comments on commit fe6e831

Please sign in to comment.