diff --git a/base_plugins/thpic.py b/base_plugins/thpic.py new file mode 100644 index 0000000..caa752d --- /dev/null +++ b/base_plugins/thpic.py @@ -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"))