HL-Bot made by Daniel Astbury

Hi, thanks for testing this for me.

just put make sure all files in zip are in one folder. edit config.cfg.

fds_path = path to fds folder with *nO* trailing slash eg C:\Westwood\RenegadeFDS\Server
auto_secs = this is the number of seconds to wait till the next auto announce
Note: if this is set to somthing other than a number it wil probably crash the bot

edit rules.txt for the command !rules
edit auto.txt for the autoannounce 1 line = an announcement.


if you type in public chat "hi, hey" or "hello" the bot will reply to this.


Thanks to Cat998 for helping me get the UDP socket open and get threads woring.

now, you can add your own sounds! but at the moment the names will not appere in the !sounds
command. just edit sounds.txt and put on a new line your_sound = your_sound_in_always.dat.wav

edit rules.txt for the rules of a server, will ignore new lines so if you do:

this is the

server rules

when you type !rules, the bot will reply with "this is the"

Be carful when some files from this zip atre missing the program will crash.

plugin support is finaly here! and it is easy to create a plugin your self!
1) open up a dll project.
2) create a function in the form "const char * dllparse(char * message)"
3) in your stdafx.h add a prototype in the form:

extern "C" __declspec(dllexport)
{
	const char * dllparse(char * message);
}

4) go back to the other function you created and make sure it always returns a const char *
and your off! just add some code to that function. 

my bot wil send to the fds what ever your function return unless it returns "" remeber,
if you return "msg hello" you function will be called with "msg hello" if this is 
not ignored the program will go into an infinite loop!
