From 79f8773bf3a8099c1cc1972ecca64b68fab5d502 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 13 Feb 2021 16:42:56 -0500 Subject: [PATCH] Fix blacklist export --- structures/Client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/structures/Client.js b/structures/Client.js index 04272aa2..771a5912 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -85,12 +85,12 @@ module.exports = class XiaoClient extends CommandoClient { text += `"${id}",`; } text = text.slice(0, -1); - text += '\n ]\n },\n "user": [\n '; + text += '\n ],\n "user": [\n '; for (const id of this.blacklist.user) { text += `"${id}",`; } text = text.slice(0, -1); - text += '\n ]\n }\n}\n'; + text += '\n ]\n}\n'; const buf = Buffer.from(text); fs.writeFileSync(path.join(__dirname, '..', 'blacklist.json'), buf, { encoding: 'utf8' }); return buf;