egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Some Help About mp3 tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Arkadietz
Halfop


Joined: 14 Jul 2006
Posts: 67
Location: cat /dev/zero > /dev/null;

PostPosted: Fri Jul 14, 2006 11:56 am    Post subject: Some Help About mp3 tcl Reply with quote

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
}
_________________
On a unix system everything is a file ; if something is not a file , it is a proccess.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Fri Jul 14, 2006 3:08 pm    Post subject: ... Reply with quote

So this tcl dont actually play mp3s.. ?
Heh, wouldn't we all love a script that could do that Wink

I think what you want here is just a normal advertise script that says "whatever" to "#whatever" in "sumtimescale"

im sure if you search the tcl archive there's lots Smile

And btw, remember to use the code tags when pasteing code and make sure its properly indented, I had major problems readin that Sad
_________________
www.NT-Hosts.Net - More than just a host
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber