mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-28 04:30:56 +00:00
first commit
This commit is contained in:
9
plugins/liteyuki_plugin_hello/__init__.py
Normal file
9
plugins/liteyuki_plugin_hello/__init__.py
Normal file
@ -0,0 +1,9 @@
|
||||
from nonebot import on_command
|
||||
from nonebot.rule import to_me
|
||||
|
||||
hello = on_command('hello', aliases={'你好'}, rule=to_me())
|
||||
|
||||
|
||||
@hello.handle()
|
||||
async def handle_first_receive(bot, event, state):
|
||||
await hello.finish('Hello, world!')
|
Reference in New Issue
Block a user