SUPPORT  :  NEBULAE MULTIUSER SERVER TECHNOTES :  NS002
 

Server Side Script Sample: ChatBot Script

 

This is a simple script that collects posts and sends a reply to @AllUsers. The sample shows how a server side script object can join a movie and a group, showing as a connected user to other users of the server.

Compiling this file will generate two Java Classes: ChatBotScript.class and PostDelay.class. Both should be put in a directory listed in the classpath when Nebulae is initialized, in order to be loaded by the Java Virtual Machine.

You should also configure the Scriptmap.cfg file to associate the ChatBotScript class with a movie name on your server, for example:


CHAT = ChatBotScript


Download ChatBotScript.java source code


You may utilize this source file to create and compile object code for use within products you may create. THIS CODE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.

 

 ID: PRODUCT: PLATFORM: VERSION: KEYWORDS: LAST UPDATED: AREA:
 NS002 Nebulae MultiUser Server All 1.1 Server Side Script Chatbot January 25, 2002 Nebulae