feat: Basic bot implementation

This commit is contained in:
Louis Gallet 2024-02-26 13:42:23 +01:00
parent b46e1903cc
commit b23f6ffac6
Signed by: lgallet
GPG Key ID: 84D3DF1528A84511
2 changed files with 13 additions and 0 deletions

3
config.json.example Normal file
View File

@ -0,0 +1,3 @@
{
"token": "your-token-goes-here"
}

View File

@ -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)