diff --git a/structures/Client.js b/structures/Client.js index 9c79ef20..288ccc37 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -78,11 +78,11 @@ module.exports = class XiaoClient extends CommandClient { } async loadNSFWModel() { - const model = await nsfw.load( + const nsfwModel = await nsfw.load( `${url.pathToFileURL(path.join(__dirname, '..', 'tf_models', 'nsfw', 'web_model')).href}/`, { type: 'graph' } ); - this.nsfwModel = model; + this.nsfwModel = nsfwModel; return this.nsfwModel; }