新增插件admin,并在models中新增PluginDataManager类

This commit is contained in:
baby20162016
2026-01-02 17:40:57 +08:00
parent 3be150b2c5
commit 026ce8c773
5 changed files with 202 additions and 10 deletions

View File

@@ -5,16 +5,16 @@ thpic 插件
"""
from core.bot import Bot
from core.command_manager import matcher
from models import MessageEvent, MessageSegment
__plugin_meta__ = {
"name": "thpic",
"description": "来看看东方Project的图片吧",
"usage": "/thpic",
}
from core.bot import Bot
from core.command_manager import matcher
from models import MessageEvent, MessageSegment
@matcher.command("thpic")
async def handle_echo(bot: Bot, event: MessageEvent, args: list[str]):