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