Wednesday, 31 May 2017

node js dota 2 bot connecting player failure returning matchmaking

I am try to create a practice lobby for playing game using dota 2 steam api in node js.I am using this code

Dota2.createPracticeLobby(properties, function(err, data){
    if (err) {
        util.log(err + ' - ' + JSON.stringify(data));
    }
    Dota2.inviteToLobby(steam_id);
    setTimeout(function(){
        Dota2.launchPracticeLobby();
    }, 30000);
 });
 Dota2.on("practiceLobbyUpdate", function(lobby) {
     Dota2.joinChat(lobbyChannel,dota2.schema.lookupEnum('DOTAChatChannelType_t').values.DOTAChannelType_Lobby);
 });

thanks in advance



via user3527572

No comments:

Post a Comment