Add output to file

This commit is contained in:
2024-06-28 01:16:25 +02:00
parent f0891322b5
commit 8e8906d50a

View File

@@ -1,4 +1,5 @@
import { Client, Guild } from 'discord.js-selfbot-v13';
import fs from 'fs';
const token = '';
@@ -37,9 +38,9 @@ class InfoClient extends Client {
});
guildData[guild.name] = guildInfo;
});
//console.log(guildData)
const filename = `${this.user?.tag}[${token.substring(0, 5)}].json`;
const jsonData = JSON.stringify(guildData, null, 2);
console.log(jsonData)
fs.writeFileSync(filename, jsonData);
process.exit();
}
}