diff --git a/index.ts b/index.ts index 714a521..1561126 100644 --- a/index.ts +++ b/index.ts @@ -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(); } }