MCPcopy
hub / github.com/liuwons/wxBot / get_account_name

Method get_account_name

wxbot.py:156–168  ·  view source on GitHub ↗
(self, uid)

Source from the content-addressed store, hash-verified

154 return None
155
156 def get_account_name(self, uid):
157 info = self.get_account_info(uid)
158 if info is None:
159 return 'unknown'
160 info = info['info']
161 name = {}
162 if 'RemarkName' in info and info['RemarkName']:
163 name['remark_name'] = info['RemarkName']
164 if 'NickName' in info and info['NickName']:
165 name['nickname'] = info['NickName']
166 if 'DisplayName' in info and info['DisplayName']:
167 name['display_name'] = info['DisplayName']
168 return name
169
170 @staticmethod
171 def get_prefer_name(name):

Callers 3

extract_msg_contentMethod · 0.95
handle_msgMethod · 0.95
handle_msg_allMethod · 0.80

Calls 1

get_account_infoMethod · 0.95

Tested by

no test coverage detected