From 3f70793a33bbd20803942aa8f589e2eb208e407d Mon Sep 17 00:00:00 2001 From: Milkice Date: Sun, 16 Sep 2018 19:59:29 +0800 Subject: [PATCH] Simple implementation for sign message --- efb_qq_slave/Clients/CoolQ/MsgDecorator.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/efb_qq_slave/Clients/CoolQ/MsgDecorator.py b/efb_qq_slave/Clients/CoolQ/MsgDecorator.py index 2df1960..018b143 100644 --- a/efb_qq_slave/Clients/CoolQ/MsgDecorator.py +++ b/efb_qq_slave/Clients/CoolQ/MsgDecorator.py @@ -133,7 +133,13 @@ def qq_small_face_wrapper(self, data, merged_msg_id) -> EFBMsg: # todo this function's maybe not necessary? pass - def qq_rich_wrapper(self, data) -> EFBMsg: + def qq_sign_wrapper(self, data) -> EFBMsg: + efb_msg = EFBMsg() + efb_msg.type = MsgType.Text + efb_msg.text = 'signed in at ' + data['location'] + return efb_msg + + def qq_rich_wrapper(self, data) -> EFBMsg: # Buggy, Help needed efb_msg = EFBMsg() efb_msg.type = MsgType.Unsupported efb_msg.text += '[Here comes the Rich Text, dumping...]'