nonebot2/none/plugins/base.py
Richard Chien 86115e9e04 Update
2018-06-30 09:25:25 +08:00

15 lines
376 B
Python

from aiocqhttp.message import unescape
from none import on_command, CommandSession
from none.command import 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))