mIRC Home    About    Download    Register    News    Help

Print Thread
#248781 24/10/14 02:18 AM
Joined: Oct 2014
Posts: 7
W
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Oct 2014
Posts: 7
Hello I was wondering if someone could make me a auto-join script for a bot that has multiple network support with the commands !ajoin add <channel>, !ajoin del <channel>, and !ajoin list. Thank you so much!

Last edited by WikkedGamer; 24/10/14 02:45 AM.
Joined: Oct 2014
Posts: 49
Ameglian cow
Offline
Ameglian cow
Joined: Oct 2014
Posts: 49
Surely if you had to run a command to auto join a channel, it would be so much as an autojoin but more of a join command as you have to trigger it, meaning it isn't automatic.
You'd have to give more information on how it is "auto" join.

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
Code:
on 1:connect: { 
  var %lines $lines(channels.txt)
  while (%lines) { 
    var %channel $read(channels.txt,%lines)
    j %channel
    dec %lines
  }
}
on *:text:!ajoin & &:#: { 
  var %action $1
  var %channel $lower($2)
  if (%action == add) { 
    if (!$read(channels.txt,ns,%channel)) {
      write channels.txt %channel 
      msg # Added %channel to auto join list
    }
    else msg # %channel is already on the list
  }
  elseif (%action == del) { 
    if ($read(channels.txt,ns,%channel)) {
      write -dl $+ $readn channels.txt  
      msg # Deleted %channel from auto join list
    }
    else msg # %channel wasn't on the list.
  }
}


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net

Link Copied to Clipboard