mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
refactor: 完成会话管理相关指令
This commit is contained in:
@@ -5,6 +5,7 @@ import copy
|
||||
import pkgutil
|
||||
import traceback
|
||||
import types
|
||||
import json
|
||||
|
||||
|
||||
__command_list__ = {}
|
||||
@@ -257,7 +258,7 @@ def execute(context: Context) -> list:
|
||||
while True:
|
||||
try:
|
||||
logging.debug('执行指令: {}'.format(path))
|
||||
node = node[path]
|
||||
node = __command_list__[path]
|
||||
|
||||
# 检查权限
|
||||
if ctx.privilege < node['privilege']:
|
||||
|
||||
Reference in New Issue
Block a user