feat: ✨ Basic bot implementation
This commit is contained in:
parent
b46e1903cc
commit
b23f6ffac6
3
config.json.example
Normal file
3
config.json.example
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"token": "your-token-goes-here"
|
||||
}
|
10
index.js
10
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)
|
Loading…
x
Reference in New Issue
Block a user