SmartBots (SmartBots2Life)

Second Life group direct invitation bots

Contents

Support Managers

Kayamarazaki online
English, Dutch
Rehnaeaislinn online
English
show offline managers
English, German, Japanese, Russian

SBSL Example: IM autoresponder with HTTP

Forwards all instant messages to HTTP script, and replies with its return value

instant_message {
  if $speaker_type==AVATAR
    # forward the event data to the server
    http_query http://www.testurl.com/script.php
 
    # we expect the reply in $httpreply variable
    im $speaker_uuid $httpreply
  endif
}

Comments

This script forwards all messages from alive avatars to your web script. The HTTP reply is being sent back to the avatar.

Script does the $speaker_type==AVATAR check because we don't want to reply to objects or Second Life system messages.

See more for details:

Return back to SBSL examples

Questions, wishes and discussion