nonebot-plugin-shiro-web-console 0.1.8__tar.gz → 0.1.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nonebot-plugin-shiro-web-console might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-shiro-web-console
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: 一个用于 NoneBot2 的网页控制台插件,支持通过浏览器查看日志和发送消息
5
5
  Project-URL: Homepage, https://github.com/luojisama/nonebot-plugin-shiro-web-console
6
6
  Project-URL: Bug Tracker, https://github.com/luojisama/nonebot-plugin-shiro-web-console/issues
@@ -16,7 +16,7 @@ from collections import deque
16
16
  from fastapi import FastAPI, WebSocket, WebSocketDisconnect, Request, Response, Depends, HTTPException
17
17
  from fastapi.staticfiles import StaticFiles
18
18
  from fastapi.responses import HTMLResponse, JSONResponse, FileResponse
19
- from nonebot import get_app, get_bot, get_bots, get_driver, logger, on_message, on_command, require, on_bot_connect
19
+ from nonebot import get_app, get_bot, get_bots, get_driver, logger, on_message, on_command, require
20
20
  import nonebot_plugin_localstore
21
21
  from .config import Config, config
22
22
  from nonebot.permission import SUPERUSER
@@ -35,7 +35,7 @@ __plugin_meta__ = PluginMetadata(
35
35
  supported_adapters={"~onebot.v11"},
36
36
  extra={
37
37
  "author": "luojisama",
38
- "version": "0.1.8",
38
+ "version": "0.1.9",
39
39
  "pypi_test": "nonebot-plugin-shiro-web-console",
40
40
  },
41
41
  )
@@ -447,7 +447,7 @@ async def on_api_called(bot: Bot, exception: Optional[Exception], api: str, data
447
447
  except Exception as e:
448
448
  logger.error(f"处理 Bot 发送消息 Hook 失败: {e}")
449
449
 
450
- @on_bot_connect
450
+ @driver.on_bot_connect
451
451
  async def _(bot: Bot):
452
452
  if hasattr(bot, "on_called_api"):
453
453
  bot.on_called_api(on_api_called)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nonebot-plugin-shiro-web-console"
3
- version = "0.1.8"
3
+ version = "0.1.9"
4
4
  description = "一个用于 NoneBot2 的网页控制台插件,支持通过浏览器查看日志和发送消息"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"