Greets System for Bot *update

By essebi on May 14, 2008

Here is my secod attemp on scripting, i'm enjoyng it so muchh

This time is a full customizable Join Part System designed for bot.

I'm started from this post: http://www.hawkee.com/snippet/2994/ full of adv, but it give me the idea to write this snippets

Simply copy and paste it on the remote and type "!greets" on query, you need to be an op for use the triggers.

[16:57:25] b0t Join-Part Welcome Script
[16:57:26] b0t !add greetchan #chan - for adding a channel on the Greeting System
[16:57:26] b0t !Remove greetchan #chan - for remove a channel on the Greeting System
[16:57:27] b0t !set advice #chan - You can select from query or notice Ex. !set advice notice #Hawkee
[16:57:27]
b0t !msg join #chan "message" - Insert here your Join Greet Ex. !msg join #Hawkee "Your text here"
[16:57:28]
b0t !msg part #chan "message" - Insert here your Part Greet Ex. !msg part #Hawkee "Your text here"
[16:57:28]
b0t !start greeting #chan - You need to run this trigger for running the system on your channel
[16:57:31]
b0t* !stop greeting #chan - You need to run this trigger for stop the bot Greeting on your Channel
Cheers
essebi

on *:TEXT:*!Greets*:?:{
  .notice $nick *Join-Part Welcome Script*
  .timer 1 1 .notice $nick !add greetchan #chan - for adding a channel on the Greeting System
  .timer 1 1 .notice $nick !Remove greetchan #chan - for remove a channel on the Greeting System
  .timer 1 2 .notice $nick !set advice * #chan - You can select from query or notice Ex. !set advice notice #Hawkee
  .timer 1 2 .notice $nick !msg join #chan "message"  - Insert here your Join Greet Ex. !msg join #Hawkee "Your text here"
  .timer 1 3 .notice $nick !msg part #chan "message"  - Insert here your Part Greet Ex. !msg part #Hawkee "Your text here"
  .timer 1 3 .notice $nick !start greeting #chan - You need to run this trigger for running the system on your channel
  .timer 1 4 .notice $nick !stop greeting #chan - You need to run this trigger for stop the bot Greeting on your Channel
}
on *:TEXT:!add greetchan *:?: {
  if ($nick ison $3) && ($nick isop $3) {
    if (!$1 || !$2) { .notice $nick The right trigger is !add greetchan #Chan }
    else {
      .set $+(%,greet.,$3) 1
      .notice $nick The channel $3 is now added to the Greeting System
    } 
  }
  else { .notice $nick You aren't an OP of $3 }
}
on *:TEXT:!remove greetchan *:?: {
  if ($nick ison $3) && ($nick isop $3) {
    if (!$1 || !$2) { .notice $nick The right trigger is !remove greetchan #Chan }
    if ($+(%,greet.,$3) == $null) { .notice $nick I don't have any greeting System running on $3 }
    else {
      .unset $+(%,greet.,$3)
      .unset $+(%,greet.,type.,$3)
      .unset $+(%,greet.,part.,$3)
      .unset $+(%,greet.,join.,$3)
      .unset $+(%,greet.,running.,$3)
      .notice $nick The channel $3 is now removed from the Greeting System
    } 
  }
  else { .msg $nick You aren't an OP of $3 }
}
on *:TEXT:!set advice notice*:?: {
  if ($nick ison $4) && ($nick isop $4) {
    if (!$1 || !$2 || !$3) { .notice $nick The right trigger is !set advice *notice or query* #Chan }
    if $($+(%,greet.,$4),2) == $null { .notice $nick I don't have any greeting System running on $4 }   
    else {
      .set $+(%,greet.,type.,$4) notice
      .notice $nick The Greet message will be sent to user by notice on $4
    } 
  }
  else { .msg $nick You aren't an OP of $4 }
}
on *:TEXT:!set advice query*:?: {
  if ($nick ison $4) && ($nick isop $4) {
    if (!$1 || !$2 || !$3) { .notice $nick The right trigger is !set advice *notice or query* #Chan }
    if $($+(%,greet.,$4),2) == $null { .notice $nick I don't have any greeting System running on $4 }   
    else {
      .set $+(%,greet.,type.,$4) msg
      .notice $nick The Greet message will be sent to user by a query on $4
    } 
  }
  else { .msg $nick You aren't an OP of $4 }
}
on *:TEXT:!msg join*:?: {
  if ($nick ison $3) && ($nick isop $3) {
    if (!$1 || !$2) { .msg $nick The right trigger is !set join #chan "message" }
    if $($+(%,greet.,$3),2) == $null { .notice $nick I don't have any greeting System running on $3 }
    else {
      .set $+(%,greet.,join.,$3) $4-
      .notice $nick Your Welcome message on $3 is now: $($+(%,greet.,join.,$3),2)
    } 
  }
  else { .msg $nick You aren't an OP of $3 }
}
on *:TEXT:!msg part*:?: {
  if ($nick ison $3) && ($nick isop $3) {
    if (!$1 || !$2) { .msg $nick The right trigger is !set part #chan "message" }
    if $($+(%,greet.,$3),2) == $null { .notice $nick I don't have any greeting System running on $3 }
    else {
      .set $+(%,greet.,part.,$3) $4-
      .notice $nick Your Part message on $3 is now: $($+(%,greet.,part.,$3),2)
    } 
  }
  else { .msg $nick You aren't an OP of $3 }
}
on *:TEXT:!start greeting*:?: {
  if ($nick ison $3) && ($nick isop $3) {
    if (!$1 || !$2) { .msg $nick The right trigger is !start greeting #chan }
    if $($+(%,greet.,$3),2) == $null { .notice $nick I don't have any greeting System running on $3 }      
    if $($+(%,greet.,type.,$3),2) == $null { .notice $nick You need to choose the Greeting type on $3 : query or notice }   
    if $($+(%,greet.,join.,$3),2) == $null { .notice $nick You dont have join message on $3 }
    elseif $($+(%,greet.,part.,$3),2) == $null { .notice $nick You dont have a part message on $3 }
    else {
      .set $+(%,greet.,running.,$3) ON
      .notice $nick I've started Greeting Users on $3
    } 
  }
  else { .msg $nick You aren't an OP of $3 }
}
on *:TEXT:!stop greeting*:?: {
  if ($nick ison $3) && ($nick isop $3) {
    if (!$1 || !$2) { .msg $nick The right trigger is !set part #chan "message" }
    if $($+(%,greet.,$3),2) == $null { .notice $nick I don't have any greeting System running on $3 }
    else {
      .unset $+(%,greet.,running.,$3)
      .notice $nick I've stopped Greeting Users on $3
    } 
  }
  else { .msg $nick You aren't an OP of $3 }
}
on !*:JOIN:#: {
  if $($+(%,greet.,running.,$chan),2) == on { 
    if $($+(%,greet.,type.,$chan),2) == notice { .notice $nick $($+(%,greet.,join.,$chan),2) }
    if $($+(%,greet.,type.,$chan),2) == msg { .msg $nick $($+(%,greet.,join.,$chan),2) }
  }
}
on !*:PART:#: {
  if $($+(%,greet.,running.,$chan),2) == on { 
    if $($+(%,greet.,type.,$chan),2) == notice { .notice $nick $($+(%,greet.,part.,$chan),2) }
    if $($+(%,greet.,type.,$chan),2) == msg { .msg $nick $($+(%,greet.,part.,$chan),2) }
  }
}

Comments

Sign in to comment.
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.