on *:load:{
set %radiochan #FragHYPE
set %serverip1 216.32.81.114
set %serverip2 216.32.81.114
set %port1 7000
set %port2 9000
}
on *:JOIN:#:{
if ($ulevel) {
if ($ulevel == 1) { halt }
if ($ulevel >= 100) {
var %info $ulist($address($nick,1),$ulevel,1).info
msg $chan 3,13,1[9« 15#Frag3HYPE 9»3][9«15,1 $nick $level($address($nick,6)) $+ , %info 9»3]
notice $nick 3,13,1[9« 15#Frag3HYPE 9»3][9«15,1 @managercommands @ownercommands @djcommands @deletestaff @addstaff 9»3]
}
}
if ($chan == #FragHYPE) {
if ($ulevel >= 1) halt
if ($ulevel == 1) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3]15,1Welcome to #Frag3HYPE15,1 Type @Info for Information and @Commands for a list of commands to use 3,1[9« 15#Frag3HYPE 9»3]
}
}
}
on *:NICK:{
if ($nick == %dj) {
set %dj $newnick
}
}
on *:TEXT:@commands:#FragHYPE:{
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9« 15Stream - @stream 9»3][9« 15Now Playing - @song 9»3][9« 15Listeners - @listeners 9»3][9« 15Dj - @dj 9»3][9« 15Shoutout - @shoutout 9»3][9« 15Request-a-song - @request 9»3][9« 15Cut(If you don't like the song) - @cut 9»3][9« 15#Frag3HYPE 9»3]
}
on *:TEXT:@info:#FragHYPE:{
notice $nick 3,1[9« Visit our website at 15www9.15,1FragHYPE9.15,1net and $me scripted by TrioN using only mIRC 9»3]
}
on *:TEXT:@dj:#:{
if (%dj) {
if ($nick == %dj) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Your the dj that is annihilating the radio waves eh? 3,1[9« 15#Frag3HYPE 9»3]
}
else {
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj is on air, annihilating the radio waves 9»3]
}
}
else {
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream-1 Is Offline, Ask a DJ to go on 9»3]
}
}
on *:TEXT:@onair:#FragHYPE:{
if ($nick >= 200) {
if ($nick == %dj) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Your on air already 9»3]
halt
}
if (%dj) {
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj is on air 9»3]
halt
}
if (!%dj) {
set %dj $nick
amsg 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj is now on air, annihilating the radio waves 9»3]
}
}
}
on *:TEXT:@offair:#FragHYPE:{
if ($nick >= 200) {
if (%dj) {
if ($nick == %dj) {
set %requests on
set %shoutouts on
set %cuts on
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj is now off air. 9»3]
amsg 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj is now off air. 9»3]
unset %dj
}
}
}
}
on *:TEXT:@shoutout*:#FragHYPE:{
if (!%dj) {
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream Is Offline, Ask a DJ to go on 9»3]
}
else {
if (!$2) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You did not submit an actual shoutout 9»3]
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Example: @Shoutout Frag Radio is the best 9»3]
}
else {
if ($2 == on) {
if ($nick == %dj) {
set %shoutouts on
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You turned the command @shoutout on 9»3]
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj turned the command @shoutouts on 9»3]
halt
}
}
if ($2 == off) {
if ($nick == %dj) {
set %shoutouts off
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You turned the command @shoutouts off 9»3]
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj turned the command @shoutouts off 9»3]
halt
}
}
if (%shoutouts == off) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 This command was turned off by %dj 9»3]
halt
}
if (%spam.shoutouts. [ $+ [ $nick ] ] == 1) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You can only used this command once every minute 9»3]
halt
}
else {
set -u60 %spam.shoutouts. [ $+ [ $nick ] ] 1
if ($nick == %dj) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You nimrod, you cant send a shouout to your self 9»3]
}
else {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Your shoutout has been sent to %dj 9»3]
msg %dj 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Shoutout by $nick $+ : $2- 9»3]
}
}
}
}
}
on *:TEXT:@request*:#FragHYPE:{
if (!%dj) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream Is Offline, Ask a DJ to go on 9»3]
}
else {
if (!$2) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You did not submit an actual request 9»3]
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Example: @request %song1 9»3]
}
else {
if ($2 == on) {
if ($nick == %dj) {
set %requests on
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You turned the command @request on 9»3]
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj turned the command @request on 9»3]
halt
}
}
if ($2 == off) {
if ($nick == %dj) {
set %requests off
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You turned the command @request off 9»3]
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj turned the command @request off 9»3]
halt
}
}
if (%requests == off) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 This command was turned off by %dj 9»3]
halt
}
if (%spam.request. [ $+ [ $nick ] ] == 1) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You can only used this command once every minute 9»3]
halt
}
else {
set -u60 %spam.request. [ $+ [ $nick ] ] 1
if ($nick == %dj) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You nimrod, you cant send a request to your self 9»3]
}
else {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Your request has been sent to %dj 9»3]
msg %dj 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Request by $nick $+ : $2- 9»3]
}
}
}
}
}
on *:TEXT:@cut*:#:{
if (!%dj) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream Is Offline, Ask a DJ to go on 9»3]
}
else {
if ($2 == on) {
if ($nick == %dj) {
set %cuts on
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You turned the command @cut on 9»3]
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj turned the command @cut on 9»3]
halt
}
}
elseif ($2 == off) {
if ($nick == %dj) {
set %cuts off
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You turned the command @cut off 9»3]
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj turned the command @cut off 9»3]
halt
}
}
else {
if (%cuts == off) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 This command was turned off by %dj 9»3]
halt
}
if (%spam.cuts. [ $+ [ $nick ] ] == 1) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You can only used this command once every minute 9»3]
halt
}
else {
set -u60 %spam.cuts. [ $+ [ $nick ] ] 1
if ($nick == %dj) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You nimrod, you cant cut your self 9»3]
}
else {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Your cut request has been sent to %dj 9»3]
msg %dj 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Request to cut the song has been sent by $nick 9»3]
}
}
}
}
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;@stream Command
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on *:TEXT:@stream:#:{
if (%dj) {
set %ask.nick $nick
set %ask.chan $chan
sockclose server1
sockopen server1 %serverip1 %port1
}
else {
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream Is Offline, Ask a DJ to go on 9»3]
}
}
on *:SOCKOPEN:server1:{
sockwrite -n $sockname GET /7.html HTTP/1.0
sockwrite -n $sockname User-Agent: Mozilla
sockwrite -n $sockname $crlf
}
on *:sockread:server1:{
if ($sockerr > 0) {
msg %ask.chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream-1 Is Offline, Ask a DJ to go on 9»3]
return
}
:nextread
sockread -f %scasttemp1
if ($sockbr == 0) return
if (%scasttemp1 == $null) %scasttemp1 = empty
set %scasttemp1 $remove(%scasttemp1,<HTML><meta http-equiv="Pragma" content="no-cache"></head><body>,</body></html>)
if ((HTTP/1.* !iswm %scasttemp1) && (content-type* !iswm %scasttemp1) && (%scasttemp1 != empty)) {
set %status1 $gettok(%scasttemp1,2,44)
set %asong $gettok(%scasttemp1,7-,44)
set %listeners1 $gettok(%scasttemp1,1,44)
set %peak1 $gettok(%scasttemp1,3,44)
set %song1 $replace(%asong,&,$chr(38),',$chr(39))
}
goto nextread
}
on *:sockclose:server1:{
if (%status1 == 0) {
msg %ask.chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream-1 Is Offline, Ask a DJ to go on 9»3]
}
else {
msg %ask.chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream-1: http:// $+ %serverip1 $+ : $+ %port1 $+ /listen.pls × OnAir: %dj 9»3]
msg %ask.chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Now Playing: %song1 × Listeners: %listeners1 $+ /250 × Peak: %peak1 9»3]
}
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;@server Command
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on *:TEXT:@song:#:{
if (!%dj) { msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream-1 Is Offline, Ask a DJ to go on 9»3] | halt }
set %ask.nick $nick
set %ask.chan $chan
sockclose song1
sockopen song1 %serverip1 %port1
}
on *:SOCKOPEN:song1:{
sockwrite -n $sockname GET /7.html HTTP/1.0
sockwrite -n $sockname User-Agent: Mozilla
sockwrite -n $sockname $crlf
}
on *:sockread:song1:{
if ($sockerr > 0) return
:nextread
sockread -f %scasttemp1
if ($sockbr == 0) return
if (%scasttemp1 == $null) %scasttemp1 = empty
set %scasttemp1 $remove(%scasttemp1,<HTML><meta http-equiv="Pragma" content="no-cache"></head><body>,</body></html>)
if ((HTTP/1.* !iswm %scasttemp1) && (content-type* !iswm %scasttemp1) && (%scasttemp1 != empty)) {
set %status1 $gettok(%scasttemp1,2,44)
set %asong1 $gettok(%scasttemp1,7-,44)
set %listeners1 $gettok(%scasttemp1,1,44)
set %peak1 $gettok(%scasttemp1,3,44)
set %song1 $replace(%asong1,&,$chr(38),',$chr(39))
}
goto nextread
}
on *:sockclose:song1:{
if (%status1 == 0) {
msg %ask.chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream-1 Is Offline, Ask a DJ to go on 9»3]
}
else {
msg %ask.chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Now Playing: %song1 3,1[9« 15#Frag3HYPE 9»3]
}
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;@listeners Command
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on *:TEXT:@listeners:#:{
if (!%dj) { msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream Is Offline, Ask a DJ to go on 9»3] | halt }
set %ask.nick $nick
set %ask.chan $chan
sockclose listeners1
sockopen listeners1 %serverip1 %port1
}
on *:SOCKOPEN:listeners1:{
sockwrite -n $sockname GET /7.html HTTP/1.0
sockwrite -n $sockname User-Agent: Mozilla
sockwrite -n $sockname $crlf
}
on *:sockread:listeners1:{
if ($sockerr > 0) return
:nextread
sockread -f %scasttemp1
if ($sockbr == 0) return
if (%scasttemp1 == $null) %scasttemp1 = empty
set %scasttemp1 $remove(%scasttemp1,<HTML><meta http-equiv="Pragma" content="no-cache"></head><body>,</body></html>)
if ((HTTP/1.* !iswm %scasttemp1) && (content-type* !iswm %scasttemp1) && (%scasttemp1 != empty)) {
set %status1 $gettok(%scasttemp1,2,44)
set %asong1 $gettok(%scasttemp1,7-,44)
set %listeners1 $gettok(%scasttemp1,1,44)
set %peak1 $gettok(%scasttemp1,3,44)
set %song1 $replace(%asong1,&,$chr(38),',$chr(39))
}
goto nextread
}
on *:sockclose:listeners1:{
if (%status1 == 0) {
msg %ask.chan 3,1[9« 15#Frag3HYPE 9»3]15,1 Stream-1 Is Offline, Ask a DJ to go on 9»3]
}
else {
msg %ask.chan 3,1[9« 15#Frag3HYPE 9»3]15,1 Listeners: %listeners1 $+ /250 9»3]
}
}
;;;;;;;;;;;;;;;;;;;;;;;;;;
;override commands
;;;;;;;;;;;;;;;;;;;;;;;;;;
on 400:TEXT:@override*:#FragHYPE:{
if (!$2) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Please choose a actual @override command 9»3]
notice $nick 3,1[9« 15Example 9»3][9«15,1 @override offair 9»3]
halt
}
if ($2- == requests on) {
if (%requests == off) {
set %requests on
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 $nick turned on @requests 9»3]
}
}
if ($2- == requests off) {
if (%requests == on) {
set %requests off
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 $nick turned on @requests 9»3]
}
}
if ($2 == offair) {
set %requests on
set %shoutouts on
set %cuts on
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj is now off air. Commanded by $nick 9»3]
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj is now off air. Commanded by $nick 9»3]
else msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 No Dj online right now, Ask one to get on 9»3]
unset %dj
}
if ($2 == onair) {
if ($3 == %dj) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj is is already on air 9»3]
halt
}
if (!%dj) {
set %dj $3
amsg 3,1[9« 15#Frag3HYPE 9»3][9«15,1 %dj is now on air, annihilating the radio waves. Commanded by $nick 9»3]
}
}
if ($2- == shoutout on) {
if (%shoutouts == off) {
set %shoutouts on
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 $nick turned on @requests 9»3]
}
}
if ($2- == shoutout off) {
if (%shoutouts == on) {
set %shoutouts off
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 $nick turned off @shoutout 9»3]
}
}
if ($2- == cut on) {
if (%cuts == off) {
set %cuts on
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 $nick turned on @cut 9»3]
}
}
if ($2- == cut off) {
if (%cuts == on) {
set %cuts off
msg $chan 3,1[9« 15#Frag3HYPE 9»3][9«15,1 $nick turned off @cut 9»3]
}
}
}
;;;;;;;;;;;;;;;
;;QueryScript;;
;;;;;;;;;;;;;;;
on *:OPEN:?:{
msg $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Hello I'm a bot for #FragHYPE 9»3]
msg $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 I will not respond to you, if you need assistance please talk to an op in #FragHYPE 9»3]
msg $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Conversation is being closed 9»3]
closemsg $nick
}
;;;;;;;;
;;HELP;;
;;;;;;;;
on *:TEXT:@HELP*:#:{
if ($nick >= 150) {
halt
}
else {
notice #FragHYPE.staff 3,1-
notice #FragHYPE.staff 3,1-------------------------------
notice #FragHYPE.staff 3,1--15Nick: $nick
notice #FragHYPE.staff 3,1--15Date: $date(dddd mmmm dd $+ $chr(44) yyyy)
notice #FragHYPE.staff 3,1--15Time: $asctime(hh:nn:ss TT)
notice #FragHYPE.staff 3,1--15Channel: $chan
notice #FragHYPE.staff 3,1--15Message: $2-
notice #FragHYPE.staff 3,1-------------------------------
notice #FragHYPE.staff 3,1-
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 The Staff Has Been Paged 9»3]
}
}
;;;;;;;;;;;;
;;addstaff;;
;;;;;;;;;;;;
on *:TEXT:@addstaff*:#FragHYPE:{
if ($nick >= 400) {
if (!$2) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You need to set a level 9»3]
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Example: @addstaff8 50015 $nick CEO 9»3]
halt
}
if (!$3) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You need to set a nick 9»3]
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Example: @addstaff 500 8$nick15 CEO 9»3]
halt
}
if (!$4) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You need to set info 9»3]
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Example: @addstaff 500 $nick 8CEO15 9»3]
halt
}
if ($2 >= 300) {
set %setlevel 350
}
else {
set %setlevel 250
}
guser $2 $3 2 $4-
msg chanserv #FragHYPE adduser $3 %setlevel
msg chanserv #FragHYPE.staff adduser $3 200
msg chanserv #FragHYPE resync
msg chanserv #FragHYPE.staff resync
notice $3 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You have been added to the staff channel 9»3]
notice $3 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Put the following commands in your preform section 9»3]
notice $3 3,1[9« 15#Frag3HYPE 9»3][9«15,1 /cs inviteme #FragHYPE.staff 9»3]
notice $3 3,1[9« 15#Frag3HYPE 9»3][9«15,1 /j #FragHYPE.staff 9»3]
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 $3 has been added to the staff channel and FragHYPE channel 9»3]
}
}
;;;;;;;;;;;;;;;;
;;deletedstaff;;
;;;;;;;;;;;;;;;;
on *:TEXT:@deletestaff*:# {
if ($ulevel >= 400) {
if (!$2) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 You need to add a nick 9»3]
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Example: @deletestaff 8$nick 9»3]
halt
}
ruser $2 2
msg chanserv #FragHYPE deluser $2
msg chanserv #FragHYPE.staff deluser $2
msg chanserv #FragHYPE.staff kick $2
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 $2 has been deleted from all the staff 9»3]
}
}
;;;;;;;;;;;;;;
;;djcommands;;
;;;;;;;;;;;;;;
on *:TEXT:@djcommands:# {
if ($ulevel < 199) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Sorry you do not have permission to access this command 9»3]
halt
}
if ($ulevel >= 199) {
notice $nick 3,1[9« 15#FragHYPE 9»3]
notice $nick 3,1[9« 15Requests - @requests on/off 9»3]
notice $nick 3,1[9« 15Shoutouts - @shoutouts on/off 9»3]
notice $nick 3,1[9« 15Cuts - @cut on/off 9»3]
notice $nick 3,1[9« 15Onair - @Onair 9»3]
notice $nick 3,1[9« 15Offair - @offair 9»3]
notice $nick 3,1[9« 15#FragHYPE 9»3]
}
}
;;;;;;;;;;;;;;;;;;;
;;managercommands;;
;;;;;;;;;;;;;;;;;;;
on *:TEXT:@managercommands:# {
if ($ulevel < 199) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9« 15,1 Sorry you do not have permission to access this command 9»3]
halt
}
if ($ulevel >= 199) {
notice $nick 3,1[9« 15#FragHYPE 9»3]
notice $nick 3,1[9« 15Override Requests - @override requests on/off 9»3]
notice $nick 3,1[9« 15Override Shoutouts - @override shoutouts on/off 9»3]
notice $nick 3,1[9« 15Override Cuts - @override cut on/off 9»3]
notice $nick 3,1[9« 15Override Offair - @override offair 9»3]
notice $nick 3,1[9« 15#FragHYPE 9»3]
}
}
;;;;;;;;;;;;;;
;;mecommands;;
;;;;;;;;;;;;;;
on *:TEXT:@ownercommands:# {
if ($ulevel < 400) {
notice $nick 3,1[9« 15#Frag3HYPE 9»3][9« 15,1 Sorry you do not have permission to access this command 9»3]
halt
}
if ($ulevel >= 400) {
notice $nick 3,1[9« 15#FragHYPE 9»3]
notice $nick 3,1[9« 15Add Staff - @staff add/delete 9»3]
notice $nick 3,1[9« 15Add Sponsors - @sponsor add/delete 9»3]
notice $nick 3,1[9« 15Add Custom - @custom add/delete 9»3]
notice $nick 3,1[9« 15Bot Channels - @channel add/delete 9»3]
notice $nick 3,1[9« 15#FragHYPE 9»3]
}
}
;;;;;;;;;
;;power;;
;;;;;;;;;
on 400:TEXT:@power:#: {
set %radiochanpower $chan
pwr
}
alias pwr {
var %s = $scon(0),%g = 1
while (%g <= %s) {
scid $scon(%g)
var %f = $chan(0),%opped,%voiced,%total
inc %total $chan(0)
while (%f) {
if ($me isop $chan(%f)) {
inc %opped
}
elseif ($me isvoice $chan(%f)) {
inc %voiced
}
dec %f
var %regular = $calc(%total - (%opped + %voiced))
}
inc %g
scid -r
msg %radiochanpower 3,1[9« 15#Frag3HYPE 9»3]
msg %radiochanpower 3,1[9« 15Total Channels 3,1[9«15 %total 9»3]
msg %radiochanpower 3,1[9« 15Opped Status 3,1[9«15 %opped 9»3]
msg %radiochanpower 3,1[9« 15Voiced Status 3,1[9«15 %voiced 9»3]
msg %radiochanpower 3,1[9« 15Regular Status 3,1[9«15 %regular 9»3]
msg %radiochanpower 3,1[9« 15#Frag3HYPE 9»3]
}
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;timer Command
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on *:SOCKOPEN:timer1:{
sockwrite -n $sockname GET /7.html HTTP/1.0
sockwrite -n $sockname User-Agent: Mozilla
sockwrite -n $sockname $crlf
}
on *:sockread:timer1:{
if ($sockerr > 0) {
msg %ask.chan 3,1[9« 15#Frag3HYPE 9»3][9« 15,1 Stream-1 Is Offline, Ask a DJ to go on 9»3]
return
}
:nextread
sockread -f %scasttemp1
if ($sockbr == 0) return
if (%scasttemp1 == $null) %scasttemp1 = empty
set %scasttemp1 $remove(%scasttemp1,<HTML><meta http-equiv="Pragma" content="no-cache"></head><body>,</body></html>)
if ((HTTP/1.* !iswm %scasttemp1) && (content-type* !iswm %scasttemp1) && (%scasttemp1 != empty)) {
set %tstatus1 $gettok(%scasttemp1,2,44)
set %tasong $gettok(%scasttemp1,7-,44)
set %tlisteners1 $gettok(%scasttemp1,1,44)
set %tpeak1 $gettok(%scasttemp1,3,44)
set %tsong1 $replace(%asong,&,$chr(38),',$chr(39))
}
goto nextread
}
on *:sockclose:timer1:{
if (%status1 == 0) {
msg %ask.chan 3,1[9« 15#Frag3HYPE 9»3][9« 15,1 Stream-1 Is Offline, Ask a DJ to go on 9»3]
}
else {
notice %ask.nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Stream-1: http:// $+ %serverip1 $+ : $+ %port1 $+ /listen.pls 9»3][9« OnAir: %dj 8)
notice %ask.nick 3,1[9« 15#Frag3HYPE 9»3][9«15,1 Now Playing: %tsong1 9»3][9« Listeners: %tlisteners1 $+ /250 9»3][9« Peak: %tpeak1 9»3]
}
}