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.
Bot-to-bot Integration
Author
Message
- Indy
- 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
Actually, the bot can already do that.
You would just set RemovePreText (MCName) in your IRC/ServerX section.
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
But it can't identify between different users, unless * is an accepted character and parses correctly.
- Indy
- 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
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.
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
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
Would you have any interest in coding a plugin written in Java for hmod Minecraft servers?
- Indy
- 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
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
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?
Am I able to make it ignore the name, so (*) wouldn't get parsed?
- Indy
- 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
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
Can you add regex or something? :p