aboutsummaryrefslogtreecommitdiff
path: root/bot.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'bot.zsh')
-rwxr-xr-xbot.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot.zsh b/bot.zsh
index bbc8095..9d89481 100755
--- a/bot.zsh
+++ b/bot.zsh
@@ -847,11 +847,11 @@ fi
log_text="Setting bot commands..."
source "${units}/log.zsh"
-commands_list="$(< "${files}/commands.json")"
+commands_list="$(jq -c '.' "${files}/commands.json")"
if [[ -n "${nocommand_source}" ]]
then
- commands_list="$(jq 'del(.[]|select(.command=="source"))' <<< "${commands_list}")"
+ commands_list="$(jq -c 'del(.[]|select(.command=="source"))' <<< "${commands_list}")"
fi
if ! input_data="$(