mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-12-26 04:17:46 +00:00
fix antiFlood timing and name
This commit is contained in:
parent
d5f9b1c4fb
commit
fc36de9fa0
@ -27,7 +27,7 @@
|
||||
export BASHBOT_EVENT_TEXT BASHBOT_EVENT_CMD BASHBOT_EVENT_FILE BASHBOT_EVENT_TIMER
|
||||
|
||||
# any global variable defined by addons MUST be prefixed by addon name
|
||||
ANTIFL_ME="antiflood"
|
||||
ANTIFL_ME="antiFlood"
|
||||
|
||||
declare -Ax ANTIFL_CHATS ANTIFL_ACTUALS
|
||||
|
||||
@ -67,8 +67,7 @@ if [[ "$1" = "start"* ]]; then
|
||||
}
|
||||
|
||||
# register to timer
|
||||
#BASHBOT_EVENT_TIMER["${ANTIFL_ME}","${ANTIFL_BAN}"]="antiflood_timer"
|
||||
BASHBOT_EVENT_TIMER["${ANTIFL_ME}","1"]="antiflood_timer"
|
||||
BASHBOT_EVENT_TIMER["${ANTIFL_ME}","${ANTIFL_BAN}"]="antiflood_timer"
|
||||
|
||||
# save settings and reset flood level every BAN Min
|
||||
antiflood_timer(){
|
||||
|
Loading…
Reference in New Issue
Block a user