Skip to content

Commit 0112714

Browse files
committed
up
1 parent b99f346 commit 0112714

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

nonebot_plugin_picstatus/__main__.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import asyncio
2-
from contextlib import suppress
32

43
from nonebot import logger, on_command
5-
from nonebot.adapters import Bot as BaseBot, Event as BaseEvent, Message as BaseMessage
4+
from nonebot.adapters import Message as BaseMessage
65
from nonebot.matcher import current_bot, current_event, current_matcher
76
from nonebot.params import CommandArg, Depends
87
from nonebot.permission import SUPERUSER
@@ -12,7 +11,6 @@
1211
from .bg_provider import BgData, bg_preloader
1312
from .collectors import collect_all
1413
from .config import config
15-
from .misc_statistics import cache_bot_info
1614
from .templates import render_current_template
1715

1816

@@ -65,9 +63,9 @@ def MsgPic(): # noqa: N802
6563

6664

6765
@stat_matcher.handle()
68-
async def _(bot: BaseBot, event: BaseEvent, msg_pic: BgData | None = MsgPic()):
69-
with suppress(Exception):
70-
await cache_bot_info(bot, event)
66+
async def _(msg_pic: BgData | None = MsgPic()):
67+
# with suppress(Exception):
68+
# await cache_bot_info(bot)
7169

7270
async def get_bg():
7371
return msg_pic or (await bg_preloader.get())

0 commit comments

Comments
 (0)