This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Need a custom bot for a radio station

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
d
djdem
Voice
Posts: 4
Joined: Sat Mar 01, 2008 7:05 pm

Need a custom bot for a radio station

Post by djdem »

If a bot coder could please e-mail me at deminsia@comcast.net or on irc.gamesurge.net #eglnradio and pm EGLN|R|Dem thanks.
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

I'd suggest you to ask your request here and wait if someone reply to you if he wants. In this case we will get to learn many things and in future the question wont be repeated as it will be already answered.

Hope you get my point

peace
death
|AmDeAtH @ Undernet
Death is only the *Beginning*...
d
djdem
Voice
Posts: 4
Joined: Sat Mar 01, 2008 7:05 pm

Post by djdem »

Good point well basicly i need a shoutcast script that will allow me to add djs and kick the auto dj also each dj needs to be able to set his or her own playlist. Also be able to set sponsors and band list of the bands we sponsor. I have tried a few i found in the archives but they do not have all the features needed. If more info needed let me know.
d
djdem
Voice
Posts: 4
Joined: Sat Mar 01, 2008 7:05 pm

Post by djdem »

Ok well i found a script i could change if needed but I need to only I do not know what to change if someone could offer some help.
when i try to !kickdj or !kick which should kick the current dj it says it did but does not can someone look at this line of script and tell me why it does not work.


kick {
putquick "privmasg $nick :Source successfully kicked"
if {[lindex $streamdata 15] == 1} {
set sock [socket $sc::vars(ip) $sc::vars(port)]
puts $sock "GET /admin.cgi?mode=kicksrc HTTP/1.1"
puts $sock "User-Agent:Mozilla"
puts $sock "Host: $sc::vars(ip)"
puts $sock "Authorization: Basic $sc::vars(adpass)"
puts $sock ""
flush $sock

Somewhere in that its not kicking the source any ideas anyone. Would be greatly appreciated.
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

thats not the part thats gonna kick anyone. p.s. it is 'privmsg', not 'privmasg'
d
djdem
Voice
Posts: 4
Joined: Sat Mar 01, 2008 7:05 pm

Post by djdem »

ok then what should it look like to kick the dj
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Code: Select all

kick {
putquick "privmsg $nick :Source successfully kicked"
if {[lindex [split $streamdata] 15] == 1} {
set sock [socket $sc::vars(ip) $sc::vars(port)]

### Here is the kick call, cgi event will kicksrc
puts $sock "GET /admin.cgi?mode=kicksrc HTTP/1.1"
puts $sock "User-Agent:Mozilla"
puts $sock "Host: $sc::vars(ip)"

### That password must be correct to authorize the kick
### This is your issue ------------v
puts $sock "Authorization: Basic $sc::vars(adpass)"
puts $sock ""

### Here is the flush which will purge this thru the socket
flush $sock 
All of that is fine, the cgi would kicksrc if you had the correct authorization password set in $sc::vars(adpass)....

** Note: Revived this thread because shoutcast scripts are asked for alot lately... see this post for proof..heh
Post Reply