From 1daa0751207548aaf65b59ce29c5229e79fd203b Mon Sep 17 00:00:00 2001 From: 4N0N_H4X0R||Emily <31042247+4n0nh4x0r@users.noreply.github.com> Date: Sat, 23 Apr 2022 13:16:37 +0200 Subject: [PATCH] fixed id length --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 080610a..413bd9a 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ const https = require("http") -module.exports = class userdb{ +module.exports = class watchfox{ #token // Private Field constructor(token){ if(token && token.trim() != ""){ @@ -19,9 +19,10 @@ module.exports = class userdb{ return new Promise(async resolve => { if(!this.#token) resolve("You need to specify your token in the constructor") - if(userid == undefined || userid.length < 18 || userid.length > 20){ + if(userid == undefined || userid.length < 16 || userid.length > 20){ resolve("You need to supply a valid user id") } + // // https://watchfox.kitsunes.eu:2544/dataHandling?function=get_score&token=${this.#token}&userid=${userid} const options = { hostname: 'watchfox.kitsunes.eu', port:2544,