AI Zone Admin Forum Add your forum
list all the previous exchanges
 
 

In ChatScript, is it possible to list all the previous exchanges?

Bot: What’s your name?
Me: I’m Ludan.
Bot: How are you?
Me: I’m fine with ChatScript.
...

I’d like to do list all the sentences, said by the bot and the user, directly in ChatScript.
xxx[1] => Bot: What’s your name?
xxx[2] => I’m Ludan.
etc.

Is there a built-in command? Do I need to parse log files?

 

 
  [ # 1 ]

you can choose to save them yourself, and hence dump them out IF you are doing from the bot. Otherwise the :trim command reads a log file to generate a file of such

 

 
  [ # 2 ]

Thx. I’ll probably do it from the bot, with a popen that launches a :trim, and I’ll retrieve the output.

 

 
  login or register to react