mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-10 19:40:55 +00:00
addons/antiFlood finished
This commit is contained in:
parent
501b308532
commit
e80b98ac85
@ -99,8 +99,10 @@ if [[ "$1" = "start"* ]]; then
|
||||
fi
|
||||
# check user flood picture
|
||||
# shellcheck disable=SC2154
|
||||
[ "$1" = "file" ] && (( ANTIFL_ACTUALS["${CHAT[ID]}","${USER[ID]}","file"]++ ))
|
||||
if [ "$1" = "file" ]; then
|
||||
(( ANTIFL_ACTUALS["${CHAT[ID]}","${USER[ID]}","file"]++ ))
|
||||
antiFlood_action & # do actions in subshell
|
||||
fi
|
||||
}
|
||||
|
||||
# check and handle actions
|
||||
|
Loading…
Reference in New Issue
Block a user