add eslint & prettier

This commit is contained in:
Ryan Cao 2022-05-21 18:32:55 +08:00
parent 7950e23236
commit 0f15e2fb2c
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
6 changed files with 805 additions and 13 deletions

View file

@ -13,6 +13,7 @@ const client = new Client({
Intents.FLAGS.DIRECT_MESSAGES,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_MESSAGE_REACTIONS,
Intents.FLAGS.GUILD_BANS,
],
});
@ -22,7 +23,14 @@ client.once('ready', async () => {
console.log(green(bold('Discord bot ready!')));
console.log(
'Invite link:',
blue(underline(client.generateInvite({ scopes: ['bot'] })))
blue(
underline(
client.generateInvite({
scopes: ['bot'],
permissions: ['ADMINISTRATOR'],
})
)
)
);
const POLYMC_GUILD = await client.guilds.fetch(BuildConfig.GUILD_ID);