Skip to content

Commit

Permalink
根据参数创建频道
Browse files Browse the repository at this point in the history
  • Loading branch information
zwssunny committed Mar 27, 2023
1 parent 5b85e60 commit f76e8d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion channel/wechat/wechat_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def handle_group(self, msg):
thread_pool_callback)

def handle_group_voice(self, msg):
if conf().get('speech_recognition') != True:
if conf().get('group_speech_recognition') != True:
return
logger.debug("[WX]receive group voice msg: " + msg['FileName'])
group_name = msg['User'].get('NickName', None)
Expand Down
1 change: 1 addition & 0 deletions channel/wechat/wechaty_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async def on_login(self, contact: Contact):

async def on_scan(self, status: ScanStatus, qr_code: Optional[str] = None,
data: Optional[str] = None):
pass
# contact = self.Contact.load(self.contact_id)
# logger.info('[WX] scan user={}, scan status={}, scan qr_code={}'.format(contact, status.name, qr_code))
# print(f'user <{contact}> scan status: {status.name} , 'f'qr_code: {qr_code}')
Expand Down

0 comments on commit f76e8d9

Please sign in to comment.