This is called when a user joins the community. It passes a user object.


API.on(API.USER_JOIN, listener);


  • Avatar
    Grant Sommer

    In basicBot, when a user joins it says, Welcome back, [USERNAME]
    How do they do that?

  • Avatar
    Brand Ambassador Team

    I'm not exactly a pro at this, but this should work:

    function fancyName(obj){
    API.sendChat('Welcome back, ' + obj.username);
    API.on(API.USER_JOIN, fancyName);


    Beta Tester
    Brand Ambassador

  • Avatar

    It seems like since the addition of guests, this event doesn't always fire. Seems to be when they're in the room as a guest and they login that way, though I've been unable to duplicate that myself.

  • Avatar

    Shouldn't this fire when I change room or is there a room change event ?

Powered by Zendesk