ddbot.js-0374 3.2.6 → 3.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/bot/bot.js +2 -2
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "teeworlds": "^2.5.11"
6
6
  },
7
7
  "name": "ddbot.js-0374",
8
- "version": "3.2.6",
8
+ "version": "3.2.8",
9
9
  "description": "ddbot.js — это Node.js проект для автоматизации и управления ботами.",
10
10
  "main": "./index.js",
11
11
  "scripts": {
package/src/bot/bot.js CHANGED
@@ -401,8 +401,7 @@ class BotManager extends EventEmitter {
401
401
  }
402
402
 
403
403
  try {
404
- const oldList = this.playerLists.get(botName) || [];
405
- const playerMap = new Map(oldList.map(p => [p.client_id, p]));
404
+ const playerMap = new Map();
406
405
 
407
406
  for (let client_id = 0; client_id < 64; client_id++) {
408
407
  const clientInfo = client.SnapshotUnpacker.getObjClientInfo(client_id);
@@ -451,6 +450,7 @@ class BotManager extends EventEmitter {
451
450
 
452
451
  // емитим.
453
452
  if (client_id !== -1) this.emit(`${botName}:ChatNoSystem`, msgraw, autormsg, text, team, client_id); // все только без системы или сервера
453
+ if (!(client_id == -1 && autormsg == null)) this.emit(`${botName}:ChatNoSystemNoNullNames`, msgraw, autormsg, text, team, client_id);
454
454
  this.emit(`${botName}:ChatRaw`, msgraw, autormsg, text, team, client_id); // все сообщения
455
455
  });
456
456