mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 08:11:38 +00:00
Improve a lot
This commit is contained in:
@ -2,14 +2,14 @@ from aiocqhttp.message import unescape
|
||||
|
||||
import none
|
||||
from none import permissions as perm
|
||||
from none.command import Session
|
||||
from none.command import CommandSession
|
||||
|
||||
|
||||
@none.on_command('echo')
|
||||
async def echo(session: Session):
|
||||
async def echo(session: CommandSession):
|
||||
await session.send(session.current_arg)
|
||||
|
||||
|
||||
@none.on_command('say', permission=perm.SUPERUSER)
|
||||
async def _(session: Session):
|
||||
async def _(session: CommandSession):
|
||||
await session.send(unescape(session.current_arg))
|
||||
|
Reference in New Issue
Block a user