Creating index.json.

This commit is contained in:
alwayscompiling
2022-06-19 16:28:17 -04:00
parent 657d06762b
commit e0f1c25273
+14
View File
@@ -0,0 +1,14 @@
// Require the necessary discord.js classes
const { Client, Intents } = require('discord.js');
const { token } = require('./config.json');
// Create a new client instance
const client = new Client({ intents: [Intents.FLAGS.GUILDS] });
// When the client is ready, run this code (only once)
client.once('ready', () => {
console.log('Ready!');
});
// Login to Discord with your client's token
client.login(token);