Code: Select all
tag when posting logs, code
Code: Select all
tag when posting logs, code
Code: Select all
tag when posting logs, code
i have more than 1 bot protecting the channel, so if one bot is laggingbut what will you do if you notice the bot has lagged 60s and somone triggers a 10s flood? do you want to ignore the flood? it might have been really a flood, it might have not been. How will you determine?
and I will probably have periodic lag checks; on mass flood, I won't issue any server commands if the average lag from previous minute or so has been unacceptable
Code: Select all
proc lag_check {} {
global lagging
set lag0 [ping server1]
if {$lag0 > 3 } {
set lagging 1
return
}
# server1 != server2 != server3
set lag1 [ping server2]
set lag2 [ping server3]
if {$lag1 > 3 && lag2 > 3 } {
set lagging 1
return
}
}
Code: Select all
tag when posting logs, code
Code: Select all
tag when posting logs, code
there is global variable server, don't go with whois'ing selfSaPrOuZy wrote:i thought about parsing LINKS(to get the list of servers) and WHOIS (to know where the bot is connected)
lagging to what? to the bot? then what does [ping server2] means in your pseudo-code?what am actually checking if the server that the bot IS connected to is lagging or not. not other servers
because if it is then it could cause probs.
3 means pinging other serversand also is not about splits/rejoins
it's about to know forexample : if the bot noticed 6 joins happened in 3 seconds it could be due to 3 possible reasons:
1- the is actually a flood
2- the bot it self is lagging
3- the server on which the bot is connected is lagging and suddenly received the packets and displayed them.
1 and 2 are taken care of, 3 remain to be completed.
hopefuly this clears up my thought more
Code: Select all
tag when posting logs, code
i want to check if the bot is lagging to server2 (in case it's not lagging to server1, it's own server)lagging to what? to the bot? then what does [ping server2] means in your pseudo-code?
yes i want to ping other servers to accomplish a3 means pinging other servers
Code: Select all
tag when posting logs, code