diff --git a/services/NormalBot.php b/services/NormalBot.php index 243b365..d2cc189 100644 --- a/services/NormalBot.php +++ b/services/NormalBot.php @@ -9,7 +9,8 @@ class NormalBot $permType = (string)($company['_permission_type'] ?? 1); $perType = $config['per_type'][$permType] ?? []; - $commands = $perType['commands'] ?? $config['commands'] ?? []; + // Per-type commands EXTEND globals (not replace), so salir/exit/etc. always work. + $commands = array_merge($config['commands'] ?? [], $perType['commands'] ?? []); $flows = array_merge($config['flows'] ?? [], $perType['flows'] ?? []); $menus = array_merge($config['menus'] ?? [], $perType['menus'] ?? []);