Radio Script

By Foutjuh on Oct 05, 2008

A script made by Darkkid !
This scripts takes the status of youre radio and send it into youre channel.
When people typ !stats it will given :)

Hope you enjoy

Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete Delete 

Comments

Sign in to comment.
akierry9   -  Feb 10, 2011

What the Commented? Please give!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 Respond  
LucSatise   -  May 04, 2009

u little tw@ i gave u that 4 ure radio not to put on hawkee

dude u never wrote this lol

i knwo u and can tell u tht u never wrote this cos u seen me using one like this and never said anything about it

 Respond  
DJ-Killer   -  May 04, 2009

what
can u please help me i need one

 Respond  
DJ_CJ   -  May 02, 2009

u little tw@ i gave u that 4 ure radio not to put on hawkee

 Respond  
DJ-Killer   -  Apr 30, 2009

i mean like it tells u the song when the new song comes on where and what would u type to make it can some one tell me please ty

 Respond  
DJ-Killer   -  Apr 30, 2009

can some one tell me how to make it automate so u do not have to type !stats

 Respond  
Cheiron   -  Oct 28, 2008

cheers mountaindew heh... dont ya just love sockets ... sorry for the headache caused there trying to work out why it a no worker but ta least we know it not a worker now

 Respond  
guest598594   -  Oct 28, 2008

I just did an echo -a %t in the sockread, and before all that crap I got:

ICY 200 OK
icy-notice1:
This stream requires Winamp

icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.8

icy-name:Titan Sounds
icy-genre:Various
icy-url:http://www.titansounds.com
content-type:audio/mpeg
icy-pub:1
icy-br:56

Not sure what to do with it though.

Edit: ah, I guess you have to add this to the sockopen: sockwrite -n $sockname User-Agent: SHOUTcast Song Status (Mozilla Compatible)

But just check out the other shoutcast snippets, it's pointless revising this one.

 Respond  
Cheiron   -  Oct 28, 2008

holy crap....

-
&X¥×äÂÀ0™ÒÖÜcF‚ˆà—RaæG"Lë²î¥˜äg~@„i‹|œ³ï¾è<“ìs…7
2XÕˆ
¨…DaÇ{¥ª³`Z©7•Œœumª’UMòy*›#&¨ÿótpœyyb{#hƒèjÉX
ƒ'ÕrP¤ÖG®¨ªq
ŠB£Dÿótp¿yu^k$ôHfÍp

  • /echo: insufficient parameters (line 17, script24.ini)

and i didnt even get to type anything.. as soon as i clicked ok off it went

 Respond  
guest598594   -  Oct 28, 2008

nah just for testing purposes, try:

on *:sockread:radio:{
  var %t
  sockread %t
  echo -a %t
}
 Respond  
Cheiron   -  Oct 28, 2008

oh bum... i just had a thought.. i am using this on

UnrealIRCd
http://www.unrealircd.com
Version: 3.2.7
Last doc update: 2007-07-10

and i am on a different network to quakenet. do you think this is "only" a quake snippet therefore making it useless for any other network?

 Respond  
Cheiron   -  Oct 28, 2008

still the same.. nada.. no display or error message in status

 Respond  
guest598594   -  Oct 28, 2008

Well now the on sockread is screwed up, it's trying to msg $chan when $chan is $null.

If you're using the on text, try:

on *:TEXT:!stats*:#:{ /radio $chan }

alias radio {
  if ($sock(radio)) sockclose $v1
  sockopen radio s8.viastreaming.net 7380
  sockmark radio $iif($1,msg $1,echo -a)
}
on *:sockopen:radio: {
  sockwrite -nt $sockname GET / HTTP/1.1
  sockwrite -nt $sockname Host: s8.viastreaming.net
  sockwrite -nt $sockname $crlf
}
on *:sockread:radio:{
  var %t
  sockread %t
  while ($sockbr) {
    sockread -f %t
    if ($regex(%t,/<body>(.*?)<\/body>/)) {
      tokenize 44 $regml(1)
      $sock($sockname).mark %radiochan 14,9 Titan Sounds: 4,9 Listners: 12,8 $1 4| 4,9 Nummer: 12,8 $7-  4| 4,9 Kbps: 12,8    $6 $+ kbps
    }
  }
}
 Respond  
Cheiron   -  Oct 28, 2008

nothing showing anywhere now.. no error messages or displays in channel.
here the code

on *:TEXT:!stats*:#:{ /radio }

alias radio {
  if ($sock(radio)) sockclose $v1
  sockopen radio s8.viastreaming.net 7380
}
on *:sockopen:radio: {
  sockwrite -nt $sockname GET / HTTP/1.1
  sockwrite -nt $sockname Host: s8.viastreaming.net
  sockwrite -nt $sockname $crlf
}
on *:sockread:radio:{
  var %t
  sockread %t
  while ($sockbr) {
    sockread -f %t
    if ($regex(%t,/<body>(.*?)<\/body>/)) {
      tokenize 44 $regml(1)
      /msg $chan 14,9 Titan Sounds: 4,9 Listners: 12,8 $1 4| 4,9 Nummer: 12,8 $7-  4| 4,9 Kbps: 12,8    $6 $+ kbps 
    }
  }
}
 Respond  
guest598594   -  Oct 28, 2008
  sockwrite -nt $sockname Host: [ADDRESS]

Replace [ADDRESS] with s8.viastreaming.net

 Respond  
Cheiron   -  Oct 28, 2008

this is how i got it currently

on *:TEXT:!stats*:#staff:{ /radio }

alias radio {
  if ($sock(radio)) sockclose $v1
  sockopen radio s8.viastreaming.net 7380
}
on *:sockopen:radio: {
  sockwrite -nt $sockname GET / HTTP/1.1
  sockwrite -nt $sockname Host: [ADDRESS]
  sockwrite -nt $sockname $crlf
}
on *:sockread:radio:{
  var %t
  sockread %t
  while ($sockbr) {
    sockread -f %t
    if ($regex(%t,/<body>(.*?)<\/body>/)) {
      tokenize 44 $regml(1)
      /msg $chan 14,9 Titan Sounds: 4,9 Listners: 12,8 $1 4| 4,9 Nummer: 12,8 $7-  4| 4,9 Kbps: 12,8    $6 $+ kbps 
    }
  }
}
 Respond  
guest598594   -  Oct 28, 2008

Well if it's like this: http://something.com:555/, you'd do "sockopen radio something.com 555".

But I have no clue how shoutcast works; I've never used one before.

I guess it's trying to get info from the radio page.

What's the url you're using?

 Respond  
Cheiron   -  Oct 28, 2008

now i am getting this

  • /sockwrite: 'radio' not connected (line 8, script24.ini)
  • /sockwrite: 'radio' not connected (line 8, script24.ini)

i am not sure what addy i should be putting in though. as i am taking from a live stream. is it my website or my server stream addy

 Respond  
guest598594   -  Oct 28, 2008

Try this for the alias and sockopen:

alias radio {
  if ($sock(radio)) sockclose $v1
  sockopen radio [ADDRESS] [PORT]
}
on *:sockopen:radio: {
  sockwrite -nt $sockname GET / HTTP/1.1
  sockwrite -nt $sockname Host: [ADDRESS]
  sockwrite -nt $sockname $crlf
}
 Respond  
Cheiron   -  Oct 28, 2008

i tried that mountaindew and got this

  • /sockwrite: 'radio' not connected (line 9, script24.ini)
  • Error: [0] Unknown Error

  • /sockwrite: 'radio' not connected (line 10, script24.ini)
 Respond  
guest598594   -  Oct 28, 2008
  sockopen radio <here youre adress> <here youre port>

Should be:

  if ($sock(radio)) sockclose $v1
  sockopen radio <here youre adress> <here youre port>

Cheiron, I haven't tried this script, but try adding this under the on sockopen line:

if ($sockerr) echo -a Error: $sock($sockname).wsmsg

And Foutjuh, $chan is $null in an alias btw so you can't set/use that var.

 Respond  
Cheiron   -  Oct 28, 2008

-

  • /sockopen: 'radio' socket in use (line 4, script24.ini)
  • /sockwrite: 'radio' not connected (line 8, script24.ini)

got that after changing it napa but still no display

 Respond  
napa182   -  Oct 28, 2008
sockopen radio <here youre adress> <here youre port>

kinda like

sockopen radio www.blah.com 80
 Respond  
Cheiron   -  Oct 28, 2008

umm yes i am.. i have my stream going and connected. i entered my stream addy and port number and got that message. it may be that i have got the details in wrong through where it is not explained how to put the addy in. which is what i am trying to fathom out

 Respond  
Bullet_Dodger   -  Oct 28, 2008

Cheiron Thats because your not connected to a radio -_-

 Respond  
Cheiron   -  Oct 27, 2008

kept getting error messages on usage.. and couldnt get it to work either

-

  • /sockwrite: 'radio' not connected (line 8, script24.ini)
  • /sockwrite: 'radio' not connected (line 8, script24.ini)
  • /sockwrite: 'radio' not connected (line 8, script24.ini)
  • /sockopen: insufficient parameters (line 4, script24.ini)
  • /sockwrite: 'radio' not connected (line 8, script24.ini)
 Respond  
Bullet_Dodger   -  Oct 26, 2008

:( Sowrry mr napa

 Respond  
napa182   -  Oct 26, 2008

Bullet_Dodger STFU

 Respond  
Bullet_Dodger   -  Oct 26, 2008

/msg %kanaal 14,9 Crime-Radio: .. Why put Crime FM ..

 Respond  
^Neptune   -  Oct 26, 2008

Uh, any reason for that? You can't just say that. :/

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.