mIRC Home    About    Download    Register    News    Help

Print Thread
#113196 02/03/05 09:32 AM
Joined: Aug 2004
Posts: 21
S
sCHuTt Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2004
Posts: 21
Hello,

I run my own ircd, ircd services and a bot which adds a few other features.

Is there a way to have the bot do '/list' or rather '/quote list s' to get a list of all created channels, and then joining the ones that it wasn't in allready...? Idea's...?

Tia

- sChutt

#113197 02/03/05 09:59 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I just joined 11 channels at once so it can give you great lag if there is loads of channels open, best way is to have use a timer.

Code:
On *:Load: {
  chanlist
}

alias chanlist {
  .timer 0 300 .quote list
  window -h "Channels List"
}

Raw 322:*: {
  if ($me !ison $2) {
    join $2
  }
}


Hope this helps.

#113198 02/03/05 01:41 PM
Joined: Aug 2004
Posts: 21
S
sCHuTt Offline OP
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Aug 2004
Posts: 21
Works brilliant m8.

'Nuff respect, thx a bunch wink

- sChutt

#113199 02/03/05 01:44 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome mate. smile

Just incase you need to reboot your PC, therefore your bot will not be running, you might want to add an On Connect event too as I only did it for load.

Code:
On *:Connect: {
  chanlist
}


Link Copied to Clipboard