mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-26 22:06:45 +00:00
Remove discuss check in get_target
This commit is contained in:
@ -74,9 +74,6 @@ def get_target(ctx_msg):
|
|||||||
if ctx_msg.get('via') == 'qq':
|
if ctx_msg.get('via') == 'qq':
|
||||||
if ctx_msg.get('type') == 'group_message' and ctx_msg.get('group_uid'):
|
if ctx_msg.get('type') == 'group_message' and ctx_msg.get('group_uid'):
|
||||||
return 'g' + ctx_msg.get('group_uid')
|
return 'g' + ctx_msg.get('group_uid')
|
||||||
elif ctx_msg.get('type') == 'discuss_message':
|
|
||||||
# TODO: 看看讨论组 ID 重新启动会不会变
|
|
||||||
pass
|
|
||||||
elif ctx_msg.get('type') == 'friend_message' and ctx_msg.get('sender_uid'):
|
elif ctx_msg.get('type') == 'friend_message' and ctx_msg.get('sender_uid'):
|
||||||
return 'p' + ctx_msg.get('sender_uid')
|
return 'p' + ctx_msg.get('sender_uid')
|
||||||
elif ctx_msg.get('via') == 'wx':
|
elif ctx_msg.get('via') == 'wx':
|
||||||
|
Reference in New Issue
Block a user