-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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 ...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels