From e0f1c252732f43bfcc125c4463d17fcc8f9c7e54 Mon Sep 17 00:00:00 2001 From: alwayscompiling Date: Sun, 19 Jun 2022 16:28:17 -0400 Subject: [PATCH] Creating index.json. --- index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 index.js diff --git a/index.js b/index.js new file mode 100644 index 0000000..0d73a0b --- /dev/null +++ b/index.js @@ -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); \ No newline at end of file