From 48867b8cf981a8d5a51e9328a0db7abf3a815664 Mon Sep 17 00:00:00 2001 From: SharwOrange Date: Sat, 30 Dec 2023 18:30:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=BA=86=E4=B8=80=E8=A8=80?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=9A=E6=B7=BB=E5=8A=A0=E4=B8=80=E8=A8=80?= =?UTF-8?q?=E6=9D=A5=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connect.py b/connect.py index e5bbabe..13eb0bf 100644 --- a/connect.py +++ b/connect.py @@ -235,7 +235,7 @@ async def add_message(data: Dict[str, Any]): elif result_code == 1: message = Message(content=f"(参数)句子类型如下\na 动画\nb 漫画\nc 游戏\nd 文学\ne 原创\nf 来自网络\ng 其他\nh 影视\ni 诗词\nj 网易云\nk 哲学\nl 抖机灵", room_id=data['roomId']) elif result_code == 0: - message = Message(content=f"“{result_data['hitokoto']}”\n类型:{result_type}", room_id=data['roomId']) + message = Message(content=f"“{result_data['hitokoto']}”\n来源:{result_data['from']}\n类型:{result_type}", room_id=data['roomId']) else: message = Message(content=f"你看到这条消息就代表有bug出炉,但肯定不是模块炸了(", room_id=data['roomId'])