aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2026-03-02 21:03:44 +0300
committerMaria Lisina <sekoohaka.sarisan@gmail.com>2026-03-02 21:03:44 +0300
commitc928383dd0a0ca1b440f634f753677fcf1eae641 (patch)
tree280ab85bb74210a191f57d34e8306b778079ea92
parent637f7ce651a45a217f31c9dbcc5878963a6f9d38 (diff)
bot: Send commands in compact json format
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
-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="$(