DevPortal

message to group members unwanted

Home Forums Development in general In-world (LSL) development message to group members unwanted

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #330
    GarvinTwine
    Participant

    Hello,
    I want to send on touch a group invite and a message for everyone who is not already in the group.
    Here is how I tested this:

    default {
        touch_start(integer total_number) {
            string params = llDumpList2String([
            "action=" + "invite",
            "apikey=" + llEscapeURL("1234567890abcdef1234567890abcdef12"),  //developers API key
            "secret=" + llEscapeURL("MySecureCode"), // Invite Bot's security code
            "group="  + llEscapeURL("my group"), // Group name 
            "slkey="  + sID, // Avi key to send the invite to
           //"force="   + "1", // Invite group members too
           "message=" + llEscapeURL("join me")], // Send a greeting IM
            "&");
        llHTTPRequest("https://api.mysmartbots.com/api/simple.html",[HTTP_METHOD,"POST",HTTP_VERBOSE_THROTTLE,FALSE],sParams);
        }
    }

    When someone touches who is already in that group, they do not get a new invite, but still get the message, which seems like spam.
    I also tried with “force=0” same result.

    Thanks for your help.

    #331
    Glaznah Gassner
    Keymaster

    Hello Garvin,

    We’ve checked the case you’ve sent, and confirm the problem.
    Working on a fix, will notify you asap!

    #332
    Glaznah Gassner
    Keymaster

    Garvin, please run your code again. The necessary fixes have been done, and pass our tests now.

    #333
    GarvinTwine
    Participant

    Yep, looks more like I would have expected it!
    thanks for a quick fix.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.