Something like this is more easier:
Code: Select all
timer 5 channel:cycle
proc channel:cycle {} {
foreach c [channels] {
putserv "part $c :A verificar existência de publicidade/spam"
channel remove $c
timer 1 "channel add $c"
}
timer 5 channel:cycle
}
Here I've set the cycle delay, stay in the channel every 5 minutes and cycle it after every 5 minutes for 1 minute only and rejoin. This is basic.
I basically use +inactive and -inactive, which is better than adding and deleting the channel again and again, but you want to specify a message on part so, I guess this can do it as well.
Code: Select all
putserv "part $c :A verificar existência de publicidade/spam"
putserv "join $c"
This code will produce very rapid cycles as MeTroiD explained. You can force an eggdrop to part a channel manually, but when that channel is added to the dynamic channel list, then it executes a timer checking if the bot is on the channel or not? if not, go ahead and join it. (possible reasons could be its banned from the channel, unable to join and so...)