Bot-to-bot Integration

Author
Message
MattEnloe
Offline
Member
Posts: 51
Joined: Sat Oct 16, 2010 10:40 am

Bot-to-bot Integration

Post 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. :)

Indy
User avatar
Offline
Site Admin
Posts: 465
Joined: Thu Oct 16, 2008 1:58 pm
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Contact:

Re: Bot-to-bot Integration

Post by Indy »

Actually, the bot can already do that.

You would just set RemovePreText (MCName) in your IRC/ServerX section.
You can also contact me via email or instant messenger, links are at the bottom of this post.

MattEnloe
Offline
Member
Posts: 51
Joined: Sat Oct 16, 2010 10:40 am

Re: Bot-to-bot Integration

Post by MattEnloe »

But it can't identify between different users, unless * is an accepted character and parses correctly.

Indy
User avatar
Offline
Site Admin
Posts: 465
Joined: Thu Oct 16, 2008 1:58 pm
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Contact:

Re: Bot-to-bot Integration

Post 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.
You can also contact me via email or instant messenger, links are at the bottom of this post.

MattEnloe
Offline
Member
Posts: 51
Joined: Sat Oct 16, 2010 10:40 am

Re: Bot-to-bot Integration

Post by MattEnloe »

I don't need it to be per-user, I just need it to ignore the user's name.

MattEnloe
Offline
Member
Posts: 51
Joined: Sat Oct 16, 2010 10:40 am

Re: Bot-to-bot Integration

Post by MattEnloe »

Would you have any interest in coding a plugin written in Java for hmod Minecraft servers? :)

Indy
User avatar
Offline
Site Admin
Posts: 465
Joined: Thu Oct 16, 2008 1:58 pm
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Contact:

Re: Bot-to-bot Integration

Post by Indy »

Other than a tiny bit of javascript I don't really know anything about java.
You can also contact me via email or instant messenger, links are at the bottom of this post.

MattEnloe
Offline
Member
Posts: 51
Joined: Sat Oct 16, 2010 10:40 am

Re: Bot-to-bot Integration

Post 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?

Indy
User avatar
Offline
Site Admin
Posts: 465
Joined: Thu Oct 16, 2008 1:58 pm
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Contact:

Re: Bot-to-bot Integration

Post 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.
You can also contact me via email or instant messenger, links are at the bottom of this post.

MattEnloe
Offline
Member
Posts: 51
Joined: Sat Oct 16, 2010 10:40 am

Re: Bot-to-bot Integration

Post by MattEnloe »

Can you add regex or something? :p

Post Reply