Last chars of token
This commit is contained in:
parent
216bb7a672
commit
1a8f4e8ae9
2
index.ts
2
index.ts
@ -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}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user