Add output to file
This commit is contained in:
parent
f0891322b5
commit
8e8906d50a
5
index.ts
5
index.ts
@ -1,4 +1,5 @@
|
|||||||
import { Client, Guild } from 'discord.js-selfbot-v13';
|
import { Client, Guild } from 'discord.js-selfbot-v13';
|
||||||
|
import fs from 'fs';
|
||||||
|
|
||||||
const token = '';
|
const token = '';
|
||||||
|
|
||||||
@ -37,9 +38,9 @@ class InfoClient extends Client {
|
|||||||
});
|
});
|
||||||
guildData[guild.name] = guildInfo;
|
guildData[guild.name] = guildInfo;
|
||||||
});
|
});
|
||||||
//console.log(guildData)
|
const filename = `${this.user?.tag}[${token.substring(0, 5)}].json`;
|
||||||
const jsonData = JSON.stringify(guildData, null, 2);
|
const jsonData = JSON.stringify(guildData, null, 2);
|
||||||
console.log(jsonData)
|
fs.writeFileSync(filename, jsonData);
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user