mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-09-06 07:06:24 +00:00
25 lines
609 B
Python
Executable File
25 lines
609 B
Python
Executable File
# -*- coding: utf-8 -*-
|
|
"""
|
|
Copyright (C) 2020-2024 LiteyukiStudio. All Rights Reserved
|
|
|
|
@Time : 2024/8/20 上午5:12
|
|
@Author : snowykami
|
|
@Email : snowykami@outlook.com
|
|
@File : liteyuki_reply.py
|
|
@Software: PyCharm
|
|
"""
|
|
from liteyuki.plugin import PluginMetadata, PluginType
|
|
from liteyuki.session.on import on_message
|
|
from liteyuki.session.event import MessageEvent
|
|
|
|
__plugin_meta__ = PluginMetadata(
|
|
name="你好轻雪",
|
|
type=PluginType.APPLICATION
|
|
)
|
|
|
|
|
|
@on_message().handle()
|
|
async def _(event: MessageEvent):
|
|
if str(event.raw_message) == "你好轻雪":
|
|
event.reply("你好呀")
|