From c928383dd0a0ca1b440f634f753677fcf1eae641 Mon Sep 17 00:00:00 2001 From: Maria Lisina Date: Mon, 2 Mar 2026 21:03:44 +0300 Subject: bot: Send commands in compact json format Signed-off-by: Maria Lisina --- bot.zsh | 4 ++-- 1 file 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="$( -- cgit v1.2.3