All pastes #513435 Raw Edit

Unnamed

public text v1 · immutable
#513435 ·published 2007-05-27 07:59 UTC
rendered paste body
;when it conencts to a server ie gamesurge
on *:connect: {
  ; checks if the network is gamesurge
  if ($network == GameSurge) {
    ; auth's
    .as auth AUTHACCOUNT PASS
    .mode $me +ixw
    ;set thes channels
    .set %home #MOT
    .set %sup #MOT-support
    ; gets chanserv to invite the bot
    .cs inviteme %home
    .cs inviteme %sup
    ; joins the channel
    .join %home
    .join %sup
  }
}

on *:join:#: {
  ; now it checks what channel they join
  if ($chan == %home) {
    ;; now when they join it wil send them %skin but it will replace <cmd> with greeting so forth
    .msg $nick $replace(%skin,<cmd>,GREETING,<info>,%greeting)
    .msg $nick $replace(%skin,<cmd>,GREETING,<info>,%greeting2)
    ;; stops the whole operation
    .halt
  }
  if ($chan == %sup) {
    .msg $nick No idling is allowed in #MOT-Support Please Idle And Support #MOT #MOT #MOT and #GTE #GTE #GTE
    .halt
  }
}