修复群管理员无法添加词条

This commit is contained in:
HibiKier
2022-08-26 19:26:09 +08:00
parent 38160065cc
commit 0756d39ac5
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ async def _(
state: T_State,
reg_group: Tuple[Any, ...] = RegexGroup(),
):
if str(event.user_id) not in bot.config.superusers:
if isinstance(event, PrivateMessageEvent) and str(event.user_id) not in bot.config.superusers:
await add_word.finish('权限不足捏')
word_scope, word_type, problem, answer = reg_group
if (