This is for use by IRCops. It is a two part script that allows you and your bot ( if it has IRCops status also) to simultaneously kill 2 different nicks. Yes, there are other commands that work just as well, but I got bored and decided to build this. Paste the top half into the master nick remotes and the bot half into the bot remotes.
;====================================
;SyncKill Program
;Built by Anthalus
;irc.flirtuniverse.net
;2 parts to this code:
;Master and Bot
;Change <yourbotname> to the name of your bot
;Change <masternick> to the nick of the bot's master
;====================================
;Master Script
alias SyncKill {
.var %synced1 = $$?="First Nick"
.var %synced2 = $$?="Second Nick"
.msg <yourbotname> ~Sync %synced2
.timer 1 30 .kill %synced1 SyncKill Utilized
}
;Bot Script
on *!:TEXT:~Sync*:?: {
if ( $nick == <masternick> ) {
if ( $2 == $null ) {
.msg <masternick> Need to specify nick | halt
}
if ( $2 != $null ) {
if ( A isincs $usermode ) || ( N isincs $usermode ) {
.timer 1 30 .kill $2 SyncKill Utilized
}
else {
.msg <masternick> $me needs Admin Status | halt
}
}
}
else {
.msg $nick Unauthorized attempt
.kill $nick Unauthorized Command Use
}
}
The \"!\" in the text event is useless since it cannot trigger it\'s own text.
On This part:
if ( A !isincs $usermode ) || ( N !isincs $usermode ) {
.msg <masternick> $me needs Admin Status | halt
}
if ( A isincs $usermode ) || ( N isincs $usermode ) {
.timer 1 30 .kill $2 SyncKill Utilized
}
Can be changed to :
if ( A isincs $usermode ) || ( N isincs $usermode ) { .timer 1 30 .kill $2 SyncKill Utilized }
else .msg <masternick> $me needs Admin Status