mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🎨 代码格式优化
This commit is contained in:
parent
d811eaa3bc
commit
41d90baf11
@ -25,7 +25,7 @@ from .auth.auth_ban import auth_ban
|
|||||||
from .auth.auth_bot import auth_bot
|
from .auth.auth_bot import auth_bot
|
||||||
from .auth.auth_cost import auth_cost
|
from .auth.auth_cost import auth_cost
|
||||||
from .auth.auth_group import auth_group
|
from .auth.auth_group import auth_group
|
||||||
from .auth.auth_limit import LimitManage, auth_limit
|
from .auth.auth_limit import LimitManager, auth_limit
|
||||||
from .auth.auth_plugin import auth_plugin
|
from .auth.auth_plugin import auth_plugin
|
||||||
from .auth.bot_filter import bot_filter
|
from .auth.bot_filter import bot_filter
|
||||||
from .auth.config import LOGGER_COMMAND
|
from .auth.config import LOGGER_COMMAND
|
||||||
@ -163,7 +163,7 @@ async def auth(
|
|||||||
)
|
)
|
||||||
await auth_limit(plugin, session)
|
await auth_limit(plugin, session)
|
||||||
except SkipPluginException as e:
|
except SkipPluginException as e:
|
||||||
LimitManage.unblock(module, entity.user_id, entity.group_id, entity.channel_id)
|
LimitManager.unblock(module, entity.user_id, entity.group_id, entity.channel_id)
|
||||||
logger.info(str(e), LOGGER_COMMAND, session=session)
|
logger.info(str(e), LOGGER_COMMAND, session=session)
|
||||||
ignore_flag = True
|
ignore_flag = True
|
||||||
except IsSuperuserException:
|
except IsSuperuserException:
|
||||||
|
|||||||
@ -1,6 +1,4 @@
|
|||||||
import os
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import sys
|
|
||||||
|
|
||||||
import nonebot
|
import nonebot
|
||||||
from nonebot.adapters import Bot
|
from nonebot.adapters import Bot
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user