mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-24 17:15:05 +08:00
14 lines
352 B
Python
14 lines
352 B
Python
from aiocqhttp.message import unescape
|
|
|
|
from none import on_command, CommandSession, permissions as perm
|
|
|
|
|
|
@on_command('echo')
|
|
async def echo(session: CommandSession):
|
|
await session.send(session.current_arg)
|
|
|
|
|
|
@on_command('say', permission=perm.SUPERUSER)
|
|
async def _(session: CommandSession):
|
|
await session.send(unescape(session.current_arg))
|