AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Assign directory name using chatscript
 
 

Hello guys ! I am new to Chat Script, and am trying to make my bot assign specified name of dir by user. Seems like it is possible but I am far away from being familiar to the syntax.
The example below will explain what i mean:

t: (create [file directory] _*) ^keep() ^repeat() popen( “mkdir ‘_0’” ‘^myfunc)

When i say create file or directory fileName123 i would like it to create dir with specified name.
I am not sure how to apply Chat Script syntax to the system command so it would be readable, for now every directory is called “_0”.

Anyone would be able to tell me if it is possible to do it ?

I am using Linux Fedora.

Thanks in Advance !
Bart

 

 
  login or register to react