Jump to content
UBot Underground

How to check whether a keyword report has been run or not


Recommended Posts

I'm trying to take my programming with ubot to the next level.

 

This is where i am at (not far I am sure)

 

Scenario:

 

User enters a keyword into a text box and runs the script.

This keyword is saved into a text file (keyword one per line)

 

User then repeats the above.

 

The ubot reads the text file that contains the keyword from the first run. Then adds the new keyword to the list and this then gets saved off.

 

Consequently, the text file after 5 runs would look something like this. (my keywords)

 

cars

toys

dogs

people

houses

 

Now what I want to do.

 

I want to set an If command up that will do the following.

 

When the user runs the script, ubot will check to see if the keyword is already present in the list. If it is, it will stop the script. If it isn't it will run.

 

As the values in the text file might be many. How can I get ubot to cycle through the values to see whether the keyword has been run before or not. Is this going to be achieved with a While command?

 

Any help with the logic would be most appreciated.

 

Ninjaman.

Link to post
Share on other sites

this has come up a lot lately, so I'll probably just add a qualifier for this purpose.

 

 

Great to hear you will be adding this soon, because I need this for many things.

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...