Event: USER_JOIN

Follow

Comments

4 comments

  • 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);


    Cheers!

    Beta Tester
    Brand Ambassador

  • Avatar
    ImGrumpy

    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
    MIxxx

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

Please sign in to leave a comment.

Powered by Zendesk