Posted to tcl by Simbaa at Tue Oct 17 17:10:45 GMT 2017view pretty
############################################################################################################################### # # # LoReZ ShoutCast Script v2.1 (sc.tcl) # # Email: lorez@bigvibez.com # # IRC: #bigvibez @ Quakenet # # # # Please contact me if you notice any bugs # # # # Installation: Put the script and the config file into your scripts directory, add "source scripts/sc.tcl" to your eggdrop # # config and rehash the bot. (http package is REQUIRED for this script to work) # # # # ############################################################################################################################### ############################################################################################################################### # START OF CONFIGURATION FOR SC.TCL # ############################################################################################################################### ### Stream Settings ### # A Description for your Stream set sc::vars(desc) "DreamFm106 Radio" # The IP Adress of your Stream set sc::vars(ip) "149.56.142.99" # The Port on which ShoutCast runs set sc::vars(port) "8086" # The Password of your Stream set sc::vars(pass) "dreamfm:istan12" # The MIME encrypted Admin Password of your Stream (you can get it with mIRC by typing //echo -a $encode(admin:dreamfm:istan12,m) set sc::vars(adpass) "YWRtaW46ZHJlYW1mbTppc3RhbjEy" # The Channels on which the Bot shall react on Commands set sc::vars(chans) "#dreamfm106" # The Intern Channel to which the Bot sends Wishes and Greets (if send Wishes and Greets to Intern Channel is activated) set sc::vars(intern) "#help" # The File where the Data shall be stored set sc::vars(file) "/home/ubuntu/eggdrop/scripts/sc.db" # The Flag required for kicking the Source and un/setting the DJ set sc::vars(flag) "D" # The Trigger used for Commands set sc::vars(trigger) "!sc:" ### General Settings ### # Enable Public Commands (0 = No | 1 = Yes) set sc::sets(pub) 1 # Enable Message Commands (0 = No | 1 = Yes) set sc::sets(msg) 1 # Reply In Channel (0 = No | 1 = Yes) set sc::sets(reply) 1 # Where to send Wishes and Greets (0 = DJ | 1 = Intern Channel) set sc::sets(wishgreet) 1 # Announce Track Changes (0 = No | 1 = Yes) set sc::sets(anntrack) 1 # Announce Bitrate Changes (0 = No | 1 = Yes) set sc::sets(annbitrate) 1 # Announce Listener Count Changes (0 = No | 1 = Yes) set sc::sets(annlist) 1 # Announce Peak Changes (0 = No | 1 = Yes) set sc::sets(annpeak) 1 # Announce DJ Changes (0 = No | 1 = Yes) set sc::sets(anndj) 1 # Announce when Stream goes on/offline (0 = No | 1 = Yes) set sc::sets(ann) 1 # Advertise Stream (0 = No | 1 = Yes) set sc::sets(adv) 1 # Advertise every X Minutes set sc::sets(advtime) 15 # Change Topic when Stream goes on/offline set sc::sets(topchg) 1 # Change Topic when the DJ Changes set sc::sets(djtopchg) 1 # Change Topic with Q Bot (QuakeNet) set sc::sets(qtopic) 0 ### Command and Text Settings ### # In the texts you can use these variables: # %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 # Stream Trigger set sc::triggers(stream) "stream" # Text when someone uses the Stream Trigger set sc::texts(stream) "http://%ip:%port/listen.pls" # Info Trigger set sc::triggers(info) "info" # Text when someone uses the Info Trigger 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." # DJ Trigger set sc::triggers(dj) "dj" # Text when someone uses the DJ Trigger set sc::texts(dj) "%dj is on the set" # Song Trigger set sc::triggers(song) "song" # Text when someone uses the Song Trigger set sc::texts(song) "Now playing: %song" # Listener Trigger set sc::triggers(list) "listener" # Text when someone uses the Listener Trigger set sc::texts(list) "Stream %ip:%port : %listeners (%unique) of %max listeners" # Peak Trigger set sc::triggers(peak) "peak" # Text when someone uses the Peak Trigger set sc::texts(peak) "Peak: %peak" # Bitrate Trigger set sc::triggers(bitrate) "bitrate" # Text when someone uses the Bitrate Trigger set sc::texts(bitrate) "Bitrate: %bitrate" # Stream Title Trigger set sc::triggers(title) "title" # Text when someone uses the Stream Title Trigger set sc::texts(title) "Title: %title" # Stream Genre Trigger set sc::triggers(genre) "genre" # Text when someone uses the Stream Genre Trigger set sc::texts(genre) "Genre: %genre" # Stream URL Trigger set sc::triggers(url) "url" # Text when someone uses the Stream URL Trigger set sc::texts(url) "URL: %url" # Stream IRC Trigger set sc::triggers(irc) "irc" # Text when someone uses the Stream IRC Trigger set sc::texts(irc) "IRC: %irc" # Stream ICQ Trigger set sc::triggers(icq) "icq" # Text when someone uses the Stream ICQ Trigger set sc::texts(icq) "ICQ: %icq" # Stream AIM Trigger set sc::triggers(aim) "aim" # Text when someone uses the Stream AIM Trigger set sc::texts(aim) "AIM: %aim" # Last Songs Trigger set sc::triggers(lsongs) "lastsongs" # Text when someone uses the Last Songs Trigger set sc::texts(lsongs) "Last Songs: %lastsongs" ### You can remove Commands by deleting or commenting a Trigger and a Text for the Command ### ### You can also add Commands by setting up a Trigger and a Text for the Command. E.g.: ### # Homepage Trigger # set sc::triggers(hp) "hp" # Text when someone uses the Homepage Trigger # set sc::texts(hp) "Homepage: www.dreamfm106.com" # Help Trigger set sc::triggers(help) "help" # Wish Trigger set sc::triggers(wish) "wish" # Greet Trigger set sc::triggers(greet) "greet" # Kick Trigger set sc::triggers(kick) "kick" # Set DJ Trigger set sc::triggers(setdj) "setdj" # Unset DJ Trigger set sc::triggers(unsetdj) "unsetdj" # Text that is advertised (if advertise Stream is activated) set sc::texts(adv) "tune in @ http://%ip:%port/listen.pls" # Text when Stream goes online (if announce when Stream goes on/offline is activated) set sc::texts(on) "%desc now %status @ http://%ip:%port/listen.pls with %dj at %bitratekbps" # Text when Stream goes offline (if announce when Stream goes on/offline is activated) set sc::texts(off) "%title now offline" # Text for the Topic when Stream goes online (if change Topic when Stream goes on/offline is activated) set sc::texts(ontopic) "%title now online @ http://%ip:%port/listen.pls with %dj at %bitratekbps :: !sc:help for Bot help" # Text for the Topic when Stream goes offline (if change Topic when Stream goes on/offline is activated) set sc::texts(offtopic) "%title now offline :: !sc:help for Bot help" # Text for the Topic when the DJ changes (if change Topic when DJ changes is activated) 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" # Text when a new Song is playing (if announce when Track changes is activated) set sc::texts(songchg) "New Track playing: %song" # Text when the Listener Count changes (if announce when Listener Count changes is activated) set sc::texts(listchg) "There are now %listeners (%unique) of %max people listening" # Text when the Bitrate Changes (if announce when Bitrate changes is activated) set sc::texts(bitratechg) "Bitrate changed to %bitrate" # Text when the Peak changes (if announce when Peak changes is activated) set sc::texts(peakchg) "New Peak: %peak" # Text when the DJ changes (if announce when DJ changes is activated) set sc::texts(djchg) "%dj is now on the set" # Text when Stream is offline and someone uses a Command set sc::texts(offcmd) "Stream currently offline" ############################################################################################################################### # END OF CONFIGURATION FOR SC.TCL # ###############################################################################################################################