mIRC Home    About    Download    Register    News    Help

Print Thread
#190695 24/11/07 03:06 PM
Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
Hello, Just asking does anyone know how to do this when i join my bot on QuakeNet it has a message script that when you join a channel it says the message but doing this is disconnects the bot because of Excess Flood. I do not want to remove the script how can i have it so that it joins all the channels i want it to join with a 10 second wait in between each channel joining

Thanks
Panic


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Joined: Oct 2007
Posts: 92
N
Babel fish
Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
Code:
on !*:join:#: 

Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
Originally Posted By: nomer2007
Code:
on !*:join:#: 


Sorry this would help but what about the 10 seconds in between joining channels this would just join anyway


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Joined: Oct 2007
Posts: 92
N
Babel fish
Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
How can it be disconnected if it doesn't do anything but join?

Code:
on *:connect: {
  var %chan = #chan1,#chan2,#chan3 , %a = 1
  while $gettok(%chan,%a,44) {
    .timer 1 10 join $v1
    inc %a
  }
}


Last edited by nomer2007; 24/11/07 04:38 PM.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

You were almost there...

Code:

on *:CONNECT: {
  var %a = 1,%chan = #chan1 #chan2 #chan3
  while ($gettok(%chan,%a,32)) {
    .timer 1 $calc(%a * 10) join $v1
    inc %a
  }
}



~ Edit ~
Sorry, I said -almost- because the code you had would have the bot joining all channels at exactly the same time, 10 seconds after connection, but I believe the op wants the bot to join the channels not all at once, but with a 10 second delay between each join.

~ Edit ~
Changed %a = 0 to %a = 1 ... thanks nomer2007.


RoCk #190702 24/11/07 04:52 PM
Joined: Oct 2007
Posts: 92
N
Babel fish
Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
thanks still learning

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Me too. smile

RoCk #190704 24/11/07 05:41 PM
Joined: Oct 2007
Posts: 92
N
Babel fish
Offline
Babel fish
N
Joined: Oct 2007
Posts: 92
Code:
on *:connect: {
  var %chan = #chan1,#chan2,#chan3 , %a = 1
  while $gettok(%chan,%a,44) {
    inc %timer 10
    timer 1 %timer join $v1
    inc %a
  }
}


Quote:
var %a = 0,%chan = #chan1 #chan2 #chan3
while ($gettok(%chan,%a,32)) {
.timer 1 $calc(%a * 10) join $v1


don't mean anything but there is something wrong with this coz on start the N = 0 and will return 3 so it'll do a command like
//join 3

Last edited by nomer2007; 24/11/07 05:44 PM.
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Good catch, I changed it.

Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
Originally Posted By: nomer2007
How can it be disconnected if it doesn't do anything but join?

To answer this question, I'll give an example.

ON CONNECT I join a whole pile of channels. ON JOIN I do channel-based /who and /mode commands to update my IAL/IBL.

One network I join has approximately 8,000 users total in the channels I join. Every time I joined that network, and auto-joined those channels, I'd excess-flood myself off.

I had to use a similar method to delay the joining of my channels to spread the /who load over time.

Joined: Nov 2007
Posts: 2
S
Bowl of petunias
Offline
Bowl of petunias
S
Joined: Nov 2007
Posts: 2
can you please eleberate more on this i tried the script above but it's not working properly for me i have 25 channels that i join on one network and it still got excessive flood i even tried increasing the timer to 20 and still the same results it's really anoying

Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
Hello all,

Thanks for your help but i just found a quicker way in preform type insted of /join #channel type /timer 1 [delay] /join #channel and it will join that channel on the delay you set

Easy as pie

Thanks


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
sick

word up smile


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }

Link Copied to Clipboard