mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-27 07:54:19 +00:00
perf: 修改指令不存在时的提示信息
This commit is contained in:
@@ -260,8 +260,8 @@ def execute(context: Context) -> list:
|
|||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
logging.debug('执行指令: {}'.format(path))
|
|
||||||
node = __command_list__[path]
|
node = __command_list__[path]
|
||||||
|
logging.debug('执行指令: {}'.format(path))
|
||||||
|
|
||||||
# 检查权限
|
# 检查权限
|
||||||
if ctx.privilege < node['privilege']:
|
if ctx.privilege < node['privilege']:
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ replys_message = "[bot]err:请求超时"
|
|||||||
# 指令权限不足提示
|
# 指令权限不足提示
|
||||||
command_admin_message = "[bot]err:权限不足: "
|
command_admin_message = "[bot]err:权限不足: "
|
||||||
# 指令无效提示
|
# 指令无效提示
|
||||||
command_err_message = "[bot]err:指令执行出错:"
|
command_err_message = "[bot]err:指令不存在:"
|
||||||
|
|
||||||
# 会话重置提示
|
# 会话重置提示
|
||||||
command_reset_message = "[bot]:会话已重置"
|
command_reset_message = "[bot]:会话已重置"
|
||||||
|
|||||||
Reference in New Issue
Block a user