mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-21 23:25:08 +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
|
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
|
# any global variable defined by addons MUST be prefixed by addon name
|
||||||
ANTIFL_ME="antiflood"
|
ANTIFL_ME="antiFlood"
|
||||||
|
|
||||||
declare -Ax ANTIFL_CHATS ANTIFL_ACTUALS
|
declare -Ax ANTIFL_CHATS ANTIFL_ACTUALS
|
||||||
|
|
||||||
@ -67,8 +67,7 @@ if [[ "$1" = "start"* ]]; then
|
|||||||
}
|
}
|
||||||
|
|
||||||
# register to timer
|
# register to timer
|
||||||
#BASHBOT_EVENT_TIMER["${ANTIFL_ME}","${ANTIFL_BAN}"]="antiflood_timer"
|
BASHBOT_EVENT_TIMER["${ANTIFL_ME}","${ANTIFL_BAN}"]="antiflood_timer"
|
||||||
BASHBOT_EVENT_TIMER["${ANTIFL_ME}","1"]="antiflood_timer"
|
|
||||||
|
|
||||||
# save settings and reset flood level every BAN Min
|
# save settings and reset flood level every BAN Min
|
||||||
antiflood_timer(){
|
antiflood_timer(){
|
||||||
|
Loading…
Reference in New Issue
Block a user