正式给指令添加权限限制

This commit is contained in:
San Liy 2023-12-21 01:25:47 +08:00
parent 31098af84b
commit 57b1dd2a56

View File

@ -94,5 +94,6 @@ def cmds(app, data):
if msg == '': if msg == '':
msg = Message(content='参数错误,请使用-h查看帮助', room_id=sqt.room_id) msg = Message(content='参数错误,请使用-h查看帮助', room_id=sqt.room_id)
await sqt.app.ctx.sio.emit('sendMessage', msg.to_json()) await sqt.app.ctx.sio.emit('sendMessage', msg.to_json())
await e.save_policy()
return sio_decorator return sio_decorator