summaryrefslogtreecommitdiff
path: root/src/bot.js
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-03-21 01:41:17 +0100
committerYour Name <you@example.com>2026-03-21 01:41:17 +0100
commit768b537946da0abd89949648b803d625542c8a7d (patch)
tree6fbce39026bf008d3c05fc58cfd0b97cc84ab7e4 /src/bot.js
parent09e546c4a7e1bf69784be5e8fe1200a7d5a8c955 (diff)
qol cedaHEADmaster
Diffstat (limited to 'src/bot.js')
-rw-r--r--src/bot.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bot.js b/src/bot.js
index cd7c2db..3ec9aa1 100644
--- a/src/bot.js
+++ b/src/bot.js
@@ -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);