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) }
}
}