Idle Bot Script

By UK-Sw1ft on May 12, 2005

Iv seen alot of request on the forums this, and a m8 of mine just asked for one, so here is one. its got a !add/!remove channel , so if u dont want it to join certan channels just add them :)

on *:TEXT:!idle*:#CHANNEL:{ 
if ($2 iswm $gettok(%banned.channels, $2, 32)) {
msg $chan Cant Join ( $2 _ , Banned )
halt
}
  if ($left($2,1) == $chr(35)) { 
    if ($me !ison $2) { 
      .join $2  
      .timer 1 2 check $2 $nick $chan 
    } 
    else { .msg $chan I'm already in $+(',$3,'.) 
    } 
  } 
  else { .msg $chan Correct syntax: !idle <#ChannelName> 
  } 
} 
alias check { 
  if ($me ison $1) {  
    if ($2 isop $1) {  
      writeini -n idler.ini $3 $2 $1 
    } 
    else { msg $1 Request failed. $+(',$2,') You dont have +o. try later if u got ops! 
      part $1 Error 
    } 
  } 
} 

on *:PART:#CHANNEL: { 
  if ($readini(idler.ini,$chan,$nick) != $null) { 
    part $readini(idler.ini,$chan,$nick) $nick has left $chan 
    msg $chan Purged $readini(idler.ini,$chan,$nick) 
    remini idler.ini $chan $nick  
  } 
}

on 1:TEXT:!Add*:#CHANNEL:{
if ($nick isop $chan) {
set %banned.channels $addtok(%banned.channels, $2, 32)
msg $chan $2 Is Now On My Banned List.
halt
}
}

on 1:TEXT:!remove*:#CHANNEL:{
if ($nick isop $chan) {
set %banned.channels $remtok(%banned.channels, $2, 32)
msg $chan I can now join $2
halt
}
}

Comments

Sign in to comment.
hell2k   -  Jul 12, 2007

all the whole script is on remote, saved it and nothing happens. May someone helps?

 Respond  
Pendaz   -  Aug 20, 2006

im totally new to scripting in irc, never used any kind of scripts before.

could someone point me in the right direction as to how i install and run this script?

 Respond  
Yoinx   -  May 31, 2005

You Dont have a command to make it leave a channel that it was requested to join. I have one of these snippets as well, you should take a look at it.

 Respond  
xDaeMoN   -  May 12, 2005

I did not say that it really needs to be changed. I said \"can be changed\".

 Respond  
supergeo   -  May 12, 2005

$me !ison $2\" can be changed to \"$2 !ischan\". Does it really need to be changed though? There are a lot of changes people could do, but unless I\'m wrong, I don\'t think that\'s a necessary change.

 Respond  
xDaeMoN   -  May 12, 2005

In \"($2 iswm $gettok(%banned.channels, $2, 32))\", \"$2 iswm\" is not needed. \"$me !ison $2\" can be changed to \"$2 !ischan\". Also instead of putting them in variables, you can just use the same ini file. Would work but code needs some improvement.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.