They are both individual lines in the script, so they shouldn't be saying that so close together. Should be like every minute. It is saying all the lines at one time :\
proc name {nick host hand chan text} {
putserv "PRIVMSG $chan :blah."
}
The proc sets the varible $chan to the channel that proc was triggered from. Would the varible $chan { "#mychan" "#otherchan" "#blah" } be affected. Like overwritten with the new channel name from the proc?
##### GENERAL SETTINGS ####
# Edit the time cycle which is in minutes format depending on the time intervals you want the bot to flow out the advertisment
set time 1
# EDIT the text or REMOVE or ADD lines including inverted commas at the starting and ending at each line
set text {
"ad1"
"ad2"
"ad3"
}
##### DO NOT EDIT ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING #####
if {[string compare [string index $time 0] "!"] == 0} { set timer [string range $time 1 end] } { set timer [expr $time * 60] }
if {[utimerexists go] == ""} { utimer $timer go }
set queue {}
set frequency 2 ;# seconds
proc getqueue {} {
if {$::queue != {}} {
puthelp [lindex $::queue 0]
set ::queue [lreplace $::queue 0 0]
}
utimer $::frequency getqueue
}
proc putqueue {str} {
lappend ::queue $str
}
getqueue
proc go {} {
global text timer
foreach chan [channels] {
putqueue "PRIVMSG $chan :[lindex $text [rand [llength $text]]]"
}
if {[utimerexists go] == ""} { utimer $timer go }
}
putlog "Loaded Advertise Script by es"
It's pretty hard to concentrate when everytime I post, I see a Tosser post