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