View unanswered posts | View active topics It is currently Tue Oct 16, 2018 3:54 am



Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
 Bot-to-bot Integration 
Author Message
Member

Joined: Sat Oct 16, 2010 10:40 am
Posts: 51
Medals: 28
RadioBot Owner (1) Feature Requester (19)
Longevity (8)
Post Bot-to-bot Integration
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. :)


Sat Feb 12, 2011 9:06 pm
Profile
Site Admin
User avatar

Joined: Thu Oct 16, 2008 1:58 pm
Posts: 452
Medals: 18
Administrator (1) Plugin Developer (1)
RadioBot Owner (1) Helper (1)
Longevity (14)
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Post Re: Bot-to-bot Integration
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.


Sat Feb 12, 2011 9:14 pm
Profile YIM WWW
Member

Joined: Sat Oct 16, 2010 10:40 am
Posts: 51
Medals: 28
RadioBot Owner (1) Feature Requester (19)
Longevity (8)
Post Re: Bot-to-bot Integration
But it can't identify between different users, unless * is an accepted character and parses correctly.


Sat Feb 12, 2011 9:56 pm
Profile
Site Admin
User avatar

Joined: Thu Oct 16, 2008 1:58 pm
Posts: 452
Medals: 18
Administrator (1) Plugin Developer (1)
RadioBot Owner (1) Helper (1)
Longevity (14)
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Post 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.

_________________
You can also contact me via email or instant messenger, links are at the bottom of this post.


Sat Feb 12, 2011 10:19 pm
Profile YIM WWW
Member

Joined: Sat Oct 16, 2010 10:40 am
Posts: 51
Medals: 28
RadioBot Owner (1) Feature Requester (19)
Longevity (8)
Post Re: Bot-to-bot Integration
I don't need it to be per-user, I just need it to ignore the user's name.


Sat Feb 12, 2011 10:20 pm
Profile
Member

Joined: Sat Oct 16, 2010 10:40 am
Posts: 51
Medals: 28
RadioBot Owner (1) Feature Requester (19)
Longevity (8)
Post Re: Bot-to-bot Integration
Would you have any interest in coding a plugin written in Java for hmod Minecraft servers? :)


Sat Feb 12, 2011 10:20 pm
Profile
Site Admin
User avatar

Joined: Thu Oct 16, 2008 1:58 pm
Posts: 452
Medals: 18
Administrator (1) Plugin Developer (1)
RadioBot Owner (1) Helper (1)
Longevity (14)
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Post 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.


Sat Feb 12, 2011 10:30 pm
Profile YIM WWW
Member

Joined: Sat Oct 16, 2010 10:40 am
Posts: 51
Medals: 28
RadioBot Owner (1) Feature Requester (19)
Longevity (8)
Post 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?


Sun Feb 13, 2011 12:25 am
Profile
Site Admin
User avatar

Joined: Thu Oct 16, 2008 1:58 pm
Posts: 452
Medals: 18
Administrator (1) Plugin Developer (1)
RadioBot Owner (1) Helper (1)
Longevity (14)
IRCBot Version I Use: v5
IRCBot Platform: Linux/Ubuntu
Post 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.


Sun Feb 13, 2011 12:36 am
Profile YIM WWW
Member

Joined: Sat Oct 16, 2010 10:40 am
Posts: 51
Medals: 28
RadioBot Owner (1) Feature Requester (19)
Longevity (8)
Post Re: Bot-to-bot Integration
Can you add regex or something? :p


Sun Feb 13, 2011 1:11 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.