mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 03:15:24 +08:00
Remove discuss check in get_target
This commit is contained in:
parent
461612e166
commit
86e20eb54b
@ -74,9 +74,6 @@ def get_target(ctx_msg):
|
||||
if ctx_msg.get('via') == 'qq':
|
||||
if ctx_msg.get('type') == 'group_message' and 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'):
|
||||
return 'p' + ctx_msg.get('sender_uid')
|
||||
elif ctx_msg.get('via') == 'wx':
|
||||
|
Loading…
Reference in New Issue
Block a user