added userprofileId to Bot

This commit is contained in:
Luis Fernando Molina committed 2021-08-29 13:11:22 +02:00
1 parent d42f473a91
commit c7011e4183
3 files changed
+6

No files matched your search

+3
View File
@@ -7,6 +7,7 @@ exports.newBotProfile = function newBotProfile() {
*/
let thisObject = {
/* Unique Keys */
userProfileId: undefined,
botProfileId: undefined,
botProfileHandle: undefined,
/* Bot Unitque Properties */
@@ -45,11 +46,13 @@ exports.newBotProfile = function newBotProfile() {
}
function initialize(
userProfileId,
botProfileId,
botAsset,
botExchange,
botEnabled
) {
thisObject.userProfileId = userProfileId
thisObject.botProfileId = botProfileId
thisObject.botAsset = botAsset
thisObject.botExchange = botExchange
+1
View File
@@ -374,6 +374,7 @@ exports.newEvent = function newEvent() {
switch (thisObject.eventType) {
case EVENT_TYPES.ADD_BOT: {
emitterUserProfile.addBot(
thisObject.emitterUserProfileId,
thisObject.emitterBotProfileId,
thisObject.botAsset,
thisObject.botExchange,
+2
View File
@@ -149,6 +149,7 @@ exports.newUserProfile = function newUserProfile() {
}
function addBot(
userProfileId,
botProfileId,
botAsset,
botExchange,
@@ -160,6 +161,7 @@ exports.newUserProfile = function newUserProfile() {
} else {
let bot = NT.modules.BOTS.newBot()
bot.initialize(
userProfileId,
botProfileId,
botAsset,
botExchange,