aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2025-09-18 14:01:33 +0500
committerMaria Lisina <sekoohaka.sarisan@gmail.com>2025-09-18 14:01:33 +0500
commit5d27581b3f1292bdd901bfb1e74475af6ce4b55e (patch)
tree659db8303d3ab4f030d55f642cb90de4485bb37c
parentc45f272608346fe75dd2ce65387e0bb34e888b9a (diff)
bot: Fix coding style issue
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
-rwxr-xr-xbot.zsh9
1 files changed, 5 insertions, 4 deletions
diff --git a/bot.zsh b/bot.zsh
index e22f211..81cf686 100755
--- a/bot.zsh
+++ b/bot.zsh
@@ -479,6 +479,7 @@ then
fi
username="$(jq -r '.result.username' <<< "${input_data}")"
+
log_text="Bot: ${username}"
. "${units}/log.zsh"
@@ -540,8 +541,8 @@ file_content="$(< "${files}/donate.txt")"
if [[ ${#file_content} -lt 1 ]]
then
nocommand_donate=0
- log_text="Warning: File donate.txt is empty, donate command is disabled"
+ log_text="Warning: File donate.txt is empty, donate command is disabled"
. "${units}/log.zsh"
fi
@@ -551,8 +552,8 @@ log_text="Running source command check..."
if [[ -z "${allow_source}" && "${api_address}" != "${local_address}" && "${api_address}" != "${default_address}" ]]
then
nocommand_source=0
- log_text="Warning: You are running bot with unknown Telegram Bot API instance, source command is disabled"
+ log_text="Warning: You are running bot with unknown Telegram Bot API instance, source command is disabled"
. "${units}/log.zsh"
else
if ! input_data="$(
@@ -658,8 +659,8 @@ else
if ! ls "${profilephoto_path}" > /dev/null
then
nocommand_source=0
- log_text="Error: Cannot access Telegram Bot API working directory, source command is disabled"
+ log_text="Error: Cannot access Telegram Bot API working directory, source command is disabled"
. "${units}/log.zsh"
fi
else
@@ -676,8 +677,8 @@ else
)"
then
nocommand_source=0
- log_text="Error: Failed to download file, source command is disabled"
+ log_text="Error: Failed to download file, source command is disabled"
. "${units}/log.zsh"
fi