Update builtin plugins

This commit is contained in:
Richard Chien 2019-01-26 16:43:02 +08:00
parent 0256ae4216
commit 7713dc3be8

View File

@ -4,10 +4,10 @@ from nonebot.message import unescape
@on_command('echo')
async def echo(session: CommandSession):
await session.send(session.get_optional('message') or session.current_arg)
await session.send(session.state.get('message') or session.current_arg)
@on_command('say', permission=perm.SUPERUSER)
async def say(session: CommandSession):
await session.send(
unescape(session.get_optional('message') or session.current_arg))
unescape(session.state.get('message') or session.current_arg))