Skip to content

after leaving lobby issues #4

@AmirMousavi110

Description

@AmirMousavi110

Hi , bot does not working after leaving the lobby

// Lobby timeout
if(global.config.lobby_timeout !== 'none') {
setTimeout(function () {

             // Save lobby status 'timeout lobby'
              mysql.query('update lobby set status = 3 ' +
                        'where id = ' + lobbyId, function(err, res){
                if(err) throw err;

             // Leave lobby
             bot.Dota2.leavePracticeLobby(function (err, body) {
                 console.log('leavePracticeLobby body');
                 bot.free = true;
                 bot.currentLobby.id = null;
                 console.log(body);
                 bot.Dota2.destroyLobby();
                 bot.Dota2.abandonCurrentGame();
                 util.log('[Bot #' + bot.id + '] ' + 'Bot leave lobby by timeout');
          });
    });
   }, global.config.lobby_timeout * 1000);

}

bots not ready for create other lobby . mean all bots ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions