This commit is contained in:
2026-01-02 15:25:39 +08:00
parent 99bcd3fddb
commit 328346ffa5
2 changed files with 0 additions and 0 deletions

15
plugins/thpic.py Normal file
View File

@@ -0,0 +1,15 @@
"""
thpic 插件
提供 /thpic 指令用于随机返回一个东方Project的图片。
"""
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]):
await event.reply(MessageSegment.image("https://img.paulzzh.com/touhou/random"))