yk what, bug fixing requires raw data
This commit is contained in:
parent
023d32fc92
commit
6c9f1248a8
7
index.js
7
index.js
|
@ -106,17 +106,18 @@ function splitKeyword(keyword) {
|
|||
// }
|
||||
// }
|
||||
// Lets redo this to actually work with v1.10.0 and above, still gotta check because versions older than 1.3 dont have DLC, and wont have the right number of fields
|
||||
console.log(`${colors.magenta(`[DEBUG ${new Date()}]`)} Server version is ${data[0]}`);
|
||||
if (data.length < 3) {
|
||||
return {
|
||||
"version": data[0]
|
||||
"version": data[0],
|
||||
"raw": keyword
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
"version": data[0],
|
||||
dlcString,
|
||||
dlc: data[1],
|
||||
"tps": data[2]
|
||||
"tps": data[2],
|
||||
"raw": keyword
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue