mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-06 03:56:45 +00:00
Basic command plugin structure
This commit is contained in:
@ -2,5 +2,5 @@ import none
|
||||
|
||||
|
||||
@none.on_command('echo', aliases=('say',))
|
||||
async def _(bot, ctx, cmd):
|
||||
await bot.send(ctx, cmd.arg)
|
||||
async def _(bot, ctx, session):
|
||||
await bot.send(ctx, session.arg)
|
||||
|
Reference in New Issue
Block a user