Update bot to use the new client ready event

Change the deprecated 'ready' event to 'clientReady' in bot.js to resolve a deprecation warning.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: aed2e46d-25bb-4b73-81a1-bb9e8437c261
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 544b9330-ea45-4ad9-8a9c-c098482cece1
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3bdfff67-975a-46ad-9845-fbb6b4a4c4b5/aed2e46d-25bb-4b73-81a1-bb9e8437c261/mYZvK75
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
sirpiglr 2025-12-08 01:51:18 +00:00
parent 5e89a22eef
commit a24c7c7d4e

View file

@ -786,7 +786,7 @@ client.login(token).catch((error) => {
process.exit(1);
});
client.once("ready", () => {
client.once("clientReady", () => {
console.log(`Bot logged in as ${client.user.tag}`);
console.log(`Watching ${client.guilds.cache.size} server(s)`);
console.log("Commands are registered via: npm run register-commands");