added userprofileId to Bot
This commit is contained in:
1 parent
d42f473a91
commit
c7011e4183
3 files changed
+6
No files matched your search
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user