diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-03-02 21:03:44 +0300 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-03-02 21:03:44 +0300 |
| commit | c928383dd0a0ca1b440f634f753677fcf1eae641 (patch) | |
| tree | 280ab85bb74210a191f57d34e8306b778079ea92 | |
| parent | 637f7ce651a45a217f31c9dbcc5878963a6f9d38 (diff) | |
bot: Send commands in compact json format
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
| -rwxr-xr-x | bot.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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="$( |
