mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🚨 ruff lint
This commit is contained in:
parent
c03a46b38c
commit
842e067fdf
@ -4,13 +4,13 @@ import nonebot
|
|||||||
from nonebot.adapters import Bot
|
from nonebot.adapters import Bot
|
||||||
from nonebot.plugin import PluginMetadata
|
from nonebot.plugin import PluginMetadata
|
||||||
|
|
||||||
from zhenxun.services.log import logger
|
|
||||||
from zhenxun.utils.enum import PluginType
|
|
||||||
from zhenxun.models.task_info import TaskInfo
|
|
||||||
from zhenxun.utils.platform import PlatformUtils
|
|
||||||
from zhenxun.configs.utils import PluginExtraData
|
from zhenxun.configs.utils import PluginExtraData
|
||||||
from zhenxun.models.bot_console import BotConsole
|
from zhenxun.models.bot_console import BotConsole
|
||||||
from zhenxun.models.plugin_info import PluginInfo
|
from zhenxun.models.plugin_info import PluginInfo
|
||||||
|
from zhenxun.models.task_info import TaskInfo
|
||||||
|
from zhenxun.services.log import logger
|
||||||
|
from zhenxun.utils.enum import PluginType
|
||||||
|
from zhenxun.utils.platform import PlatformUtils
|
||||||
|
|
||||||
driver = nonebot.get_driver()
|
driver = nonebot.get_driver()
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
|
from nonebot_plugin_alconna import AlconnaMatch, Match
|
||||||
from nonebot_plugin_uninfo import Uninfo
|
from nonebot_plugin_uninfo import Uninfo
|
||||||
from nonebot_plugin_alconna import Match, AlconnaMatch
|
|
||||||
|
|
||||||
|
from zhenxun.builtin_plugins.superuser.bot_manage.command import bot_manage
|
||||||
|
from zhenxun.models.bot_console import BotConsole
|
||||||
from zhenxun.services.log import logger
|
from zhenxun.services.log import logger
|
||||||
from zhenxun.utils.message import MessageUtils
|
from zhenxun.utils.message import MessageUtils
|
||||||
from zhenxun.models.bot_console import BotConsole
|
|
||||||
from zhenxun.builtin_plugins.superuser.bot_manage.command import bot_manage
|
|
||||||
|
|
||||||
|
|
||||||
@bot_manage.assign("bot_switch.enable")
|
@bot_manage.assign("bot_switch.enable")
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
from nonebot.permission import SUPERUSER
|
from arclet.alconna import Alconna, Args, Option, Subcommand
|
||||||
from arclet.alconna.action import store_false
|
from arclet.alconna.action import store_false
|
||||||
|
from nonebot.permission import SUPERUSER
|
||||||
from nonebot_plugin_alconna import on_alconna
|
from nonebot_plugin_alconna import on_alconna
|
||||||
from arclet.alconna import Args, Option, Alconna, Subcommand
|
|
||||||
|
|
||||||
bot_manage = on_alconna(
|
bot_manage = on_alconna(
|
||||||
Alconna(
|
Alconna(
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
|
from nonebot_plugin_alconna import AlconnaMatch, Match
|
||||||
from nonebot_plugin_uninfo import Uninfo
|
from nonebot_plugin_uninfo import Uninfo
|
||||||
from nonebot_plugin_alconna import Match, AlconnaMatch
|
|
||||||
|
|
||||||
|
from zhenxun.builtin_plugins.superuser.bot_manage.command import bot_manage
|
||||||
|
from zhenxun.models.bot_console import BotConsole
|
||||||
from zhenxun.services.log import logger
|
from zhenxun.services.log import logger
|
||||||
from zhenxun.utils.message import MessageUtils
|
from zhenxun.utils.message import MessageUtils
|
||||||
from zhenxun.models.bot_console import BotConsole
|
|
||||||
from zhenxun.builtin_plugins.superuser.bot_manage.command import bot_manage
|
|
||||||
|
|
||||||
|
|
||||||
@bot_manage.assign("full_function.enable")
|
@bot_manage.assign("full_function.enable")
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
|
from nonebot_plugin_alconna import AlconnaMatch, Match
|
||||||
from nonebot_plugin_uninfo import Uninfo
|
from nonebot_plugin_uninfo import Uninfo
|
||||||
from nonebot_plugin_alconna import Match, AlconnaMatch
|
|
||||||
|
|
||||||
from zhenxun.services.log import logger
|
from zhenxun.builtin_plugins.superuser.bot_manage.command import bot_manage
|
||||||
from zhenxun.utils.enum import PluginType
|
|
||||||
from zhenxun.utils.message import MessageUtils
|
|
||||||
from zhenxun.models.bot_console import BotConsole
|
from zhenxun.models.bot_console import BotConsole
|
||||||
from zhenxun.models.plugin_info import PluginInfo
|
from zhenxun.models.plugin_info import PluginInfo
|
||||||
|
from zhenxun.services.log import logger
|
||||||
from zhenxun.utils._build_image import BuildImage
|
from zhenxun.utils._build_image import BuildImage
|
||||||
from zhenxun.utils._image_template import RowStyle, ImageTemplate
|
from zhenxun.utils._image_template import ImageTemplate, RowStyle
|
||||||
from zhenxun.builtin_plugins.superuser.bot_manage.command import bot_manage
|
from zhenxun.utils.enum import PluginType
|
||||||
|
from zhenxun.utils.message import MessageUtils
|
||||||
|
|
||||||
|
|
||||||
def task_row_style(column: str, text: str) -> RowStyle:
|
def task_row_style(column: str, text: str) -> RowStyle:
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
|
from nonebot_plugin_alconna import AlconnaMatch, Match
|
||||||
from nonebot_plugin_uninfo import Uninfo
|
from nonebot_plugin_uninfo import Uninfo
|
||||||
from nonebot_plugin_alconna import Match, AlconnaMatch
|
|
||||||
|
|
||||||
from zhenxun.services.log import logger
|
from zhenxun.builtin_plugins.superuser.bot_manage.command import bot_manage
|
||||||
from zhenxun.models.task_info import TaskInfo
|
|
||||||
from zhenxun.utils.message import MessageUtils
|
|
||||||
from zhenxun.models.bot_console import BotConsole
|
from zhenxun.models.bot_console import BotConsole
|
||||||
|
from zhenxun.models.task_info import TaskInfo
|
||||||
|
from zhenxun.services.log import logger
|
||||||
from zhenxun.utils._build_image import BuildImage
|
from zhenxun.utils._build_image import BuildImage
|
||||||
from zhenxun.utils._image_template import RowStyle
|
from zhenxun.utils._image_template import RowStyle
|
||||||
from zhenxun.utils.image_utils import ImageTemplate
|
from zhenxun.utils.image_utils import ImageTemplate
|
||||||
from zhenxun.builtin_plugins.superuser.bot_manage.command import bot_manage
|
from zhenxun.utils.message import MessageUtils
|
||||||
|
|
||||||
|
|
||||||
def task_row_style(column: str, text: str) -> RowStyle:
|
def task_row_style(column: str, text: str) -> RowStyle:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user