From 540379ad7f2a7600db6936380b8bae19daf7f4f0 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Wed, 23 Sep 2020 14:05:32 -0700 Subject: [PATCH] inclue role in botCmdKeysend to bot creator in remote bot --- api/controllers/bots.ts | 19 ++++++++++++++----- api/network/interfaces.ts | 2 +- api/network/send.ts | 2 +- dist/api/controllers/bots.js | 20 ++++++++++++++------ dist/api/controllers/bots.js.map | 2 +- dist/api/network/send.js | 2 +- dist/api/network/send.js.map | 2 +- 7 files changed, 33 insertions(+), 16 deletions(-) diff --git a/api/controllers/bots.ts b/api/controllers/bots.ts index bf631fa..6f51224 100644 --- a/api/controllers/bots.ts +++ b/api/controllers/bots.ts @@ -104,7 +104,11 @@ export async function installBot(chat, bot_json) { type: constants.message_types.bot_install, bot_uuid: myBot.uuid, message: {content:'', amount:0}, - sender: {pub_key: owner.publicKey, alias: owner.alias}, + sender: { + pub_key: owner.publicKey, + alias: owner.alias, + role: constants.chat_roles.owner + }, chat: {uuid:chat_uuid} }, myBot, SphinxBot.MSG_TYPE.INSTALL) } @@ -136,10 +140,11 @@ export async function keysendBotCmd(msg, b): Promise { b.botUuid, b.botMakerPubkey, amt, msg.chat.uuid, msg.message.content, + (msg.sender && msg.sender.role) ) } -export async function botKeysend(msg_type, bot_uuid, botmaker_pubkey, amount, chat_uuid:string, content?:string): Promise { +export async function botKeysend(msg_type, bot_uuid, botmaker_pubkey, amount, chat_uuid:string, content?:string, sender_role?:number): Promise { const owner = await models.Contact.findOne({ where: { isOwner: true } }) const dest = botmaker_pubkey const MIN_SATS = 3 @@ -150,10 +155,14 @@ export async function botKeysend(msg_type, bot_uuid, botmaker_pubkey, amount, ch data: { type: msg_type, bot_uuid, + chat: {uuid:chat_uuid}, message: {content: content||'', amount:amt}, - sender: {pub_key: owner.publicKey, alias: owner.alias}, - chat: {uuid:chat_uuid} - }, + sender: { + pub_key: owner.publicKey, + alias: owner.alias, + role: sender_role||constants.chat_roles.reader + } + } } try { await network.signAndSend(opts) diff --git a/api/network/interfaces.ts b/api/network/interfaces.ts index e937c60..bb6ad38 100644 --- a/api/network/interfaces.ts +++ b/api/network/interfaces.ts @@ -11,6 +11,6 @@ export interface Msg { sender: { pub_key: string, alias: string, - role?: number + role: number } } \ No newline at end of file diff --git a/api/network/send.ts b/api/network/send.ts index 44b3ddb..4795699 100644 --- a/api/network/send.ts +++ b/api/network/send.ts @@ -57,7 +57,7 @@ export async function sendMessage(params) { // console.log("SEND.TS isBotMsg") const isBotMsg = await intercept.isBotMsg(msg, true) if(isBotMsg===true) { - // return // DO NOT FORWARD TO TRIBE, forwarded to bot instead + // return // DO NOT FORWARD TO TRIBE, forwarded to bot instead? } // post last_active to tribes server tribes.putActivity(chat.uuid, chat.host) diff --git a/dist/api/controllers/bots.js b/dist/api/controllers/bots.js index 74b11d1..86529c2 100644 --- a/dist/api/controllers/bots.js +++ b/dist/api/controllers/bots.js @@ -112,7 +112,11 @@ function installBot(chat, bot_json) { type: constants.message_types.bot_install, bot_uuid: myBot.uuid, message: { content: '', amount: 0 }, - sender: { pub_key: owner.publicKey, alias: owner.alias }, + sender: { + pub_key: owner.publicKey, + alias: owner.alias, + role: constants.chat_roles.owner + }, chat: { uuid: chat_uuid } }, myBot, SphinxBot.MSG_TYPE.INSTALL); } @@ -141,11 +145,11 @@ function keysendBotCmd(msg, b) { return __awaiter(this, void 0, void 0, function* () { const amount = msg.message.amount || 0; const amt = Math.max(amount, b.pricePerUse); - return yield botKeysend(constants.message_types.bot_cmd, b.botUuid, b.botMakerPubkey, amt, msg.chat.uuid, msg.message.content); + return yield botKeysend(constants.message_types.bot_cmd, b.botUuid, b.botMakerPubkey, amt, msg.chat.uuid, msg.message.content, (msg.sender && msg.sender.role)); }); } exports.keysendBotCmd = keysendBotCmd; -function botKeysend(msg_type, bot_uuid, botmaker_pubkey, amount, chat_uuid, content) { +function botKeysend(msg_type, bot_uuid, botmaker_pubkey, amount, chat_uuid, content, sender_role) { return __awaiter(this, void 0, void 0, function* () { const owner = yield models_1.models.Contact.findOne({ where: { isOwner: true } }); const dest = botmaker_pubkey; @@ -157,10 +161,14 @@ function botKeysend(msg_type, bot_uuid, botmaker_pubkey, amount, chat_uuid, cont data: { type: msg_type, bot_uuid, + chat: { uuid: chat_uuid }, message: { content: content || '', amount: amt }, - sender: { pub_key: owner.publicKey, alias: owner.alias }, - chat: { uuid: chat_uuid } - }, + sender: { + pub_key: owner.publicKey, + alias: owner.alias, + role: sender_role || constants.chat_roles.reader + } + } }; try { yield network.signAndSend(opts); diff --git a/dist/api/controllers/bots.js.map b/dist/api/controllers/bots.js.map index c3dd593..738f29f 100644 --- a/dist/api/controllers/bots.js.map +++ b/dist/api/controllers/bots.js.map @@ -1 +1 @@ -{"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../api/controllers/bots.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAA4B;AAC5B,0CAAyC;AACzC,iCAAgC;AAChC,sCAAkC;AAClC,2CAA0C;AAC1C,sCAA+C;AAC/C,sCAAqC;AACrC,uCAA4C;AAC5C,0CAAyC;AACzC,2CAA8B;AAC9B,wCAAuC;AAGvC,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,6BAA6B,CAAC,CAAC,CAAA;AAEjE,QAAA,OAAO,GAAG,CAAO,GAAG,EAAE,GAAG,EAAE,EAAE;IACxC,IAAI;QACF,MAAM,IAAI,GAAG,MAAM,eAAM,CAAC,GAAG,CAAC,OAAO,EAAE,CAAA;QACvC,aAAO,CAAC,GAAG,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;SAC5C,CAAC,CAAA;KACH;IAAC,OAAO,CAAC,EAAE;QACV,aAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;KACxB;AACH,CAAC,CAAA,CAAA;AAEY,QAAA,SAAS,GAAG,CAAO,GA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ACH,IAAG,CAAC,IAAI;gBAAE,OAAO,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAA;YACrE,IAAI,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YACtB,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;YACvB,MAAM,MAAM,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,EAAE,CAAC,CAAA;YACrF,MAAM,GAAG,GAAyB;gBAChC,MAAM,EAAE,IAAI,CAAC,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS,CAAC,aAAa,CAAC,OAAO;gBACrC,MAAM,EAAE,CAAC,MAAM,IAAE,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC;gBAChC,MAAM,EAAE,MAAM,IAAI,CAAC;gBACnB,IAAI,EAAE,IAAI;gBACV,cAAc,EAAE,OAAO;gBACvB,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,SAAS;gBACpC,SAAS,EAAE,IAAI;gBACf,SAAS,EAAE,IAAI;gBACf,WAAW,EAAE,YAAY,IAAI,KAAK;aACnC,CAAA;YACD,MAAM,OAAO,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;YAChD,MAAM,CAAC,QAAQ,CAAC;gBACd,IAAI,EAAE,SAAS;gBACf,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC;aAC3D,CAAC,CAAA;SACH;IACH,CAAC;CAAA;AA5DD,sCA4DC"} \ No newline at end of file diff --git a/dist/api/network/send.js b/dist/api/network/send.js index 1882a7e..7a9c1b6 100644 --- a/dist/api/network/send.js +++ b/dist/api/network/send.js @@ -61,7 +61,7 @@ function sendMessage(params) { // console.log("SEND.TS isBotMsg") const isBotMsg = yield intercept.isBotMsg(msg, true); if (isBotMsg === true) { - // return // DO NOT FORWARD TO TRIBE, forwarded to bot instead + // return // DO NOT FORWARD TO TRIBE, forwarded to bot instead? } // post last_active to tribes server tribes.putActivity(chat.uuid, chat.host); diff --git a/dist/api/network/send.js.map b/dist/api/network/send.js.map index 9cd2d11..1c9ce7e 100644 --- a/dist/api/network/send.js.map +++ b/dist/api/network/send.js.map @@ -1 +1 @@ -{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../api/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,sCAAkC;AAClC,0CAAyC;AACzC,0CAAyC;AACzC,sCAA+D;AAC/D,6BAA4B;AAC5B,0CAAyC;AACzC,gEAAuE;AACvE,uCAAwC;AACxC,yCAAwC;AAExC,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAC,6BAA6B,CAAC,CAAC,CAAA;AAI7E,MAAM,QAAQ,GAAG,CAAC,CAAC;AAEnB,SAAsB,WAAW,CAAC,MAAM;;QACvC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,MAAM,CAAA;QACjG,IAAG,CAAC,IAAI,IAAI,CAAC,MAAM;YAAE,OAAM;QAE3B,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,KAAG,SAAS,CAAC,UAAU,CAAC,KAAK,CAAA;QACtD,IAAI,YAAY,GAAG,OAAO,IAAI,MAAM,CAAC,SAAS,KAAG,IAAI,CAAC,WAAW,CAAA;QAEjE,IAAI,SAAS,GAAG,CAAC,MAAM,CAAC,UAAU,IAAE,MAAM,CAAC,CAAA;QAC3C,IAAG,YAAY,IAAI,CAAC,WAAW,EAAE;YAChC,SAAS,mCAAO,CAAC,MAAM,CAAC,UAAU,IAAE,MAAM,CAAC,KAAE,IAAI,EAAC,SAAS,CAAC,UAAU,CAAC,KAAK,GAAC,CAAA;SAC7E;QACD,IAAI,GA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