mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-26 15:51:26 +00:00
Update builtin plugins
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user