It's just a REALLY simple broadcast script

Use: .bc help
And you'll see the commands.
Exemple:
<nick>: .bc add 10 3600 Hello world!
<bot notice>: Broadcast added. To delete broadcast use: .bc del <nr>
Don't forget to change NICK to your nick.
- Code: Select all
on *:text:.bc*:#: {
if ($nick == NICK) {
set %bct $rand(0,1000)
if (!$2) {
notice $nick Error. SYNTAX: $1 <help> | halt
}
if ($2 == add) {
if ($3 == 0) {
.notice $nick Please don't use $3 times, i could get killed. | halt
}
.timer [ $+ [ %bct ] ] $3 $4 .amsg (Broadcast) $5-
.notice $nick Broadcast added. To delete broadcast use: .bc del %bct
}
if ($2 == del) {
if (!$3) {
.notice $nick Error. Syntax: $1 $2 <nr> | halt
}
.timer [ $+ [ $3 ] ] off
.notice $nick Broadcast deleted.
}
}
if ($2 == help) {
notice $nick SYNTAX: $1 <add|(del> <nr>) <howmanytimes> <howoften(in seconds)> <your massage>
Notice $nick $1 add
notice $nick <howmanytimes> = How many times you want it to broadcast.
notice $nick <howoften(in seconds)> = How often you like it to send you broadcast massage.
notice $nick $1 del
notice $nick <nr> = The number you got when you addded the broadcasting massage.
| halt
}
}
else {
notice $nick You don't have access to this command.
}