Page 1 of 2

Bot-to-bot Integration

Posted: Sat Feb 12, 2011 8:06 pm
by MattEnloe
I have a bot currently for Minecraft that outputs text like this:

(MCName) messagetext

etc etc

It would be nice to allow the bot to check for any messages by this bot and then subsequently skip that first site of parentheses so it can read commands normally. :)

Re: Bot-to-bot Integration

Posted: Sat Feb 12, 2011 8:14 pm
by Indy
Actually, the bot can already do that.

You would just set RemovePreText (MCName) in your IRC/ServerX section.

Re: Bot-to-bot Integration

Posted: Sat Feb 12, 2011 8:56 pm
by MattEnloe
But it can't identify between different users, unless * is an accepted character and parses correctly.

Re: Bot-to-bot Integration

Posted: Sat Feb 12, 2011 9:19 pm
by Indy
Nope, there would be no way for it to tell the difference between users, they would all be recognized as your bot since he would be the one actually talking.

To make an interface where it could tell the difference between users and have it be able to message them all individually you will need to implement a console interface with the Plugin SDK.

I could probably also implement some type of generic console plugin that could be interacted with over it's own socket or via the bot's remote port; then your bot could relay messages to/from the bot that way.

Re: Bot-to-bot Integration

Posted: Sat Feb 12, 2011 9:20 pm
by MattEnloe
I don't need it to be per-user, I just need it to ignore the user's name.

Re: Bot-to-bot Integration

Posted: Sat Feb 12, 2011 9:20 pm
by MattEnloe
Would you have any interest in coding a plugin written in Java for hmod Minecraft servers? :)

Re: Bot-to-bot Integration

Posted: Sat Feb 12, 2011 9:30 pm
by Indy
Other than a tiny bit of javascript I don't really know anything about java.

Re: Bot-to-bot Integration

Posted: Sat Feb 12, 2011 11:25 pm
by MattEnloe
I assume it would be a lot like the way CraftIRC is built... I'll look into seeing how feasible it is.

Am I able to make it ignore the name, so (*) wouldn't get parsed?

Re: Bot-to-bot Integration

Posted: Sat Feb 12, 2011 11:36 pm
by Indy
It will only do fixed strings, not regex/wildcards. I was thinking originally that (MCName) was like your server name instead of individual nicks for some reason, so RemovePreText probably won't work for you.

Re: Bot-to-bot Integration

Posted: Sun Feb 13, 2011 12:11 am
by MattEnloe
Can you add regex or something? :p