Hello, i want a working tcl who play a song every 10 mins for example where i can choose the minutes and the songs in the tcl
P.S And must be Work at every channel
For example:
[18:53:52] * Creative plays Francesco Farfa - Changing Shapes (Chus and Cebellos Remix)
I have one tcl but have a bug at time sometimes go in crazy and the timer doesn't work
This is code i will be happy if someone fix it !
# Time
set speaks_time 10
## Channel
set speaks_chans "*"
set speaks_msg {
"4Toasters - Real World (Real Beats)"
"bla bla"
}
if {![string match "*time_speaks*" [timers]]} {
timer $speaks_time time_speaks
}
proc time_speaks {} {
global speaks_msg speaks_chans speaks_time
if {$speaks_chans == "*"} {
set speaks_temp [channels]
} else {
set speaks_temp $speaks_chans
}
foreach chan $speaks_temp {
set speaks_rmsg [lindex $speaks_msg [rand [llength $speaks_msg]]]
puthelp "PRIVMSG $chan :\001plays $speaks_rmsg\001"
}
}
if {![string match "*time_speaks*" [timers]]} {
timer $speaks_time time_speaks
}