Fix blacklist export

This commit is contained in:
Dragon Fire
2021-02-13 16:42:56 -05:00
parent a56a0e0e8f
commit 79f8773bf3
+2 -2
View File
@@ -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;