完善了一言功能:添加一言来源
This commit is contained in:
parent
70a01ec9f5
commit
48867b8cf9
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user