Contents

Support Managers

Aerielle Kiyori
English
online
Kaitlynn Rizzo
English
online
Xartashah
English
online
show offline managers  
English, Hindi, 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