Save hits


How to make such a way to save the results?

The most difficult thing for me is to create a folder with the time in the name

Sorry for my translator (

I think the only way would be to have it in the config itself.

Utilities → Files → Append file

As for the date/time, there are a few ways you can grab todays date. Afew off the top of my head would be

  1. Unix time to normal time
  2. Using C#/JS/Python to get todays date
  3. Parsing a header and trimming it down
    etc

Can I create a folder when I click the “start” button? Otherwise, every good result creates a new folder with the time in the name

I was thinking you could just use the date and not time but if you want time as well then you could maybe have a txt file with what you want as the folder name and have it read the file and use it in the path

Was just thinking, you can use custom input and that way it will prompt you when you start the config.

You can enter whatever you want and use that as the folder name

Is there an example?

1 Like

can I save bad (fails) results to a file?

You would need to edit the config itself in order to do that, just add a file append block

Does this only work for hits ? Can I save fails ?

Yes you can save whatever you want

1 Like

Very difficult for me (
How do I save the “Fails” result if the bot is stopped ?

Config settings > Add “FAIL” to “statuses for which the bot should continue”. So it will not stop after fail and you can save to a file with a block.

1 Like
>> Parse (ParseBetweenStrings) <<

Parsed value: 

>> Создание папки по названию проекта (CreatePath) <<

The path Github was created

>> Папка с даттой (CreatePath) <<

The path Github\2021-10-14 was created

>> Результат (ЛОГ) (FileAppendLines) <<

Appended lines to Github\2021-10-14\Result.txt

BOT ENDED AFTER 2612 ms WITH STATUS: FAIL

In this case, the bot writes data to my hits file. I want the Failures to be saved in a separate file , is this not possible ?

I am ready to make a donation for solving my problem

Your answer is above. Ruri told you:

Config settings > Add “FAIL” to “statuses for which the bot should continue”. So it will not stop after fail and you can save to a file with a block.

Right now your bot STOP when it hit FAIL.
You can change that in the config settings.

It will continue after FAIL, and you add a block that save user:pass in Fail.txt file

In this case, the bot saves both files

I think you would need to include the GOOD results inside IF > ELSE in lolicode.

Logic:

IF source contains success key
Keycheck GOOD
Save to good
ELSE

Fail > save to fail

Something like that :

IF BLOCK:Keycheck
// SUCCESS STUFF HERE
  KEYCHAIN SUCCESS OR
    STRINGKEY @data.SOURCE Contains "HITKEY"
ENDBLOCK

BLOCK:FileAppend
  path = "/github/date"
  content = $"input.USER"
ENDBLOCK

ELSE
// FAIL STUFF HERE
KEYCHAIN FAIL OR
    BLOCK:Keycheck
  KEYCHAIN FAIL OR
    STRINGKEY @data.SOURCE Contains "failkey"
ENDBLOCK
BLOCK:FileAppend
  path = "/github/date"
  content = $"input.USER"
ENDBLOCK
END

I think something like that should work. Let me know

1 Like

The idea is good but the code is not. You cannot use a block as an IF condition.
@RussianUser add this to only write to the file if it’s a FAIL.

IF STRINGKEY @data.STATUS EqualTo "FAIL"

BLOCK:FileAppend
  path = "file.txt"
  content = @input.USER
ENDBLOCK

END
2 Likes

Good to know thank you !

1 Like