From f744e5d536b48c4f98b6237a77de6e5fabb1445c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Mar 2024 21:30:08 -0400 Subject: [PATCH] Fix --- structures/Client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }