+
+
+
+
+
-
AstrBot 仪表盘
- 登录以继续
+
+
+
-
+
diff --git a/packages/astrbot/main.py b/packages/astrbot/main.py
index 04d4cadb7..92ef6bfea 100644
--- a/packages/astrbot/main.py
+++ b/packages/astrbot/main.py
@@ -1462,3 +1462,9 @@ UID: {user_id} 此 ID 可用于设置管理员。
plugin_cfg["reset"] = reset_cfg
alter_cmd_cfg["astrbot"] = plugin_cfg
sp.put("alter_cmd", alter_cmd_cfg)
+
+ @filter.command("test")
+ async def test_to(self, event: AstrMessageEvent):
+ import asyncio
+ await asyncio.sleep(10)
+ yield event.plain_result("OK")
diff --git a/packages/vpet/main.py b/packages/vpet/main.py
new file mode 100644
index 000000000..d345a5ac8
--- /dev/null
+++ b/packages/vpet/main.py
@@ -0,0 +1,18 @@
+from astrbot.api.event import filter, AstrMessageEvent
+from astrbot.api.star import Context, Star, register
+
+@register("vpet", "AstrBot Team", "虚拟桌宠", "0.0.1")
+class VPet(Star):
+ def __init__(self, context: Context):
+ super().__init__(context)
+
+ async def initialize(self):
+ """可选择实现异步的插件初始化方法,当实例化该插件类之后会自动调用该方法。"""
+
+ @filter.llm_tool("screenshot")
+ async def screenshot(self, event: AstrMessageEvent):
+ """Capture the screen and return the image."""
+
+
+ async def terminate(self):
+ """可选择实现异步的插件销毁方法,当插件被卸载/停用时会调用。"""
diff --git a/pyproject.toml b/pyproject.toml
index b6419061d..a09c59c9c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "AstrBot"
-version = "3.5.10"
+version = "3.5.11"
description = "易上手的多平台 LLM 聊天机器人及开发框架"
readme = "README.md"
requires-python = ">=3.10"