File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
import asyncio
2
- from contextlib import suppress
3
2
4
3
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
6
5
from nonebot .matcher import current_bot , current_event , current_matcher
7
6
from nonebot .params import CommandArg , Depends
8
7
from nonebot .permission import SUPERUSER
12
11
from .bg_provider import BgData , bg_preloader
13
12
from .collectors import collect_all
14
13
from .config import config
15
- from .misc_statistics import cache_bot_info
16
14
from .templates import render_current_template
17
15
18
16
@@ -65,9 +63,9 @@ def MsgPic(): # noqa: N802
65
63
66
64
67
65
@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)
71
69
72
70
async def get_bg ():
73
71
return msg_pic or (await bg_preloader .get ())
You can’t perform that action at this time.
0 commit comments