10 lines
314 B
JavaScript
10 lines
314 B
JavaScript
const { Client, Events, GatewayIntentBits} = require("discord.js")
|
|
const { token } = require("./config.json")
|
|
|
|
const client = new Client({ intents: [GatewayIntentBits.Guilds] })
|
|
|
|
client.once(Events.ClientReady, readyClient => {
|
|
console.log(`Ready! Logged in as ${readyClient.user.tag}`)
|
|
})
|
|
|
|
client.login(token) |