diff --git a/arclet/entari/command/__init__.py b/arclet/entari/command/__init__.py index 0ba6eb0..657c2e3 100644 --- a/arclet/entari/command/__init__.py +++ b/arclet/entari/command/__init__.py @@ -8,15 +8,15 @@ from arclet.letoderea.handler import depend_handler from arclet.letoderea.provider import ProviderFactory from nepattern import DirectPattern -from tarina.trie import CharTrie from satori.element import At, Text from tarina.string import split +from tarina.trie import CharTrie from ..event import MessageCreatedEvent from ..message import MessageChain from .argv import MessageArgv # noqa: F401 from .model import CommandResult, Match, Query -from .plugin import mount, CommandExecute +from .plugin import CommandExecute, mount from .provider import AlconnaProviderFactory, AlconnaSuppiler, MessageJudger, get_cmd T = TypeVar("T") diff --git a/arclet/entari/command/plugin.py b/arclet/entari/command/plugin.py index 20025d2..654d737 100644 --- a/arclet/entari/command/plugin.py +++ b/arclet/entari/command/plugin.py @@ -1,15 +1,15 @@ from __future__ import annotations -from typing import Any from dataclasses import dataclass +from typing import Any -from arclet.alconna import Alconna, command_manager, output_manager, Arparma -from arclet.letoderea import AuxType, BaseAuxiliary, Provider, ProviderFactory, Contexts, es, Scope, Interface +from arclet.alconna import Alconna, Arparma, command_manager, output_manager +from arclet.letoderea import AuxType, BaseAuxiliary, Contexts, Interface, Provider, ProviderFactory, Scope, es from ..event import MessageCreatedEvent from ..message import MessageChain from ..plugin.model import Plugin, PluginDispatcher -from .model import Match, Query, CommandResult +from .model import CommandResult, Match, Query from .provider import AlconnaProviderFactory, AlconnaSuppiler, Assign, MessageJudger, _seminal diff --git a/arclet/entari/core.py b/arclet/entari/core.py index 8867d72..f2a6395 100644 --- a/arclet/entari/core.py +++ b/arclet/entari/core.py @@ -4,7 +4,7 @@ from contextlib import suppress import os -from arclet.letoderea import BaseAuxiliary, Contexts, Param, Provider, es, ProviderFactory, global_providers +from arclet.letoderea import BaseAuxiliary, Contexts, Param, Provider, ProviderFactory, es, global_providers from launart import Launart from loguru import logger from satori import LoginStatus @@ -97,9 +97,7 @@ def on_message( auxiliaries: list[BaseAuxiliary] | None = None, providers: list[Provider | type[Provider] | ProviderFactory | type[ProviderFactory]] | None = None, ): - return es.on( - MessageCreatedEvent, priority=priority, auxiliaries=auxiliaries, providers=providers - ) + return es.on(MessageCreatedEvent, priority=priority, auxiliaries=auxiliaries, providers=providers) def ensure_manager(self, manager: Launart): self.manager = manager diff --git a/pyproject.toml b/pyproject.toml index ad46ffb..c79b87a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "arclet-entari" -version = "0.8.0" +version = "0.8.1" description = "Simple IM Framework based on satori-python" authors = [ {name = "RF-Tar-Railt",email = "rf_tar_railt@qq.com"},