From b23f6ffac6f36eebea4fd21e617ebbff62bed752 Mon Sep 17 00:00:00 2001 From: Louis Gallet Date: Mon, 26 Feb 2024 13:42:23 +0100 Subject: [PATCH] feat: :sparkles: Basic bot implementation --- config.json.example | 3 +++ index.js | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 config.json.example diff --git a/config.json.example b/config.json.example new file mode 100644 index 0000000..56f07a6 --- /dev/null +++ b/config.json.example @@ -0,0 +1,3 @@ +{ + "token": "your-token-goes-here" +} diff --git a/index.js b/index.js index e69de29..9a5cfd4 100644 --- a/index.js +++ b/index.js @@ -0,0 +1,10 @@ +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) \ No newline at end of file