Bot0 3.1

Category / Domain : Bots
SCOL Voy@ger Compatibility : V 3.5 or above
Update : 2001/05

Function

The BOT0 module is a programme robot (an agent) : it will operate following orders entered by the user in the COLORTERM module . Numerous automatic commands can be added by mean of events in the Bot0 interface.

If these commands require a specific internal processing in the module, the "sbot0.pkg" file must be modified to insert the data processing in SCOL language there as it is made by origin for the following commands : "foo", "time" and "square". (See the SCOL tutorial for more details)

If such is not the case, that is to say that the only purpose of the command is to start an event, the code does not need to be modified.

Configuration


Figure 1 : Bot0 module interface

(1) : Ajouter => Adds an event. Opens the window allowing to enter the name of a new command :

(2) : Retirer => Deletes the selected event or command.

Implementation

Open the SCS creation tree, select the Bot folder and double-click on Bot0 3.1.
Create required links for the project.

Action Function
module.event à Bot0.register Registers the user in the BOT0 module. The user is then taken into account by the module. This can be linked with the "in" event the C3D3.
module.event à Bot0.unregister Unregisters an user in the Bot0 module. The user is not longer taken into account by the module. This can be linked with the event "out" of the C3D3.
module.event à Bot0. !hear BOT0 is waiting for any command entered by a user. NB : this action must be linked to the C3D3.spy event of the C3D3 module.

Event Function
Bot0.broadMsg à module Action An action is generated each time a message is sent to all users. These events pass on as parameter the aforementioned message. They can be thus typically linked with the actions of the same name of the module COLORTERM.
Bot0.privateMsg à module Action Sending a message to a specific user generates an action. These events pass on as parameter the aforementioned message. They can be thus typically connected with the actions of the same name of the module COLORTERM.
Bot0.message x à module Action Sending the message x generates an action.

Area Function Interface Assignment
None