From cef06a8894a359671865c2d6b5bb22d9bfc33b80 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 5 Nov 2023 08:41:45 +0800 Subject: [PATCH] fix message event --- app/chain/__init__.py | 1 + requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/chain/__init__.py b/app/chain/__init__.py index 7ecdcb3bb..b95bbd389 100644 --- a/app/chain/__init__.py +++ b/app/chain/__init__.py @@ -372,6 +372,7 @@ def post_message(self, message: Notification) -> None: self.eventmanager.send_event(etype=EventType.NoticeMessage, data={ "channel": message.channel, + "type": message.mtype, "title": message.title, "text": message.text, "image": message.image, diff --git a/requirements.txt b/requirements.txt index f8ba56409..d52016441 100644 --- a/requirements.txt +++ b/requirements.txt @@ -54,4 +54,5 @@ parse~=1.19.0 docker~=6.1.3 cachetools~=5.3.1 fast-bencode~=1.1.3 -pystray~=0.19.5 \ No newline at end of file +pystray~=0.19.5 +pypushdeer~=0.0.3 \ No newline at end of file