|
ChatBot: a server-side script
The chatBot.ls script is a simple example that acts as a remote chat participant. This allows a single user to connect to the server and have a conversation with the chat bot when no other real users are connected to the Shockwave Multiuser Server. The script is easy to understand and provides a useful example of server-side scripting in action.
By adding the chatLogger.ls file to the Multiuser Server's Scripts folder and adding a reference to it to the server's ScriptMap.ls file, you can enable chat sessions when only one live user is connected to the server.
Download the Windows source file chat_bot.zip (5KB)
Download the Macintosh source file chat_bot.sea.hqx (6KB)
- Referencing chatBot.ls in the ScriptMap.ls file
- Understanding the chatBot.ls script
 |
 |
Jay Armstrong
Jay has worked with Director since version 4, including roles in Technical Support, Quality Assurance, and Instructional Media. He has written documentation for Director versions 8, 8.5, and MX.
|
|
 |
23 May 2001 |
|
 |
multiuser, server, chat, server-side, script |
|
 |
9804 |
 |
 |
|
|