From add4fd0e1681e122bb0842898f2ba7f49dbbc650 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 13 Feb 2021 16:46:22 -0500 Subject: [PATCH] Fix --- structures/Client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/structures/Client.js b/structures/Client.js index 3049e1a9..147399f9 100644 --- a/structures/Client.js +++ b/structures/Client.js @@ -82,14 +82,14 @@ module.exports = class XiaoClient extends CommandoClient { exportBlacklist() { let text = '{\n "guild": [\n '; for (const id of this.blacklist.guild) { - text += `"${id}",\n`; + text += `"${id}",\n `; } - text = text.slice(0, -2); + text = text.slice(0, -4); text += '\n ],\n "user": [\n '; for (const id of this.blacklist.user) { - text += `"${id}",\n`; + text += `"${id}",\n `; } - text = text.slice(0, -2); + text = text.slice(0, -4); text += '\n ]\n}\n'; const buf = Buffer.from(text); fs.writeFileSync(path.join(__dirname, '..', 'blacklist.json'), buf, { encoding: 'utf8' });