This is a simple bot script.
package simpleBot
{
function serverCmdMessageSent(%client, %text)
{
parent::serverCmdMessageSent(%client, %text);
if(striPos(%text, "Hello world!") != -1) //makes it so that it isn't case sensitive
{
messageAll('',"\c3Bot\c6: Hello!");
}
}
};
activatePackage(simpleBot);
VERY simple and only detects one phrase and has only one response and one name.
To add a name/message to answer simply replace some things and add some lines
$botmessage = "Hello!";
$botname = "Bot";
Would be BEFORE the package.
The messageAll would be replaced with this:
messageAll('',"\c3"@$botname@"\c6: "@$botmessage);
I would go more in-depth about working this with auto-learning, auto-speaking, etc.
But I don't feel that I need to help you, if you can code and have a logical and/or insightful brain.