Add output to file

This commit is contained in:
Joren 2024-06-28 01:16:25 +02:00
parent f0891322b5
commit 8e8906d50a
Signed by: Joren
GPG Key ID: 280E33DFBC0F1B55

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();
}
}