Jump to content
UBot Underground

Issue Running a Bot From Within Main Bot


Recommended Posts

Ok, can anyone give me a hand with calling this bot from inside a main bot (using UBot 3.5)?

 

The bot being called (the second bot) is searching and replacing a number of words in an article (which has already been opened within the main bot), and then the amended article needs to be sent from the second "word replacer" bot back to the main bot once it's done. I've been looking for how to do this properly and can't seem to get it to work right!

 

I can make it work fine within a sub in the same bot, it's just when it comes to seperating it out into a seperate bot that I'm getting stuck.

 

...

 

Here's an example of a simple main bot and replace bot I've had working fine...

 

Main bot:

http://screencast.com/t/HjaYuCgcLk2

 

Replacer bot:

http://screencast.com/t/d4eBFMiEvg

 

Now, I've tried to do the same process to create a little more complex 'replacer' bot and it doesn't seem to work...here's the screenshot/ubot file of the bots I am working with for these...

 

Main bot:

http://screencast.com/t/XwIr6mVid3

 

'Replace bot.ubot' attached to see below.

 

 

==========================

The article.txt file used for this pair of bots contains the following text:

 

"It {should|ought to|needs to} be {free|totally free|free of charge} for those who {need|require|want} it. That would be {excellent|outstanding|superb}!"

 

The 'content-find.txt' file contains the following list:

 

{free|totally free|free of charge}

{need|require|want}

{excellent|outstanding|superb}

{should|ought to|needs to}

 

The 'content-replace.txt' file contains the following list:

 

{free|totally free}

need

{excellent|outstanding}

should

==========================

 

I'm probably making a stupid mistake by omitting something simple, but can't work it out at the moment!

 

If anyone could help it would be greatly appreciated!

 

Thanks :)

Kieren

replace bot.ubot

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...