Posted to tcl by Simbaa at Tue Oct 17 17:10:45 GMT 2017view raw

  1. ###############################################################################################################################
  2. # #
  3. # LoReZ ShoutCast Script v2.1 (sc.tcl) #
  4. # Email: lorez@bigvibez.com #
  5. # IRC: #bigvibez @ Quakenet #
  6. # #
  7. # Please contact me if you notice any bugs #
  8. # #
  9. # Installation: Put the script and the config file into your scripts directory, add "source scripts/sc.tcl" to your eggdrop #
  10. # config and rehash the bot. (http package is REQUIRED for this script to work) # #
  11. # #
  12. ###############################################################################################################################
  13.  
  14. ###############################################################################################################################
  15. # START OF CONFIGURATION FOR SC.TCL #
  16. ###############################################################################################################################
  17.  
  18. ### Stream Settings ###
  19.  
  20. # A Description for your Stream
  21. set sc::vars(desc) "DreamFm106 Radio"
  22.  
  23. # The IP Adress of your Stream
  24. set sc::vars(ip) "149.56.142.99"
  25.  
  26. # The Port on which ShoutCast runs
  27. set sc::vars(port) "8086"
  28.  
  29. # The Password of your Stream
  30. set sc::vars(pass) "dreamfm:istan12"
  31.  
  32. # The MIME encrypted Admin Password of your Stream (you can get it with mIRC by typing //echo -a $encode(admin:dreamfm:istan12,m)
  33. set sc::vars(adpass) "YWRtaW46ZHJlYW1mbTppc3RhbjEy"
  34.  
  35. # The Channels on which the Bot shall react on Commands
  36. set sc::vars(chans) "#dreamfm106"
  37.  
  38. # The Intern Channel to which the Bot sends Wishes and Greets (if send Wishes and Greets to Intern Channel is activated)
  39. set sc::vars(intern) "#help"
  40.  
  41. # The File where the Data shall be stored
  42. set sc::vars(file) "/home/ubuntu/eggdrop/scripts/sc.db"
  43.  
  44. # The Flag required for kicking the Source and un/setting the DJ
  45. set sc::vars(flag) "D"
  46.  
  47. # The Trigger used for Commands
  48. set sc::vars(trigger) "!sc:"
  49.  
  50.  
  51. ### General Settings ###
  52.  
  53. # Enable Public Commands (0 = No | 1 = Yes)
  54. set sc::sets(pub) 1
  55.  
  56. # Enable Message Commands (0 = No | 1 = Yes)
  57. set sc::sets(msg) 1
  58.  
  59. # Reply In Channel (0 = No | 1 = Yes)
  60. set sc::sets(reply) 1
  61.  
  62. # Where to send Wishes and Greets (0 = DJ | 1 = Intern Channel)
  63. set sc::sets(wishgreet) 1
  64.  
  65. # Announce Track Changes (0 = No | 1 = Yes)
  66. set sc::sets(anntrack) 1
  67.  
  68. # Announce Bitrate Changes (0 = No | 1 = Yes)
  69. set sc::sets(annbitrate) 1
  70.  
  71. # Announce Listener Count Changes (0 = No | 1 = Yes)
  72. set sc::sets(annlist) 1
  73.  
  74. # Announce Peak Changes (0 = No | 1 = Yes)
  75. set sc::sets(annpeak) 1
  76.  
  77. # Announce DJ Changes (0 = No | 1 = Yes)
  78. set sc::sets(anndj) 1
  79.  
  80. # Announce when Stream goes on/offline (0 = No | 1 = Yes)
  81. set sc::sets(ann) 1
  82.  
  83. # Advertise Stream (0 = No | 1 = Yes)
  84. set sc::sets(adv) 1
  85.  
  86. # Advertise every X Minutes
  87. set sc::sets(advtime) 15
  88.  
  89. # Change Topic when Stream goes on/offline
  90. set sc::sets(topchg) 1
  91.  
  92. # Change Topic when the DJ Changes
  93. set sc::sets(djtopchg) 1
  94.  
  95. # Change Topic with Q Bot (QuakeNet)
  96. set sc::sets(qtopic) 0
  97.  
  98.  
  99. ### Command and Text Settings ###
  100.  
  101. # In the texts you can use these variables:
  102. # %listeners %peak %max %unique %avgtime %genre %url %title %song %songurl %irc %icq %aim %webhits %streamhits %bitrate %content %version %ip %port %desc %lastsongs %djnick %dj %showname %status
  103.  
  104. # Stream Trigger
  105. set sc::triggers(stream) "stream"
  106. # Text when someone uses the Stream Trigger
  107. set sc::texts(stream) "http://%ip:%port/listen.pls"
  108.  
  109. # Info Trigger
  110. set sc::triggers(info) "info"
  111. # Text when someone uses the Info Trigger
  112. set sc::texts(info) "Stream %ip:%port running ShoutCast v.%version streaming %content. The Listener Peak is %peak (Average Time %avgtime). Stream had %webhits Webhits and %streamhits Streamhits."
  113.  
  114. # DJ Trigger
  115. set sc::triggers(dj) "dj"
  116. # Text when someone uses the DJ Trigger
  117. set sc::texts(dj) "%dj is on the set"
  118.  
  119. # Song Trigger
  120. set sc::triggers(song) "song"
  121. # Text when someone uses the Song Trigger
  122. set sc::texts(song) "Now playing: %song"
  123.  
  124. # Listener Trigger
  125. set sc::triggers(list) "listener"
  126. # Text when someone uses the Listener Trigger
  127. set sc::texts(list) "Stream %ip:%port : %listeners (%unique) of %max listeners"
  128.  
  129. # Peak Trigger
  130. set sc::triggers(peak) "peak"
  131. # Text when someone uses the Peak Trigger
  132. set sc::texts(peak) "Peak: %peak"
  133.  
  134. # Bitrate Trigger
  135. set sc::triggers(bitrate) "bitrate"
  136. # Text when someone uses the Bitrate Trigger
  137. set sc::texts(bitrate) "Bitrate: %bitrate"
  138.  
  139. # Stream Title Trigger
  140. set sc::triggers(title) "title"
  141. # Text when someone uses the Stream Title Trigger
  142. set sc::texts(title) "Title: %title"
  143.  
  144. # Stream Genre Trigger
  145. set sc::triggers(genre) "genre"
  146. # Text when someone uses the Stream Genre Trigger
  147. set sc::texts(genre) "Genre: %genre"
  148.  
  149. # Stream URL Trigger
  150. set sc::triggers(url) "url"
  151. # Text when someone uses the Stream URL Trigger
  152. set sc::texts(url) "URL: %url"
  153.  
  154. # Stream IRC Trigger
  155. set sc::triggers(irc) "irc"
  156. # Text when someone uses the Stream IRC Trigger
  157. set sc::texts(irc) "IRC: %irc"
  158.  
  159. # Stream ICQ Trigger
  160. set sc::triggers(icq) "icq"
  161. # Text when someone uses the Stream ICQ Trigger
  162. set sc::texts(icq) "ICQ: %icq"
  163.  
  164. # Stream AIM Trigger
  165. set sc::triggers(aim) "aim"
  166. # Text when someone uses the Stream AIM Trigger
  167. set sc::texts(aim) "AIM: %aim"
  168.  
  169. # Last Songs Trigger
  170. set sc::triggers(lsongs) "lastsongs"
  171. # Text when someone uses the Last Songs Trigger
  172. set sc::texts(lsongs) "Last Songs: %lastsongs"
  173.  
  174. ### You can remove Commands by deleting or commenting a Trigger and a Text for the Command ###
  175. ### You can also add Commands by setting up a Trigger and a Text for the Command. E.g.: ###
  176. # Homepage Trigger
  177. # set sc::triggers(hp) "hp"
  178. # Text when someone uses the Homepage Trigger
  179. # set sc::texts(hp) "Homepage: www.dreamfm106.com"
  180.  
  181.  
  182. # Help Trigger
  183. set sc::triggers(help) "help"
  184.  
  185. # Wish Trigger
  186. set sc::triggers(wish) "wish"
  187.  
  188. # Greet Trigger
  189. set sc::triggers(greet) "greet"
  190.  
  191. # Kick Trigger
  192. set sc::triggers(kick) "kick"
  193.  
  194. # Set DJ Trigger
  195. set sc::triggers(setdj) "setdj"
  196.  
  197. # Unset DJ Trigger
  198. set sc::triggers(unsetdj) "unsetdj"
  199.  
  200.  
  201. # Text that is advertised (if advertise Stream is activated)
  202. set sc::texts(adv) "tune in @ http://%ip:%port/listen.pls"
  203.  
  204. # Text when Stream goes online (if announce when Stream goes on/offline is activated)
  205. set sc::texts(on) "%desc now %status @ http://%ip:%port/listen.pls with %dj at %bitratekbps"
  206.  
  207. # Text when Stream goes offline (if announce when Stream goes on/offline is activated)
  208. set sc::texts(off) "%title now offline"
  209.  
  210. # Text for the Topic when Stream goes online (if change Topic when Stream goes on/offline is activated)
  211. set sc::texts(ontopic) "%title now online @ http://%ip:%port/listen.pls with %dj at %bitratekbps :: !sc:help for Bot help"
  212.  
  213. # Text for the Topic when Stream goes offline (if change Topic when Stream goes on/offline is activated)
  214. set sc::texts(offtopic) "%title now offline :: !sc:help for Bot help"
  215.  
  216. # Text for the Topic when the DJ changes (if change Topic when DJ changes is activated)
  217. set sc::texts(djtopic) "%title now online @ http://%ip:%port/listen.pls with %dj (%djnick) and his Show %showname at %bitratekbps :: !sc:help for Bot help"
  218.  
  219. # Text when a new Song is playing (if announce when Track changes is activated)
  220. set sc::texts(songchg) "New Track playing: %song"
  221.  
  222. # Text when the Listener Count changes (if announce when Listener Count changes is activated)
  223. set sc::texts(listchg) "There are now %listeners (%unique) of %max people listening"
  224.  
  225. # Text when the Bitrate Changes (if announce when Bitrate changes is activated)
  226. set sc::texts(bitratechg) "Bitrate changed to %bitrate"
  227.  
  228. # Text when the Peak changes (if announce when Peak changes is activated)
  229. set sc::texts(peakchg) "New Peak: %peak"
  230.  
  231. # Text when the DJ changes (if announce when DJ changes is activated)
  232. set sc::texts(djchg) "%dj is now on the set"
  233.  
  234. # Text when Stream is offline and someone uses a Command
  235. set sc::texts(offcmd) "Stream currently offline"
  236.  
  237. ###############################################################################################################################
  238. # END OF CONFIGURATION FOR SC.TCL #
  239. ###############################################################################################################################
  240.