console.log('Start bot ' + bot.user.tag);
^
ReferenceError: bot is not defined
at Client.<anonymous> (C:\Users\Garda\OneDrive\Рабочий стол\eclipse\bot.js:7:32)
at Client.emit (node:events:513:28)
at WebSocketManager.triggerClientReady (C:\Users\Garda\OneDrive\Рабочий стол\eclipse\node_modules\discord.js\src\client\websocket\WebSocketManager.js:385:17)
at WebSocketManager.checkShardsReady (C:\Users\Garda\OneDrive\Рабочий стол\eclipse\node_modules\discord.js\src\client\websocket\WebSocketManager.js:368:10)
at WebSocketShard.<anonymous> (C:\Users\Garda\OneDrive\Рабочий стол\eclipse\node_modules\discord.js\src\client\websocket\WebSocketManager.js:194:14)
at WebSocketShard.emit (node:events:513:28)
at WebSocketShard.checkReady (C:\Users\Garda\OneDrive\Рабочий стол\eclipse\node_modules\discord.js\src\client\websocket\WebSocketShard.js:520:12)
at WebSocketShard.onPacket (C:\Users\Garda\OneDrive\Рабочий стол\eclipse\node_modules\discord.js\src\client\websocket\WebSocketShard.js:492:16)
at WebSocketShard.onMessage (C:\Users\Garda\OneDrive\Рабочий стол\eclipse\node_modules\discord.js\src\client\websocket\WebSocketShard.js:328:10)
at callListener (C:\Users\Garda\OneDrive\Рабочий стол\eclipse\node_modules\ws\lib\event-target.js:290:14)
Node.js v18.12.1
Мой код
const{Client, Events, GatewayIntentBits} =
require('discord.js');
const client = new Client({intents:[GatewayIntentBits.Guilds]});
client.on('ready', () => {
console.log('Start bot ' + bot.user.tag);
})
client.login(****************************************************************************************************************');