mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-11 01:27:29 +08:00
10 lines
234 B
Python
10 lines
234 B
Python
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!')
|