BBot
BBot latest version with sample cfg included <BBOT.ZIP> 
For support, try Dalnet #BBot or ICQ 2664622. 
You might need the Winsock 2.0 update <http://www.microsoft.com/windows95/info/ws2.htm> if you are running Windows 95. 
News
For me to see how many are actually using the bot, it will from now on send a message to BBotMaster when starting up. This will also allow me to tell people if they are using an outdated version of the bot. 
Getting started
Start with running the bot with the sample cfg file, to see what it looks like when it's online. This helps understand the format of the cfg file. 
Every received line from battle.net is matched against every line in the cfg file starting with &. The first part of the received line is matched against the first part of the cfg file line. Separators in incoming text are spaces and quotation marks, separator in the cfg file is &. The matching type is a case insensitive substring search. If a match is found, the last part of the cfg file line is evaluated according to the following rules: 
If the first char is a +, keep parsing more lines after this, otherwise, stop parsing after this line. 
If the rest of the line begins with a :, execute a built-in command 
If the rest of the line doesn't begin with a :, send the rest of the line to battle.net, just like when typed into the chat box in Diablo. Before sending the rest of the line, %n is replaced by part n from the incoming line, and %1n is replaced by the text following the substring searched for in part n. 
Built-in commands
Command	Description	
:quit	Makes bot quit	
:reconnect	Makes bot reconnect to the server	
:reload	Makes bot reload the config file without reconnecting. Note: Don't make this a + command, it won't work.	
:countuser	Add user to the user list, with current date and time. Use a /whois command to find the account# of the user. Usable for all incoming lines which have the username as %3, such as 1002 - join, 1004 - talk, 1005 - whisper and many more.	
:usercomment	As countuser, but also set the comment for the user %3 to %15.	
:userlist	Display the user list. The user list is whispered line by line to the username %3. %15 is used to find the maximum number of users to display. Default is 10 users.	
:message	Add a public message %15	
:privatemessage	Add a private message to first word of %15, message is all except first word of %15.	
:getmessages	Get public messages and private messages addressed to user %3.	
:clearin	Clear private messages addressed to user %3.	
:clearout	Clear all messages created by user %3.	
:clearall	Clear all messages.	
:getallmessages	Get all messages.	
If this all sounds confusing, look at the sample cfg, and try the commands in it. If the bot suddenly refuses to start, or gives a GPF, the case is most probably an error in the cfg file. 
