Old 13th September 2003, 00:11   #1
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
Shoutcast MultiOS IRC Bot

Hi everyone,

i just written an IRC-Bot for Shoutcast in Java (OS-Indepen.)
if anyone intressed please message so i will setup
a download page ...

Features:
- Autom. Topic Change
- Detectes (from YellowPages)
- DJ-Change
- Song-Change
- Stream-Speed-Change
- Server On/Offline
- Full Configurable via conf. File!
- Own Messages

[example config]
NICK=StreamBot
PASS=
StreamInfo = -> stream: http://.......:8889/listen.pls & homepage: http://.......
Channel = #radio..........de
StreamPage = radio..........de
StreamPort = 8889
topicchange = 1
ServOffline = 1,14 «7•1» 4........ Radio1,14 ist 9,14Offline seit %dt 1,14 «7•1» 1,14http://www..........de:8889/listen.pls «7•1»1,14 Wünsche: 9,14Off 1,14 «7•1»! DJ: 4,14------------ 1,14) «7•1» Infos @ 4!stream 1,14 «7•1»!
ServOnline = 1,14 «7•1» 4........ Radio1,14 ist 9,14Online seit %dt 1,14 «7•1» 1,14http://www.........de:8889/listen.pls «7•1»1,14 Wünsche: 9,14Off 1,14 «7•1»! DJ: 4,14%dj 1,14) «7•1» Infos @ 4!stream 1,14 «7•1»!
ServDjchange = 1,14 «7•1» 4........ Radio1,14 ist 9,14Online seit %dt 1,14 «7•1» 1,14http://www..........de:8889/listen.pls «7•1»1,14 Wünsche: 9,14Off 1,14 «7•1»! DJ: 4,14%dj 1,14) «7•1» Infos @ 4!stream 1,14 «7•1»!
ScanInterval = 30
IRCServer = irc.chatirc.de
IRCPort = 6667
SLINE1 = PRIVMSG NickServ :identify xxxxxxxxxxxxx
debug = 0
nowait = 0
RadioOn = ACTION 4,1 Radio is now 9Online4 !
RadioOff = ACTION 4,1 Radio is now 0Offline4 !
DJChange = ACTION 1,0DJ Changed from '2%olddj1' -> '12%dj1'!
DJNew = ACTION 1,0Your DJ is now -> '12%dj1'!
Song = ACTION 12,0 %dj 1is currently playing '5%song1'!14 (Listeners: %clients)
SpeedChange = ACTION 4,1 Warning! Stream speed changed from 12%oldspeed4 kbps to 9%speed4 kbps!




[inaction]

(bot joins)
[02:12:00] <@StreamBot> ThunderLand MultiOS StreamBot Project from Cybergen (v1.0 alpha release) [(c)(r) All rights reserved.]
[02:12:05] * @StreamBot Radio is now Offline !
[02:12:06] * StreamBot changes topic to ' «•» Bloodstain Radio ist Offline seit Sa, 02:12:06 «•» http://www.bloodstain.de:8889/listen.pls «•» Wünsche: Off «•»! DJ: ------------ ) «•» Infos @ !stream «•»!'

(radio goes online)
[02:12:35] * @StreamBot Radio is now Online !
[02:12:36] * @StreamBot Your DJ is now -> 'Deathmaker'!
[02:12:36] * @StreamBot Deathmaker is currently playing 'Bÿhse Onkelz - Kneipenterroristen'! (Listeners: 0)
[02:12:36] * StreamBot changes topic to ' «•» Bloodstain Radio ist Online seit Sa, 02:12:36 «•» http://www.bloodstain.de:8889/listen.pls «•» Wünsche: Off «•»! DJ: Deathmaker ) «•» Infos @ !stream «•»!'

(playing some songs)
[02:13:05] * @StreamBot Deathmaker is currently playing 'Bÿhse Onkelz - Kirche'! (Listeners: 0)
[02:13:35] * @StreamBot Deathmaker is currently playing 'Bÿhse Onkelz - Gehasst Verdammt Vergÿttert'! (Listeners: 0)

.... ....
Dorty is offline   Reply With Quote
Old 13th September 2003, 00:28   #2
aliasjoe
Member
 
Join Date: May 2003
Posts: 59
set up a download page.. please
aliasjoe is offline   Reply With Quote
Old 13th September 2003, 22:26   #3
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
hmm k

will do so ...

newest features:
multisource

means:
1 High-Speed (80 KBPS)
2 Middle-Speed (48 KBPS)
3 Lo-Speed (24 KBPS)

it will collect all listeners from alle sources and ADD them
so (Listeners: %clients) will show the total numbers of listeners
in all speed-streams ..
and it will report if a speed-stream changes

for example you can do this:

Warning: Modem-Speed changed from 24 kbps to 36 kbps
...
Warning: DSL-Speed changed from 80 kbps to 96 kbps
..
Dorty is offline   Reply With Quote
Old 14th September 2003, 06:47   #4
aliasjoe
Member
 
Join Date: May 2003
Posts: 59
Sounds like a great and very usefull tool. Can't wait to check it out.
aliasjoe is offline   Reply With Quote
Old 14th September 2003, 21:00   #5
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
WebPage for Testers

So here it is :| i hope it works really on any system,
oh you need current jave-runtimes thats all ...

http://www.streambot.kickme.to/

start it with
linux like: # java StreamBot
windows like: > java StreamBot

but please modify the config file at first ...
and if you blast it ... check the config and enable
debug mode

I hope there are really a few people using it ...
hope i forgetten nothing.

mfg dorty

for help look on flirtirc.de
for cybergen/wintux/deathmaker/wintux in the main channels.

( you can there also see the bot in action ,) )
Dorty is offline   Reply With Quote
Old 22nd September 2003, 21:02   #6
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
hmpf

bad news (1/1): sorry if uploaded only 1 of 3 files ... :|
good news (1/2): it will get open source ... ,)
good news (2/2): it have only one bug left thats .. if the bot got disconnected from the internet ... it willl die .. but thats no prob. if you install it on an linux server for example you can do an crontab script like something like ...

#!/bin/sh
VAR = 'ps aux | grep StreamBot | grep java' | print ....
if [ $var .... ] then
/usr/java/java-1.4.1_05/bin/java StreamBot > /dev/null
fi
....

more people interessed please mail nope@illegal.de with topic: STREAMBOT
Wont upload the page the nexttime i thin (no time sorry)

.. i've got it now running on an linux server .. works wonderful got no problems with source ... with precompiled CLASS's it sucks,
but at least you need java sdk 1.4.1 ... lower version are definit.
incompatible .. :| sorry but ... i cant rewrite the source for every version exists ...

oh last point performance is great
i (netadmin) flooded the bot with 50 Lines/Second doesnt killed it really *g*
Dorty is offline   Reply With Quote
Old 23rd September 2003, 03:42   #7
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
Ok i fixed the Download ... now is release 2 avaible and its really working [at least with java-1.4.1_05]

heres the link ...

http://www.streambot.kickme.to/
Dorty is offline   Reply With Quote
Old 24th September 2003, 00:25   #8
aliasjoe
Member
 
Join Date: May 2003
Posts: 59
Many IRC bots lack the feature to add or detect stream relays and only show information for one stream. Any ways you can implement this feature into a future release, and if so, when? Thanks!

Oh yea, help files on how to use your software would be helpful
aliasjoe is offline   Reply With Quote
Old 24th September 2003, 00:40   #9
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
Multi-Sourcing :)

Multi-Sourcing is already integraded. (at the moment staticly 3 streams only support ... if more sources are need just mail but ... ok ... if so .. it is so... )

Example Radio.Bloodstain:

Stream 1: Modem(48 KBPS)
Stream 2: Broadband(Not ever avaible)

ConfigLines:
StreamPage = radio.bloodstain.de
StreamPort = 8889
Stream2Page = radio.bloodstain.de
Stream2Port = 8899

How it works :
The Bot scans Stream(1) for Song, DJ-Changes, Speed-Changes
if Stream2 is also avaible(and conf'd) it will also react
on this stream if there is a Stream-Speed change and it will
also count the Listerns of this Stream to the total count

so if you have 5 listerens on low-band
and 12 listerens on high-band it will show 17 Clients in total.
(undocumentat feature you can also conf something like (Low:%clients1/High:%clients2/Total:%clients/Max:32) result would be
->
.. (Low:5/High:12/Total:17/Max:32) ..



i will create an documentation of nearly all features next few days...
and i will also start docu. software progress on the homepage.

MfG Cybergen
Dorty is offline   Reply With Quote
Old 24th September 2003, 01:58   #10
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
*puhhh*

k finished writing a new documentation ... think it should help enough .. for feature-release's it will also get updated ...

current release: 4

state of art:
- stays connected except the state of the shoutcast server
- config file must be in Windows-Format (CR+LF)
- supports 1 MainStream and 2 Secondary Streams
- Autom. detects DJ, Song & Speed changes
- allow topic changes (if bot have chanop)

upcoming features:
- substitutes for COLOR BOLD UNDERLINE
- more channel commands
- ^ in order to allow this the bot need an flood protection
- more dynamic variable
- Configuration Create Utilitie
- Little CronScript to check bot state
- better bugfix infos on the homepage

yours cybergen @ http://www.streambot.kickme.to
Dorty is offline   Reply With Quote
Old 26th September 2003, 18:08   #11
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
Release 6

Today i release ZIP'6

Current features:
!lastplayed (shows last 5 played songs in order)
&
!die [diepassword]

further !lastplayed & !stream only works in channel
(so noone can flood it away if there is a channelprot. bot)
and !die only works in Privat-Query

Mfg Cyb.
Dorty is offline   Reply With Quote
Old 26th September 2003, 22:40   #12
aliasjoe
Member
 
Join Date: May 2003
Posts: 59
This bot is awesome! I love how you put so much hard work into it to make it the best! Thanks! See about making it an option for the user to let it display information either in channel or query windows like DCC servers... thanks again!
aliasjoe is offline   Reply With Quote
Old 26th September 2003, 22:56   #13
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
:)

thx much i find i great the so many people already use it

hmm i know something like an INFO-Shell via DCC or equivalent would be usefull ... we will see how i can realise that ...


MfG Cyb.
Dorty is offline   Reply With Quote
Old 28th September 2003, 14:57   #14
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
Sorry kickme.to and has.it servers are down so the new url is:

www.streambot.de.vu


mfg Cyb.
Dorty is offline   Reply With Quote
Old 29th September 2003, 01:19   #15
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
Release 7

Puhhhhh really hard but its done
release 7 shakes the earth.
thank to the little-floodprotection, now more irc-commands are possible

whats new:
Channel Commands
- !dj
- !song
- !homepage !www
- !listeneres !listeners
- !listen (same as !stream)
- !peak
- !lastsong (same as !lastplayed)
Querie Commands
- !die
- !say [annocuncmentpass] :[message]
^^^^ Now you can make the bot say something.
Configuration-File
- Includes now comments

whats next?
- more irc-commands
- ane much more you imagine i hope

visit http://www.streambot.de.vu or try http://www.streambot.kickme.to (if they have their servers up again)

MfG Cyb.
and everybody a nice night ,)
gg its now 03:29am and its already monday so i will go to bed and hope someone of the many visitors *g* really download the stuff ,)
ps: i personally think release 7 is the best release til now
will upload it in 4mins. on the gentoo-server and let it run

so far ..
Dorty is offline   Reply With Quote
Old 29th September 2003, 02:01   #16
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
got a few bugs in release 7 *g* they are now all killed i think ... (a few nullpointer bugs, and a configreadin bug .. harmless ,)

remember please: config have to be in CR+LF

all 4 the music nothing for us

gn8 friends (think i can sleep now pretty well :P)
Dorty is offline   Reply With Quote
Old 29th September 2003, 15:32   #17
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
in release 7 is a bug please download 7.1
(in 7 the bot wont count the users on the mainstream)
Dorty is offline   Reply With Quote
Old 29th September 2003, 22:02   #18
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
Release 7.2

a few little bugs in release 7.1 the bot's main-thread crash's when a user call a parameter-command (now solved in 7.2)

the bot runs now more stabile please dont use older versions !!!
Dorty is offline   Reply With Quote
Old 1st October 2003, 20:53   #19
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
*hmm* does anyone use this software ? *g*
300 times people read this thread and i got 100 visitors on the homepage but only 3 times someone mail'd me *g* ...
so i dont think theres anywhere someone using it .. :|
so we do a game *g* if there are more than 10 postings from diffrent people i will continue developing, if not i will stop it and just use it for my private web-radio without any homepage or more postings. [its my time i spend but i wont spend it if no one use it ,)]
Dorty is offline   Reply With Quote
Old 3rd October 2003, 01:44   #20
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
Mode People ask Installation Help!!

Here a little help for the moment:

Local-Windows-Installation-Example:

if you haven't installed Java2-1.4.1-Runtimes or SDK go to
http://java.sun.com/j2se/1.4.1/download.html
and download in Section
"Download J2SE v 1.4.1_05"
-> "Windows (all languages, including English)"
-> "JRE" (Java Runtime Env.)

after downloading install it to a simple directory like
c:\j2
after that search in there for the java.exe (there should be only one)

download and unzip the latest version of the StreamBot to a directory like:
c:\bot ...or something else ...
TIP: Unzip the Bot into the directory where the Java.exe isin
TIP: So you have much lesser problems if you have no plan what your doing
use NotePad to edit the Configuration-File (StreamBot.conf)
after that

press <start> -> <run> -> "cmd" or "command" -> <ok>
now a Command-Shell-Window will spawn.

move to the Bot directory ...
like:

c:
cd \bot
\j2\bin\java StreamBot << or where ever the Java.exe is in
Now the bot should start!
if not please enable debugmode (debug = 1) in the StreamBot.conf
and Post it here or send it to my via mail nope@illegal.de

Note 1: "java StreamBot" is case Sensetiv!!!
Note 2: StreamBot.conf must be in CR+LF so dont use Linux-Editors
Note 3: If "java StreamBot" doesnt work check the if you use the right directory java is in.
Dorty is offline   Reply With Quote
Old 3rd October 2003, 05:15   #21
cloud^77
Junior Member
 
cloud^77's Avatar
 
Join Date: Oct 2003
Posts: 10
Can this be run as an eggdrop? I mean by using shell account and it requires it to be in *.tcl format. If it can, that would be nice.
cloud^77 is offline   Reply With Quote
Old 3rd October 2003, 12:56   #22
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
hehe

no you cant use it with the TCL/EGGDROP-System cause its a Java and not a TCL-Software ... but its created to be used as something like an Eggdrop.
I for example have this bot running on the radioserver as an backgroundtask (so you see the bot is quite stable) ...
and thats what it originally was created for ..
if you use it as some ofter people only local on your windows machine it will surely also work ...

The reasons why i dont used TCL is:
1. i dont like tcl
3. i liked to refresh my java knowledges
4. on startup it wasnt planed to make it public
5. Java is more flexible than TCL
...

in the end is the only probleme that a normal Eggdrop shell dont have an java2-envoirment but there are many people who have root on their radioserver or have just a vserver with root or and user-account with an java env. so i think java isnt a so bad choice .. instead of tcl i can do much more things ... creating complete webservers .... and so on ...

MfG Cyb.
Dorty is offline   Reply With Quote
Old 6th October 2003, 14:19   #23
cloud^77
Junior Member
 
cloud^77's Avatar
 
Join Date: Oct 2003
Posts: 10
But with eggdrop, we can run it 24 hours as long as we have shell account. I think it is easier.
cloud^77 is offline   Reply With Quote
Old 6th October 2003, 15:57   #24
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
*ggg*

sure if you just have an eggdrop-shell-account perhaps you need an eggdrop bot
but if you have an radio-server you surly can install java and than the bot also runs 24h/7 [and it does it already on my server...but i will no-one force to use it *beg*]
Dorty is offline   Reply With Quote
Old 6th October 2003, 18:46   #25
Vchat20
Major Dude
 
Vchat20's Avatar
 
Join Date: Aug 2002
Posts: 1,273
can you explain this error? :
code:
Exception in thread "main" java.lang.NoClassDefFoundError: streambot/class
Vchat20 is offline   Reply With Quote
Old 6th October 2003, 18:58   #26
Synt
Junior Member
 
Join Date: Oct 2003
Posts: 2
probobly cus u didn't type in the filename correctly
like
java streambot

when it's 2 upper case letters

java StreamBot
Synt is offline   Reply With Quote
Old 6th October 2003, 19:13   #27
Vchat20
Major Dude
 
Vchat20's Avatar
 
Join Date: Aug 2002
Posts: 1,273
code:
Exception in thread "main" java.lang.NoClassDefFoundError: StreamBot


help plz.
Vchat20 is offline   Reply With Quote
Old 6th October 2003, 19:34   #28
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
hmm havent seen that line for a long time ...
are you sure your using Java2-1.4.1 and typing
"java Streambot" ... the bot is now running on many systems so the only possiblity is that you use an extremly old release .. ?!

i also downloaded and installed the current release on a fresh system worked as aspected ... no problems so far .. perhaps we can meet on IRC if you send me some server-data's nope@illegal.de (have time again at friday ...)
Dorty is offline   Reply With Quote
Old 6th October 2003, 19:38   #29
Vchat20
Major Dude
 
Vchat20's Avatar
 
Join Date: Aug 2002
Posts: 1,273
1.4.2_01

look me up on vchat.techin.net under #pokeradio
Vchat20 is offline   Reply With Quote
Old 6th October 2003, 21:26   #30
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
i've upgraded to 1.4.2 ... no problems ... works as aspected.
as i said perhaps an really old release ?
Dorty is offline   Reply With Quote
Old 6th October 2003, 21:29   #31
Vchat20
Major Dude
 
Vchat20's Avatar
 
Join Date: Aug 2002
Posts: 1,273
nope. got this as an automatic install while trying to run applets on my XP machine. id say this was about a month back or so.
Vchat20 is offline   Reply With Quote
Old 6th October 2003, 21:44   #32
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
noooooooooo...

no i dont talk about java i talk about the bot ... i think its not the latest release ... (7.2)
Dorty is offline   Reply With Quote
Old 6th October 2003, 21:45   #33
Vchat20
Major Dude
 
Vchat20's Avatar
 
Join Date: Aug 2002
Posts: 1,273
I just downloaded it today. latest stable release (7.2)
Vchat20 is offline   Reply With Quote
Old 6th October 2003, 21:54   #34
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
we should meet on irc i think irc.chatirc.de @ #cybergen (on your server theres nobody ..)
Dorty is offline   Reply With Quote
Old 7th October 2003, 06:20   #35
cloud^77
Junior Member
 
cloud^77's Avatar
 
Join Date: Oct 2003
Posts: 10
Yeah, I have shell account. The server is not ran by me, it is owned by my friend. And I don't know where he hosted it.
Anyway, I like your script...hhahah..
cloud^77 is offline   Reply With Quote
Old 11th October 2003, 11:44   #36
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
Some little Bug Fix in Release 7.2
The Bot crashs if an IRC-Server sends an Empty message ?!
however if neverseen an irc-server making such an shit but ok ...
the bot will now only react on messages with content *g* ...
so Release 7.3 if now avaible ..
Dorty is offline   Reply With Quote
Old 14th October 2003, 08:11   #37
Synt
Junior Member
 
Join Date: Oct 2003
Posts: 2
Umm 7.3 can't be found on the website.
Synt is offline   Reply With Quote
Old 14th October 2003, 10:54   #38
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
hmmm your right i ... now its there ...
Dorty is offline   Reply With Quote
Old 14th October 2003, 11:03   #39
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
Hey everyone please Note:
- StreamBot.conf in Windows-Format
- /.../.../java StreamBot < S and B have to be in Uppercase the rest in lowercase
- in StreamBot.conf the line StreamPage means the Hostname oder IP of the Shoutcast Server dont enter stuff like: 123.123.123.123/played.htm
the thing it wants is just 123.123.123.123 not and files or paths
its just the domain/ip where the bot can connnect to your Radio-Server
not any html file
- in current release (7.3) it is not allowed to remark lines in the Conf. File except Stream?Page lines ... otherwise the Bot will crash i think.
(someguys tryed this way to disabled the timer message, if you want this too please wait for the n3xt version.)
Dorty is offline   Reply With Quote
Old 14th October 2003, 16:56   #40
Dorty
Member
 
Join Date: Sep 2003
Posts: 88
StreamBot Release 8.0

StreamBot Release 8.0 is now avaible

Features:
- Fantasy Commands you can Specify (Max. 999)
- Enable/Disable Song-Change Message
- Enable/Disable Fixed Software Triggers

So now everthing is possible from

[18:36:04] <cybergen|^AWAY^> !beer
[18:36:04] * [StreamBot] gives cybergen|^AWAY^ a beer.
[18:36:06] <cybergen|^AWAY^> *thx*

till some ill stuff like

[18:27:35] <cybergen|^AWAY^> !vino_to Karsten
[18:27:35] * [StreamBot] gives Karsten a glass vino.

but uhh dont make it a nude bot and create such commands like
<censored>
*gggggg*
;))))

much fun with it
Dorty is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump