Advertisement
Dj_Dexter

xd.diff

Apr 3rd, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 4.55 KB | None | 0 0
  1. --- ice2.tcl    2012-04-03 16:38:46.513068967 -0300
  2. +++ ice2x.tcl   2012-04-03 22:13:11.907973862 -0300
  3. @@ -20,7 +20,7 @@
  4.  #Change these varibles to the one for your stream/bot/channel
  5.  
  6.  #Name of Radio Station
  7. -set streamname "Radio Linuzerz"
  8. +set streamname "Radio Linuxerz"
  9.  
  10.  #IP of the Icecast server.
  11.  set streamip "91.121.134.23"
  12. @@ -33,10 +33,10 @@
  13.  
  14.  #Other channel that the bot can advertise to. Bot must be in this channel for this to work. Ice2.tcl only
  15.  # sends stream advertisements to this channel and does not send song info.
  16. -set otherchan ""
  17. +set otherchan "#Hackxcrack"
  18.  
  19.  #URL/Link to the stream for listening. This is what listeners need to click to tune in.
  20. -set streamurl "http://91.121.134.23:8000/latam.ogg"
  21. +set streamurl "http://radio.linuxerz.org"
  22.  
  23.  #How often the bot checks the stream when it knows it is down in minutes. Recommend 1 minute.
  24.  set offlinetimer "1"
  25. @@ -73,7 +73,7 @@
  26.  bind pub - "%help" showcommands
  27.  #same as %commands
  28.  
  29. -bind pub - "!sonando" status
  30. +bind pub - "%status" status
  31.  #Displays the status of the stream
  32.  
  33.  bind pub - "!cuantos" listenercheck
  34. @@ -94,7 +94,7 @@
  35.  bind msg - "djoff" dj_off_pm
  36.  #turns off dj status
  37.  
  38. -bind pub - "!fadvert" forceadvertise
  39. +bind pub - "%fadvert" forceadvertise
  40.  #Forces an advertising message to be sent
  41.  
  42.  bind pub - "%version" iceversion
  43. @@ -108,8 +108,8 @@
  44.  set oldsong ""
  45.  set newsong ""
  46.  set newlistener ""
  47. -set oldlistener ""
  48. -set forceadsent "1"
  49. +set oldlistener "0"
  50. +set forceadsent "0"
  51.  set sessionpeak "0"
  52.  
  53.  # Check to make sure StatusCheck timer isn't running when bot rehashes.
  54. @@ -153,6 +153,7 @@
  55.    }
  56.  }
  57.  
  58. +
  59.  # Turns on and off Advertising. Also lets you set the interval: !advertise X
  60.  proc toggle_advertise {nick uhost hand chan arg} {
  61.    global radiochan enableadvertise adtimer
  62. @@ -189,8 +190,8 @@
  63.  proc advertise {} {
  64.    global radiochan streamstatus otherchan enableadvertise adtimer forceadsent streamurl streamname
  65.    if {$streamstatus != "0" && $enableadvertise == "1"} {
  66. -    putserv "PRIVMSG $radiochan :$streamname actualmente esta transmitiendo en vivo! Escuchar en @ $streamurl"
  67. -    putserv "PRIVMSG $otherchan :$streamname actualmente esta transmitiendo en vivo! Escuchar en @ $streamurl"
  68. +    putserv "PRIVMSG $radiochan :$streamname Actualmente esta transmitiendo en VIVO!! Escuchanos en @ $streamurl"
  69. +    putserv "PRIVMSG $otherchan :$streamname Actualmente esta transmitiendo en VIVO!! Escuchanos en @ $streamurl"
  70.      if {$forceadsent == "0"} {timer $adtimer [list advertise]} else {set forceadsent "0"}
  71.      return 1
  72.    }
  73. @@ -288,7 +289,7 @@
  74.    }
  75.    if {[string match *streamdata* $pagedata] == 1} {
  76.      set streamstatus "1"
  77. -    set songlocation [string first "Current Song:" $pagedata]
  78. +    set songlocation [string first "Actual Cancion:" $pagedata]
  79.      set songdata1 [string range $pagedata $songlocation 99999]
  80.      set location2 [string first "</tr>" $songdata1]
  81.      set songdata2 [string range $songdata1 0 $location2]
  82. @@ -297,7 +298,7 @@
  83.      set location3 [expr $location3 - 1]
  84.      set newsong [string range $songdata3 0 $location3]
  85.  
  86. -    set llocation [string first "Listeners:" $pagedata]
  87. +    set llocation [string first "Oyentes:" $pagedata]
  88.      set countdata1 [string range $pagedata $llocation 99999]
  89.      set llocation2 [string first "</tr>" $countdata1]
  90.      set countdata2 [string range $countdata1 0 $llocation2]
  91. @@ -319,7 +320,7 @@
  92.  proc status {nick uhost hand chan arg} {
  93.    global dj radiochan newsong newlistener streamstatus streamurl streamname
  94.    if {$streamstatus == 1} {
  95. -    if {$newsong != "" &&  $dj == "$nick" && $arg != ""} {putserv "notice $arg :La cancion actual es |$newsong| @ $streamurl"}
  96. +    if {$newsong != "" &&  $dj == "$nick" && $arg != ""} {putserv "notice $arg :La cancion actual es |$newsong| @ Escuchanos en $streamurl"}
  97.      if {$newsong != "" &&  $dj != "$nick"} {
  98.        putserv "noticia $nick :La cancion actual es |$newsong| @ $streamurl"
  99.      }
  100. @@ -390,7 +391,7 @@
  101.  #      if {$arg == "Test"} {
  102.  #        set dj "$nick"
  103.  #        putserv "PRIVMSG $nick :You are logged in as $dj."
  104. -#        putserv "PRIVMSG $radiochan :$dj is now rocking the turntables and accepting requests via %request, enjoy."
  105. +#        putserv "PRIVMSG $radiochan :$dj is now rocking the turntables and accepting requests via !request, Enjoy."
  106.  #        return 0
  107.  #      }
  108.      }
  109. @@ -433,4 +434,4 @@
  110.     }
  111.  }
  112.  
  113. -putlog "Ice2 Version $ice2version Por Tido, Henkes, y Sircrazy esta cargando :)"
  114. +putlog "Ice2 Version $ice2version Por Tido, Henkes, Sircrazy, Editado por Xc0re esta cargando :)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement