Skip to content

Commit

Permalink
the bot should only answer to commands that starts with "/" (EliasKot…
Browse files Browse the repository at this point in the history
…lyar#1664)

If a bot is in a group it can be very noisy otherwise.
  • Loading branch information
pfefferle authored Feb 26, 2021
1 parent 174b2d5 commit 972ba9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware_mod/scripts/telegram-bot-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ respond() {
/imagealerts) imageAlerts;;
/videoalerts) videoAlerts;;
/help | /start) $TELEGRAM m "######### Bot commands #########\n# /mem - show memory information\n# /shot - take a snapshot\n# /on - motion detection on\n# /off - motion detection off\n# /nighton - night mode on\n# /nightoff - night mode off\n# /textalerts - Text alerts on motion detection\n# /imagealerts - Image alerts on motion detection\n# /videoalerts - Video alerts on motion detection";;
*) $TELEGRAM m "I can't respond to '$cmd' command"
/*) $TELEGRAM m "I can't respond to '$cmd' command"
esac
}

Expand Down

0 comments on commit 972ba9d

Please sign in to comment.