All pastes #80889 Raw Edit

Something

public text v1 · immutable
·published 2006-07-06 22:37 UTC
rendered paste body

on *:LOAD: {
  set %chan $$?="Enter your channel name here with # eg #SoxWeb"
  echo You have installed SoxBot version 1.0.1
  echo if you have any problems email SoxBot@soxide.co.uk
}

on 50:TEXT:!setchan*:*: {
  set %chan $2-
}

on *:connect: {
  .join %chan 
  if %broadcast == on {
    .timer 1 1 msg #SoxBot 7·:|14 News 7|:· 7[10I am now connected to4 $server 10and have joined channel4 %chan $+ 7] 
  }
}

;#Now we got the connecting sorted we can go onto commands

on 50:TEXT:!join*:*: {
  .join $2
  if %broadcast == on {
    .timer 1 1 msg $2 7·:|14 News 7|:· 7[10I have no joined4 $2 $+ 7] 

  }
}
on 50:TEXT:!part*:*: {
  if %broadcast == on {
    .part $chan 7·:|14 News 7|:· 7[10I have no Left4 $2 $+ 7] 

  }
  else { part $2 }
}


on 50:TEXT:!op*:*: {
  if $me isop $chan {
    if $2 == $null {
      .mode $chan +o $nick
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have been given op 4 $nick $+ 7] 
      }
    }
    if $2 != $null {
      .mode $chan +o $2
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have been given op 4 $2 $+ 7] 
      }
    }
  }
}

on 50:TEXT:!deop*:*: {
  if $me isop $chan {
    if $2 == $null {
      .mode $chan -o $nick
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have just lost op 4 $nick $+ 7] 
      }
    }
    if $2 != $null {
      .mode $chan -o $2
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have just lost op 4 $2 $+ 7] 
      }
    }
  }
}

on 25:text:!topic*:#: { 
  if $me isop $chan { /topic $chan $2- }
}

on 25:TEXT:!dehop*:*: {
  if $me isop $chan {
    if $2 == $null {
      .mode $chan -h $nick
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have just lost hop 4 $nick $+ 7] 
      }
    }
    if $2 != $null {
      .mode $chan -h $2
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have just lost hop 4 $2 $+ 7] 
      }
    }
  }
}

on 25:TEXT:!hop*:*: {
  if $me isop $chan {
    if $2 == $null {
      .mode $chan +h $nick
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have just gained hop 4 $nick $+ 7] 
      }
    }
    if $2 != $null {
      .mode $chan +h $2
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have just gained hop 4 $2 $+ 7] 
      }
    }
  }
}
on 20:TEXT:!voice*:*: {
  if $me isop $chan {
    if $2 == $null {
      .mode $chan +v $nick
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have just gained voice 4 $nick $+ 7] 
      }
    }
    if $2 != $null {
      .mode $chan +v $2
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have just gained voice 4 $2 $+ 7] 
      }
    }
  }
}
on 20:TEXT:!devoice*:*: {
  if $me isop $chan {
    if $2 == $null {
      .mode $chan -v $nick
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have just lost voice 4 $nick $+ 7] 
      }
    }
    if $2 != $null {
      .mode $chan -v $2
      if %broadcast == on {
        .timer 1 1 msg $chan 7·:|14 News 7|:· 7[10You have just lost voice 4 $2 $+ 7] 
      }
    }
  }
}
on *:text:*!version*:*: {
  .notice $nick %version
}
on 50:text:!broadcast*:#: {
  if $2 == off {
    set %broadcast off
  }
  if $2 == on {
    set %broadcast on
  }
}
on 20:join:%chan: {
  mode $chan +v $nick
}
on 25:join:%chan: {
  mode $chan +h $nick
}
on 50:join:%chan: {
  mode $chan +o $nick
}
;#uptime
on 20:text:!uptime*:%chan: {
  alias uptime {
    /msg # 7·:|14 UpTime 7|:· 7[10My Pc has been on for 4 $replace($uptime(system,1),days,d,day,d,week,w,weeks,w,hrs,h,hr,h,mins,m,min,m,secs,s,sec,s) 7] 7[10on mirc $+ $version for 4 $replace($uptime(mirc,1),days,d,day,d,week,w,weeks,w,hrs,h,hr,h,mins,m,min,m,secs,s,sec,s) 7] 7[10conected to $server for 4 $replace($uptime(server,1),days,d,day,d,week,w,weeks,w,hrs,h,hr,h,mins,m,min,m,secs,s,sec,s) 7]

  }