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

How to pass in a build command on server startup
 
 

Hi guys,
I run two CS servers concurrently on one machine. I am looking to have the servers start automatically and build the correct bots on the correct ports when the machine boots. Do any of you know if there is there a way to pass in which bot I would like to build as I pass in the client and fact limit when starting each server?

 

 
  [ # 1 ]

You can either write a script file you launch which does this:
ChatScript local build0=Harry
ChatScript

which does a build and exits then runs the server
Or you can do the equivalent by creating a file myfile.txt with
:build Harry
and doing
ChatScript source=myfile.txt
which causes server to start up, execute data from the source file, which does a build and then restarts the server

 

 
  login or register to react