Skip to content

Commit

Permalink
Simple implementation for sign message
Browse files Browse the repository at this point in the history
  • Loading branch information
milkice233 committed Sep 16, 2018
1 parent 4a789bf commit 3f70793
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion efb_qq_slave/Clients/CoolQ/MsgDecorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...]'
Expand Down

0 comments on commit 3f70793

Please sign in to comment.