mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-12-16 13:40:53 +08:00
🐛 修复群聊学习
屏蔽人失效问题
This commit is contained in:
parent
a7ad1aef0c
commit
45a6777855
@ -79,6 +79,7 @@ class LearningChat:
|
|||||||
elif self.data.user_id in self.ban_users:
|
elif self.data.user_id in self.ban_users:
|
||||||
# 发言人在屏蔽列表中,跳过
|
# 发言人在屏蔽列表中,跳过
|
||||||
logger.debug('群聊学习', f'➤发言人<m>{self.data.user_id}</m>在屏蔽列表中,跳过')
|
logger.debug('群聊学习', f'➤发言人<m>{self.data.user_id}</m>在屏蔽列表中,跳过')
|
||||||
|
return Result.Pass
|
||||||
elif self.to_me and any(w in self.data.message for w in {'不可以', '达咩', '不能说这'}):
|
elif self.to_me and any(w in self.data.message for w in {'不可以', '达咩', '不能说这'}):
|
||||||
# 如果是对某句话进行禁言
|
# 如果是对某句话进行禁言
|
||||||
return Result.Ban
|
return Result.Ban
|
||||||
|
Loading…
x
Reference in New Issue
Block a user