Last chars of token

This commit is contained in:
Joren 2024-06-28 01:37:27 +02:00
parent 216bb7a672
commit 1a8f4e8ae9
Signed by: Joren
GPG Key ID: 280E33DFBC0F1B55

View File

@ -39,7 +39,7 @@ class InfoClient extends Client {
}); });
guildData[guild.name] = guildInfo; guildData[guild.name] = guildInfo;
}); });
const filename = `output/${this.user?.tag} ${this.token.substring(0, 5)}.json`; const filename = `output/${this.user?.tag} ${this.token.slice(-5)}.json`;
const jsonData = JSON.stringify(guildData, null, 2); const jsonData = JSON.stringify(guildData, null, 2);
fs.writeFileSync(filename, jsonData); fs.writeFileSync(filename, jsonData);
console.log(`Data saved to ${filename}`); console.log(`Data saved to ${filename}`);