2018-06-15 15:00:58 +08:00
|
|
|
from aiocqhttp.message import unescape
|
|
|
|
|
2018-06-30 09:25:25 +08:00
|
|
|
from none import on_command, CommandSession
|
|
|
|
from none.command import permissions as perm
|
2018-06-15 15:00:58 +08:00
|
|
|
|
|
|
|
|
2018-06-30 17:26:36 +08:00
|
|
|
@on_command('echo', only_to_me=False)
|
2018-06-27 22:05:12 +08:00
|
|
|
async def echo(session: CommandSession):
|
2018-06-25 16:50:34 +08:00
|
|
|
await session.send(session.current_arg)
|
2018-06-15 06:58:24 +08:00
|
|
|
|
|
|
|
|
2018-06-30 17:26:36 +08:00
|
|
|
@on_command('say', permission=perm.SUPERUSER, only_to_me=False)
|
2018-06-27 22:05:12 +08:00
|
|
|
async def _(session: CommandSession):
|
2018-06-25 16:50:34 +08:00
|
|
|
await session.send(unescape(session.current_arg))
|