ddbot.js-0374 3.2.5 → 3.2.7
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.
- package/package.json +1 -3
- package/src/bot/bot.js +2 -0
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.
|
|
8
|
+
"version": "3.2.7",
|
|
9
9
|
"description": "ddbot.js — это Node.js проект для автоматизации и управления ботами.",
|
|
10
10
|
"main": "./index.js",
|
|
11
11
|
"scripts": {
|
|
@@ -22,8 +22,6 @@
|
|
|
22
22
|
"DDraceNetwork",
|
|
23
23
|
"ddbot",
|
|
24
24
|
"bot",
|
|
25
|
-
"automation",
|
|
26
|
-
"maps",
|
|
27
25
|
"ddracenetwork"
|
|
28
26
|
],
|
|
29
27
|
"author": "0374flop",
|
package/src/bot/bot.js
CHANGED
|
@@ -412,6 +412,7 @@ class BotManager extends EventEmitter {
|
|
|
412
412
|
if (clientInfo && clientInfo.name && playerInfo && playerInfo.team !== -1) {
|
|
413
413
|
playerMap.set(client_id, {
|
|
414
414
|
client_id,
|
|
415
|
+
raw: { clientInfo, playerInfo, character },
|
|
415
416
|
name: clientInfo.name,
|
|
416
417
|
clan: clientInfo.clan || '',
|
|
417
418
|
country: clientInfo.country || -1,
|
|
@@ -450,6 +451,7 @@ class BotManager extends EventEmitter {
|
|
|
450
451
|
|
|
451
452
|
// емитим.
|
|
452
453
|
if (client_id !== -1) this.emit(`${botName}:ChatNoSystem`, msgraw, autormsg, text, team, client_id); // все только без системы или сервера
|
|
454
|
+
if (!(client_id == -1 && autormsg == null)) this.emit(`${botName}:ChatNoSystemnonullnames`, msgraw, autormsg, text, team, client_id);
|
|
453
455
|
this.emit(`${botName}:ChatRaw`, msgraw, autormsg, text, team, client_id); // все сообщения
|
|
454
456
|
});
|
|
455
457
|
|