You probably need to edit "getMiniGameFromObject(%obj)" so that it returns the proper minigame for a bot.
For instance, if you had an AIPlayer with the property "owner", you would need it to do something like..
function getMiniGameFromObject(%obj)
{
if(isObject(%obj.parent))
return %obj.parent.minigame;
else
return parent::getMiniGameFromObject(%obj);
}
That's only pseudo-code. You'll need to edit it yourself to fit your needs.