mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-18 09:25:46 +08:00
17 lines
425 B
Python
17 lines
425 B
Python
from aiocqhttp.message import unescape
|
|
|
|
import none
|
|
from none import permissions as perm
|
|
from none.command import Session
|
|
from none.helpers import send
|
|
|
|
|
|
@none.on_command('echo')
|
|
async def echo(bot, session: Session):
|
|
await send(bot, session.ctx, session.current_arg)
|
|
|
|
|
|
@none.on_command('say', permission=perm.SUPERUSER)
|
|
async def _(bot, session: Session):
|
|
await send(bot, session.ctx, unescape(session.current_arg))
|