fixed reconnecting crashes
This commit is contained in:
@ -119,7 +119,6 @@ function join() {
|
||||
let headermessage = JSON.parse(data.header);
|
||||
let positioninqueue = headermessage.text.split("\n")[5].substring(25);
|
||||
webserver.queuePlace = positioninqueue; // update info on the web page
|
||||
console.log(positioninqueue);
|
||||
if (webserver.queuePlace !== "None" && lastQueuePlace !== webserver.queuePlace) {
|
||||
if (!totalWaitTime) {
|
||||
totalWaitTime = Math.pow(positioninqueue / 35.4, 2 / 3);
|
||||
@ -392,6 +391,7 @@ function userInput(cmd, DiscordOrigin, discordMsg) {
|
||||
sendDiscordMsg(discordMsg.channel, "Timer", "Queue is starting at " + starttimestring);
|
||||
} else console.log("Queue is starting at " + starttimestring);
|
||||
} else if (/^play (\d|[0-1]\d|2[0-3]):[0-5]\d$/.test(cmd)) {
|
||||
timeStringtoDateTime(cmd);
|
||||
calcTime(cmd);
|
||||
let output = "The perfect time to start the will be calculated, so you play at " + starttimestring;
|
||||
if (DiscordOrigin) sendDiscordMsg(discordMsg.channel, "time calculator", output);
|
||||
@ -475,4 +475,4 @@ module.exports = {
|
||||
stop: function () {
|
||||
stop();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user