@indra.ai/deva 1.1.96 → 1.1.98
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/index.js +8 -10
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1196,22 +1196,21 @@ class Deva {
|
|
|
1196
1196
|
- st: The zone flag to set for the Deva that matches to this._zones
|
|
1197
1197
|
describe
|
|
1198
1198
|
***************/
|
|
1199
|
-
zone(zone
|
|
1199
|
+
zone(zone) {
|
|
1200
1200
|
try {
|
|
1201
1201
|
if (!this._zones[zone]) return;
|
|
1202
1202
|
this._zone = zone;
|
|
1203
1203
|
const text = this._messages.zones[zone];
|
|
1204
|
-
const
|
|
1204
|
+
const talk = {
|
|
1205
1205
|
id: this.uid(true),
|
|
1206
1206
|
key: 'zone',
|
|
1207
1207
|
value: zone,
|
|
1208
1208
|
agent: this._agent,
|
|
1209
1209
|
text,
|
|
1210
|
-
data,
|
|
1211
1210
|
created: Date.now(),
|
|
1212
1211
|
};
|
|
1213
|
-
|
|
1214
|
-
this.talk(config.events.zone,
|
|
1212
|
+
talk.hash = this.hash(talk);
|
|
1213
|
+
this.talk(config.events.zone, talk);
|
|
1215
1214
|
} catch (e) {
|
|
1216
1215
|
return this.error(e);
|
|
1217
1216
|
}
|
|
@@ -1250,22 +1249,21 @@ class Deva {
|
|
|
1250
1249
|
- st: The state flag to set for the Deva that matches to this._states
|
|
1251
1250
|
describe
|
|
1252
1251
|
***************/
|
|
1253
|
-
feature(feature
|
|
1252
|
+
feature(feature) {
|
|
1254
1253
|
try {
|
|
1255
1254
|
if (!this._features[feature]) return;
|
|
1256
1255
|
this._feature = feature;
|
|
1257
1256
|
const text = this._messages.features[feature] ;
|
|
1258
|
-
const
|
|
1257
|
+
const talk = {
|
|
1259
1258
|
id: this.uid(true),
|
|
1260
1259
|
key: 'feature',
|
|
1261
1260
|
value: feature,
|
|
1262
1261
|
agent: this._agent,
|
|
1263
1262
|
text,
|
|
1264
|
-
data,
|
|
1265
1263
|
created: Date.now(),
|
|
1266
1264
|
};
|
|
1267
|
-
|
|
1268
|
-
this.talk(config.events.feature,
|
|
1265
|
+
talk.hash = this.hash(talk);
|
|
1266
|
+
this.talk(config.events.feature, talk);
|
|
1269
1267
|
} catch (e) {
|
|
1270
1268
|
return this.error(e);
|
|
1271
1269
|
}
|