Files
New-Alan/index.js
2023-03-03 09:32:00 -05:00

18 lines
486 B
JavaScript

// Note add tsserver support
// Require the necessary discord.js classes
const { Client, IntentsBitField } = require('discord.js');
const { token } = require('./config.json');
// Create a new client instance
const client = new Client({ intents: [IntentsBitField.Flags.Guilds] });
// When the client is ready, run this code (only once)
client.once('ready', () => {
console.log('Alan Bot is back BABY!');
});
// Login to Discord with your client's token
client.login(token);