You would have to add commands and the functions that would go with them:
$commands["gmsg"][$guild_name][] = &$blah;
$commands["privgroup"][] = &$blah;
function gmsg($name, $group, $msg)
function privgroup($name, $msg)
Then you would have to write a regular expression to match it, which is already done in Bio.php so no big deal.
So you would have code that looks like:
function gmsg($name, $group, $msg)
{
if (preg_match("/<a href=\"itemref:\/\/([0-9]+)\/([0-9]+)\/([0-9]+)\">Solid Clump of Kyr'Ozch Bio-Material<\/a>/i", $msg, $info))
{
$this -> bot -> send_gc($this -> make_bio($info[2], $info[3]));
}
}
function privgroup($name, $msg)
{
if (preg_match("/<a href=\"itemref:\/\/([0-9]+)\/([0-9]+)\/([0-9]+)\">Solid Clump of Kyr'Ozch Bio-Material<\/a>/i", $msg, $info))
{
$this -> bot -> send_gc($this -> make_bio($info[2], $info[3]));
}
}
The downside of doing this is that your bot will not check every line of text sent to guild chat and the private group to see if it is a clump of bio material, instead of only checking lines that start with the command prefix.
Oh, and I have no idea if this will actually work. It's not like I tested it.