mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 08:39:59 +08:00
修复词条在某些回答下出错
This commit is contained in:
@@ -144,7 +144,7 @@ class AuthChecker:
|
||||
try:
|
||||
plugin_name = matcher.plugin_name
|
||||
cost_gold = await self.auth_cost(plugin_name, bot, event)
|
||||
if str(event.user_id) not in bot.config.superusers:
|
||||
if hasattr(event, "user_id") and str(event.user_id) not in bot.config.superusers:
|
||||
await self.auth_basic(plugin_name, bot, event)
|
||||
self.auth_group(plugin_name, bot, event)
|
||||
await self.auth_admin(plugin_name, matcher, bot, event)
|
||||
|
||||
Reference in New Issue
Block a user