diff options
| author | Your Name <you@example.com> | 2026-03-21 01:41:17 +0100 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-03-21 01:41:17 +0100 |
| commit | 768b537946da0abd89949648b803d625542c8a7d (patch) | |
| tree | 6fbce39026bf008d3c05fc58cfd0b97cc84ab7e4 /src/bot.js | |
| parent | 09e546c4a7e1bf69784be5e8fe1200a7d5a8c955 (diff) | |
Diffstat (limited to 'src/bot.js')
| -rw-r--r-- | src/bot.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -const { Client, GatewayIntentBits } = require('discord.js'); +const { Client, GatewayIntentBits, Events } = require('discord.js'); require('dotenv').config(); const commands = require('./commands/definitions'); @@ -18,7 +18,7 @@ const client = new Client({ const queues = new Map(); -client.once('ready', async () => { +client.once(Events.ClientReady, async () => { console.log(`Bot ready: ${client.user.tag}`); console.log(`Ready at: ${new Date().toISOString()}`); await registerCommands(commands, process.env.DISCORD_TOKEN, process.env.CLIENT_ID); |
