Skip to content

Commit

Permalink
Update telegram message
Browse files Browse the repository at this point in the history
  • Loading branch information
jarelllama authored Dec 21, 2024
1 parent e96e3a5 commit 26bd84f
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_pending.yml
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ jobs:
- name: Check if there are pending domains
run: |
if [[ -d data/pending ]]; then
bash scripts/tools.sh --send-telegram 'Warning: pending domains not cleared.'
bash scripts/tools.sh --send-telegram 'Warning: pending domains not cleared'
fi
env:
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
6 changes: 3 additions & 3 deletions scripts/retrieve_domains.sh
Original file line number Diff line number Diff line change
@@ -237,7 +237,7 @@ build() {

# Send telegram notification
$FUNCTION --send-telegram \
"Retrieval: entries requiring manual review:\n$(<manual_review.tmp)"
"Retrieval: entries requiring manual review\n\n$(<manual_review.tmp)"

printf "\nTelegram notification sent.\n"
fi
@@ -251,7 +251,7 @@ build() {
[[ "$USE_EXISTING" == true ]] && return
# Send Telegram update if not using existing results
$FUNCTION --send-telegram \
"Retrieval: no new domains added."
"Retrieval: no new domains added"

return
fi
@@ -301,7 +301,7 @@ build() {
[[ "$USE_EXISTING" == true ]] && return
# Send Telegram update if not using existing results
$FUNCTION --send-telegram \
"Retrieval: added ${count_added} domains."
"Retrieval: added ${count_added} domains"
}

# Function 'log_source' prints and logs statistics for each source using the
2 changes: 1 addition & 1 deletion scripts/validate_domains.sh
Original file line number Diff line number Diff line change
@@ -131,7 +131,7 @@ validate() {

# Call shell wrapper to send telegram notification
$FUNCTION --send-telegram \
"Validation: problematic domains found:\n$(<filter_log.tmp)"
"Validation: problematic domains found\n\n$(<filter_log.tmp)"

printf "\nTelegram notification sent.\n"
}

0 comments on commit 26bd84f

Please sign in to comment.