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