Suvarii commited on
Commit
1c634be
·
verified ·
1 Parent(s): 31cbb33

Update bot.js

Browse files
Files changed (1) hide show
  1. bot.js +0 -21
bot.js CHANGED
@@ -2558,27 +2558,6 @@ const windowAtTransferStart = bot.currentWindow;
2558
  }
2559
  });
2560
 
2561
- bot._client.on('packet', (data, meta) => {
2562
- if (meta.name === 'transaction' || meta.name === 'window_confirmation' ||
2563
- meta.name === 'set_container_content' || meta.name === 'window_items' ||
2564
- meta.name === 'container_close') {
2565
- logger.info(`[PAKET-DEBUG] Sunucudan geldi: ${meta.name} -> ${JSON.stringify(data)}`);
2566
- }
2567
- });
2568
-
2569
- bot._client.on('packet', (data, meta) => {
2570
- if (meta.name === 'window_click' || meta.name === 'container_click') {
2571
- // Bu bizim GÖNDERDİĞİMİZ paket değil, gelen değil — bu satır çalışmaz, atlıyoruz.
2572
- }
2573
- }, true); // outgoing paketleri de görmek istersek ayrı bir yöntem gerekir, aşağıda not var
2574
-
2575
- const origWrite = bot._client.write.bind(bot._client);
2576
- bot._client.write = function(name, params) {
2577
- if (name === 'window_click' || name === 'container_click') {
2578
- logger.info(`[PAKET-DEBUG] BİZ GÖNDERİYORUZ: ${name} -> ${JSON.stringify(params)}`);
2579
- }
2580
- return origWrite(name, params);
2581
- };
2582
 
2583
  bot.on("end", () => {
2584
  try {
 
2558
  }
2559
  });
2560
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2561
 
2562
  bot.on("end", () => {
2563
  try {