SlnDmry commited on
Commit
cdcb370
·
verified ·
1 Parent(s): 4e201e2

Update bot.js

Browse files
Files changed (1) hide show
  1. bot.js +1 -1
bot.js CHANGED
@@ -348,7 +348,7 @@ const checkAndStartViewer = (req, res, next) => {
348
  }
349
 
350
  // Güvenlik Kontrolü: Bot tanımlı mı ve soketi aktif mi?
351
- const isBotReady = bot && bot.socket && typeof bot.socket.writable === 'boolean';
352
 
353
  if (!viewerInstance && isBotReady) {
354
  try {
 
348
  }
349
 
350
  // Güvenlik Kontrolü: Bot tanımlı mı ve soketi aktif mi?
351
+ const isBotReady = bot && bot.player && bot.spawned;
352
 
353
  if (!viewerInstance && isBotReady) {
354
  try {