diff --git a/.gitignore b/.gitignore index 66c5c9c..a5edcf6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ dist/ .idea/* out/ *.log +.vscode \ No newline at end of file diff --git a/package.json b/package.json index cf2ee8f..dc1a94b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gorilink", - "version": "1.3.0", + "version": "1.3.1", "main": "./src/index.js", "types": "./typings/index.d.ts", "license": "BSD", diff --git a/src/index.js b/src/index.js index e5625cf..d35032e 100644 --- a/src/index.js +++ b/src/index.js @@ -3,5 +3,7 @@ module.exports = { GorilinkPlayer: require('./lib/GorilinkPlayer'), GorilinkNode: require('./lib/GorilinkNode'), - Queue: require('./lib/structures/Queue') + Queue: require('./lib/structures/Queue'), + Track: require('./lib/model/Track'), + SearchResponse: require('./lib/model/SearchResponse') } diff --git a/src/lib/GorilinkManager.js b/src/lib/GorilinkManager.js index d5daf69..cbc6061 100644 --- a/src/lib/GorilinkManager.js +++ b/src/lib/GorilinkManager.js @@ -207,7 +207,7 @@ class GorilinkManager extends EventEmitter { .filter(node => node.connected) .sort((a, b) => { const aLoad = a.stats.cpu ? a.stats.cpu.systemLoad / a.stats.cpu.cores * 100 : 0 - const bLoad = b.stats.cpu ? b.stats.cpu.systemLoad / b.stats.cpu.core * 100 : 0 + const bLoad = b.stats.cpu ? b.stats.cpu.systemLoad / b.stats.cpu.cores * 100 : 0 return aLoad - bLoad }) }