diff --git a/nonebot/adapters/satori/adapter.py b/nonebot/adapters/satori/adapter.py index 64e2f6d..443e45f 100644 --- a/nonebot/adapters/satori/adapter.py +++ b/nonebot/adapters/satori/adapter.py @@ -30,7 +30,6 @@ Opcode, Payload, Identify, - LoginStatus, PayloadType, PingPayload, PongPayload, @@ -263,7 +262,8 @@ async def _loop(self, info: ClientInfo, ws: WebSocket): if not (bot := self.bots.get(event.login.sn)): log( "WARNING", - f"Received event for unknown bot {event.login.user.id if event.login.user else event.login.sn}", + f"Received event for unknown bot " + f"{event.login.user.id if event.login.user else event.login.sn}", ) continue if isinstance(event, (MessageEvent, InteractionEvent)): diff --git a/nonebot/adapters/satori/bot.py b/nonebot/adapters/satori/bot.py index f1c8d6a..d56424f 100644 --- a/nonebot/adapters/satori/bot.py +++ b/nonebot/adapters/satori/bot.py @@ -13,11 +13,11 @@ from .element import parse from .utils import API, log from .config import ClientInfo -from .models import PageDequeResult, Meta +from .models import PageDequeResult from .event import Event, MessageEvent from .models import MessageObject as SatoriMessage from .message import Author, Message, RenderMessage, MessageSegment -from .models import Role, User, Guild, Login, Order, Member, Upload, Channel, Direction, PageResult +from .models import Meta, Role, User, Guild, Login, Order, Member, Upload, Channel, Direction, PageResult from .exception import ( ActionFailed, NetworkError, diff --git a/pyproject.toml b/pyproject.toml index 85ac527..079e930 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "nonebot-adapter-satori" -version = "0.13.0rc3" +version = "0.13.0" description = "Satori Protocol Adapter for Nonebot2" authors = [ {name = "RF-Tar-Railt",email = "rf_tar_railt@qq.com"},