mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-09-06 11:46:24 +00:00
✨ 新增on_keywords
This commit is contained in:
@ -14,11 +14,11 @@ from liteyuki.message.event import MessageEvent
|
||||
|
||||
__plugin_meta__ = PluginMetadata(
|
||||
name="你好轻雪",
|
||||
type=PluginType.TEST
|
||||
type=PluginType.APPLICATION
|
||||
)
|
||||
|
||||
|
||||
@on_message().handle
|
||||
@on_message().handle()
|
||||
async def _(event: MessageEvent):
|
||||
if str(event.raw_message) == "你好轻雪":
|
||||
event.reply("你好呀")
|
||||
|
Reference in New Issue
Block a user