From 1f171dde5d1bffab7a27dc674447a2b730b9d04c Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Thu, 3 Aug 2023 14:53:35 -0700 Subject: [PATCH 01/93] ml bot start --- src/builtin/ml.ts | 92 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 src/builtin/ml.ts diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts new file mode 100644 index 000000000..7538c7b3a --- /dev/null +++ b/src/builtin/ml.ts @@ -0,0 +1,92 @@ +import * as Sphinx from 'sphinx-bot' +import { finalAction } from '../controllers/botapi' +import { ChatRecord, models, ChatBotRecord } from '../models' +import { findBot } from './utill' + +const msg_types = Sphinx.MSG_TYPE + +let initted = false + +export function init() { + if (initted) return + initted = true + + const client = new Sphinx.Client() + client.login('_', finalAction) + + client.on(msg_types.MESSAGE, async (message: Sphinx.Message) => { + // if (message.author?.bot !== botPrefix) return + + const isAdmin = message.member.roles.find((role) => role.name === 'Admin') + + try { + const tribe = (await models.Chat.findOne({ + where: { uuid: message.channel.id }, + })) as ChatRecord + + const bot: ChatBotRecord = await findBot({ botPrefix: '/ML', tribe }) + + let meta: MlMeta = JSON.parse(bot.meta || `{}`) + const url = meta.url + if (!url) { + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription('not configured') + .setOnlyOwner(isAdmin ? true : false) + message.channel.send({ embed }) + return + } + + const r = await fetch(`${url}/conversation`, { + method: 'POST', + body: JSON.stringify({ + message: message.content, + }), + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }) + const j = await r.json() + if (!j.process_id) { + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription('failed to process message') + .setOnlyOwner(isAdmin ? true : false) + message.channel.send({ embed }) + return + } + + // poll process id + let i = 0 + while (true) { + const r2 = await fetch(`${url}/result`) + const j2 = await r2.json() + if (j2) { + // respond + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription(j2.result) + .setOnlyOwner(isAdmin ? true : false) + message.channel.send({ embed }) + break + } + if (i > 100) { + break + } + i++ + } + } catch (e) { + console.error(e) + } + }) +} + +export interface MlMeta { + url: string + apiKey: string +} + +export async function sleep(ms: number): Promise { + return new Promise((resolve) => setTimeout(resolve, ms)) +} From 56809d50259c38347e9869e8b029ce5deda34ac5 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 10:26:31 -0700 Subject: [PATCH 02/93] personal tribe, ml callbacks, only user --- dist/src/controllers/botapi/broadcast.js | 5 ++- dist/src/controllers/botapi/broadcast.js.map | 2 +- dist/src/controllers/botapi/index.js.map | 2 +- dist/src/network/send.js | 7 ++-- dist/src/network/send.js.map | 2 +- src/builtin/ml.ts | 36 ++++++++++---------- src/controllers/botapi/broadcast.ts | 5 +++ src/controllers/botapi/index.ts | 19 +++++++++++ src/network/send.ts | 8 +++-- 9 files changed, 60 insertions(+), 26 deletions(-) diff --git a/dist/src/controllers/botapi/broadcast.js b/dist/src/controllers/botapi/broadcast.js index 886478107..af476e86a 100644 --- a/dist/src/controllers/botapi/broadcast.js +++ b/dist/src/controllers/botapi/broadcast.js @@ -20,13 +20,16 @@ const logger_1 = require("../../utils/logger"); const index_1 = require("./index"); function broadcast(a) { return __awaiter(this, void 0, void 0, function* () { - const { amount, content, bot_name, msg_uuid, reply_uuid, parent_id, bot_pic, only_owner, } = a; + const { amount, content, bot_name, msg_uuid, reply_uuid, parent_id, bot_pic, only_owner, only_user, } = a; logger_1.sphinxLogger.info(`=> BOT BROADCAST`); const ret = yield (0, index_1.validateAction)(a); if (!ret) return; const { chat, owner } = ret; const tenant = owner.id; + if (only_user) { + chat.contactIds = `[${only_user}]`; + } const encryptedForMeText = rsa.encrypt(owner.contactKey, content || ''); const encryptedText = rsa.encrypt(chat.groupKey, content || ''); const textMap = { chat: encryptedText }; diff --git a/dist/src/controllers/botapi/broadcast.js.map b/dist/src/controllers/botapi/broadcast.js.map index 63b717af1..4bdc5faef 100644 --- a/dist/src/controllers/botapi/broadcast.js.map +++ b/dist/src/controllers/botapi/broadcast.js.map @@ -1 +1 @@ -{"version":3,"file":"broadcast.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/broadcast.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,oCAAmC;AACnC,yCAAwC;AACxC,yCAA0D;AAC1D,wCAAuC;AACvC,8CAA6C;AAC7C,6CAA4C;AAC5C,+CAAuC;AACvC,+CAAiD;AAEjD,mCAAgD;AAEhD,SAA8B,SAAS,CAAC,CAAS;;QAC/C,MAAM,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,GACX,GAAG,CAAC,CAAA;QAEL,qBAAY,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;QACrC,MAAM,GAAG,GAAG,MAAM,IAAA,sBAAc,EAAC,CAAC,CAAC,CAAA;QACnC,IAAI,CAAC,GAAG;YAAE,OAAM;QAChB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,GAAG,CAAA;QAC3B,MAAM,MAAM,GAAW,KAAK,CAAC,EAAE,CAAA;QAE/B,MAAM,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,IAAI,EAAE,CAAC,CAAA;QACvE,MAAM,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,IAAI,EAAE,CAAC,CAAA;QAC/D,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,CAAA;QACvC,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;QACvB,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAA;QACvB,MAAM,KAAK,GAAG,QAAQ,IAAI,KAAK,CAAA;QAC/B,MAAM,YAAY,GAAG,CAAC,CAAC,CAAA;QAEvB,MAAM,GAAG,GAAsD;YAC7D,MAAM,EAAE,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,EAAE;YACf,MAAM,OAAO,CAAC,WAAW,CAAC;gBACxB,IAAI,EAAE,IAAuB;gBAC7B,MAAM,kCACD,KAAK,CAAC,UAAU,KACnB,KAAK,EACL,EAAE,EAAE,YAAY,EAChB,IAAI,EAAE,mBAAS,CAAC,UAAU,CAAC,MAAM,EACjC,QAAQ,EAAE,OAAO,IAAI,EAAE,GACxB;gBACD,OAAO,EAAE;oBACP,OAAO,EAAE,OAAO;oBAChB,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,SAAS,EAAE,OAAO,CAAC,SAAS;oBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,CAAC;iBAChC;gBACD,IAAI,EAAE,mBAAS,CAAC,aAAa,CAAC,OAAO;gBACrC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gBAClC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,OAAO,qBAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;gBAC9B,CAAC;gBACD,WAAW,EAAE,IAAI;aAClB,CAAC,CAAA;SACH;IACH,CAAC;CAAA;AArFD,4BAqFC"} \ No newline at end of file +{"version":3,"file":"broadcast.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/broadcast.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,oCAAmC;AACnC,yCAAwC;AACxC,yCAA0D;AAC1D,wCAAuC;AACvC,8CAA6C;AAC7C,6CAA4C;AAC5C,+CAAuC;AACvC,+CAAiD;AAEjD,mCAAgD;AAEhD,SAA8B,SAAS,CAAC,CAAS;;QAC/C,MAAM,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,EACV,SAAS,GACV,GAAG,CAAC,CAAA;QAEL,qBAAY,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;QACrC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AC;iBAChC;gBACD,IAAI,EAAE,mBAAS,CAAC,aAAa,CAAC,OAAO;gBACrC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gBAClC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,OAAO,qBAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;gBAC9B,CAAC;gBACD,WAAW,EAAE,IAAI;aAClB,CAAC,CAAA;SACH;IACH,CAAC;CAAA;AA1FD,4BA0FC"} \ No newline at end of file diff --git a/dist/src/controllers/botapi/index.js.map b/dist/src/controllers/botapi/index.js.map index bd8dcc51b..26a57b993 100644 --- a/dist/src/controllers/botapi/index.js.map +++ b/dist/src/controllers/botapi/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC,+CAA6D;AAC7D,+CAA0D;AAC1D,0CAAyC;AACzC,2CAA6E;AAC7E,2CAA4C;AAE5C,iDAAsE;AACtE,6BAAiC;AACjC,+BAAuB;AACvB,2CAAmC;AA0BnC,SAAsB,cAAc,CAAC,GAAQ,EAAE,GAAQ;;;QACrD,qBAAY,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;QAClD,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAA;QAC9C,IAAI,CAAC,GAAG,EAAE;YACR,qBAAY,CAAC,KAAK,CAAC,mBAAmB,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACrD,OAAO,IAAA,kBAAY,EAAC,GAAG,CAAC,CAAA;SACzB;QAED,MAAM,UAAU,GACd,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;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CAAC,aAAa,CAAC,CAAA;QAC1C,MAAM,KAAK,GAAkB,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YACzD,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,MAAM,EAAE;SAC9B,CAAC,CAAkB,CAAA;QACpB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;IACjC,CAAC;CAAA;AAVD,wCAUC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC,+CAA6D;AAC7D,+CAA0D;AAC1D,0CAAyC;AACzC,2CAA6E;AAC7E,2CAA4C;AAE5C,iDAAsE;AACtE,6BAAiC;AACjC,+BAAuB;AACvB,2CAAmC;AA2BnC,SAAsB,cAAc,CAAC,GAAQ,EAAE,GAAQ;;;QACrD,qBAAY,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;QAClD,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAA;QAC9C,IAAI,CAAC,GAAG,EAAE;YACR,qBAAY,CAAC,KAAK,CAAC,mBAAmB,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACrD,OAAO,IAAA,kBAAY,EAAC,GAAG,CAAC,CAAA;SACzB;QAED,MAAM,UAAU,GACd,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;QAChE,IAAI,CAAC,UAAU,EAAE;YACf,qBAAY,CAAC,KAAK,CAAC,sBAAsB,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACxD,OAAO,IAAA,kBAAY,EAAC,GAAG,CAAC,CAAA;SACzB;QAED,MAAM,KAAK,GAAG,GAAG,CAAC,IAA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AE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;IACjC,CAAC;CAAA;AAVD,wCAUC"} \ No newline at end of file diff --git a/dist/src/network/send.js b/dist/src/network/send.js index 7809771e9..6e51a9cfc 100644 --- a/dist/src/network/send.js +++ b/dist/src/network/send.js @@ -23,6 +23,7 @@ const errMsgString_1 = require("../utils/errMsgString"); const proxy_1 = require("../utils/proxy"); const intercept = require("./intercept"); const receive_1 = require("./receive"); +const ml_1 = require("../builtin/ml"); const config = (0, config_1.loadConfig)(); /** * Sends a message to a chat. @@ -435,9 +436,11 @@ function interceptTribeMsgForHiddenCmds(msg, tenant) { const splitedContent = content.split(' '); for (let i = 0; i < bots.length; i++) { const bot = bots[i]; - if (bot.botPrefix === splitedContent[0] && + const isHidden = bot.botPrefix === splitedContent[0] && bot.hiddenCommands && - JSON.parse(bot.hiddenCommands).includes(splitedContent[1])) { + JSON.parse(bot.hiddenCommands).includes(splitedContent[1]); + const isPersonal = bot.botPrefix === ml_1.ML_PREFIX; + if (isHidden || isPersonal) { yield models_1.models.Message.update({ onlyOwner: true, }, { where: { uuid: msg.message.uuid, tenant } }); diff --git a/dist/src/network/send.js.map b/dist/src/network/send.js.map index b33aeae8a..52ff72be6 100644 --- a/dist/src/network/send.js.map +++ b/dist/src/network/send.js.map @@ -1 +1 @@ -{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCASkB;AAClB,yCAAwC;AACxC,wCAAgD;AAChD,sCAIqB;AACrB,0CAAyC;AACzC,gEAAyE;AACzE,4CAAoC;AACpC,4CAAuD;AACvD,4CAA4C;AAC5C,wDAAoD;AACpD,0CAA4D;AAE5D,yCAAwC;AACxC,uCAAkE;AAElE,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AA+B3B;;;;;;;;;;;;;;;;GAgBG;AACH,SAAsB,WAAW,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP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AAG,CAAC,OAAO,CAAC,IAAI,EAAE;SAC1C,CAAC,CAAkB,CAAA;QACpB,IAAI,eAAe,CAAC,MAAM,KAAK,MAAM,EAAE;YACrC,MAAM,cAAc,CAAC;gBACnB,MAAM;gBACN,eAAe;gBACf,WAAW,EAAE,GAAG;gBAChB,KAAK;gBACL,MAAM;gBACN,MAAM;aACP,CAAC,CAAA;SACH;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCASkB;AAClB,yCAAwC;AACxC,wCAAgD;AAChD,sCAIqB;AACrB,0CAAyC;AACzC,gEAAyE;AACzE,4CAAoC;AACpC,4CAAuD;AACvD,4CAA4C;AAC5C,wDAAoD;AACpD,0CAA4D;AAE5D,yCAAwC;AACxC,uCAAkE;AAClE,sCAAyC;AAEzC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AA+B3B;;;;;;;;;;;;;;;;GAgBG;AACH,SAAsB,WAAW,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,MAAM,EACN,MAAM,EACN,OAAO,EACP,OAAO,EACP,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,iBAAiB,GACC;;QAClB,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM;YAAE,OAAM;QAC5B,MAAM,MAAM,GAAW,MAAM,CAAC,EAAY,CAAA;QAC1C,IAAI,CAAC,MAAM;YAAE,OAAM;QAEnB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,KAAK,mBAAS,CAAC,UAAU,CAAC,KAAK,CAAA;QACxD,MAAM,YAAY,GAAG,OAAO,IAAI,MAAM,CAAC,SAAS,KAAK,IAAI,CAAC,WAAW,CAAA;QAErE,IAAI,OAAO,GAAG,MAAM,CAAA;QACpB,IAAK,MAAwB,CAAC,UAAU,EAAE;YACxC,OAAO,GAAI,MAAwB,CAAC,UAAU,CAAA;SAC/C;QACD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I,GAAG;gBACX,IAAI,EAAE,eAAe,CAAC,SAAS;gBAC/B,IAAI,EAAE,CAAC;gBACP,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,mBAAS,CAAC,cAAc,CAAC;gBACpD,UAAU,EAAE,eAAe,CAAC,SAAS,IAAI,EAAE;aAC5C,CAAA;YACD,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;YAC/B,MAAM,eAAe,CAAC,MAAM,CAAC;gBAC3B,MAAM,EAAE,mBAAS,CAAC,QAAQ,CAAC,MAAM;gBACjC,YAAY,EAAE,QAAQ;aACvB,CAAC,CAAA;YACF,qBAAY,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAA;SAClD;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,0BAA0B,KAAK,EAAE,EAAE,gBAAO,CAAC,OAAO,CAAC,CAAA;SACvE;IACH,CAAC;CAAA;AAED,SAAe,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;;QACpE,MAAM,eAAe,GAAG,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YACpD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE;SAC1C,CAAC,CAAkB,CAAA;QACpB,IAAI,eAAe,CAAC,MAAM,KAAK,MAAM,EAAE;YACrC,MAAM,cAAc,CAAC;gBACnB,MAAM;gBACN,eAAe;gBACf,WAAW,EAAE,GAAG;gBAChB,KAAK;gBACL,MAAM;gBACN,MAAM;aACP,CAAC,CAAA;SACH;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 7538c7b3a..81b1ee9eb 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -7,6 +7,10 @@ const msg_types = Sphinx.MSG_TYPE let initted = false +export const ML_PREFIX = '/ml' + +export const CALLBACKS: { [k: string]: (msg: string) => void } = {} + export function init() { if (initted) return initted = true @@ -41,6 +45,7 @@ export function init() { method: 'POST', body: JSON.stringify({ message: message.content, + webhook: '', }), headers: { Accept: 'application/json', @@ -57,25 +62,20 @@ export function init() { return } - // poll process id - let i = 0 - while (true) { - const r2 = await fetch(`${url}/result`) - const j2 = await r2.json() - if (j2) { - // respond - const embed = new Sphinx.MessageEmbed() - .setAuthor('ML Bot') - .setDescription(j2.result) - .setOnlyOwner(isAdmin ? true : false) - message.channel.send({ embed }) - break - } - if (i > 100) { - break - } - i++ + function cb(msg: string) { + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription(msg) + .setOnlyOwner(isAdmin ? true : false) + // .setOnlyUser(message.member.id) + message.channel.send({ embed }) } + + CALLBACKS[j.process_id] = cb + + setTimeout(() => { + delete CALLBACKS[j.process_id] + }, 5 * 60 * 1000) } catch (e) { console.error(e) } diff --git a/src/controllers/botapi/broadcast.ts b/src/controllers/botapi/broadcast.ts index 7e54f5614..95c186eea 100644 --- a/src/controllers/botapi/broadcast.ts +++ b/src/controllers/botapi/broadcast.ts @@ -19,6 +19,7 @@ export default async function broadcast(a: Action): Promise { parent_id, bot_pic, only_owner, + only_user, } = a sphinxLogger.info(`=> BOT BROADCAST`) @@ -27,6 +28,10 @@ export default async function broadcast(a: Action): Promise { const { chat, owner } = ret const tenant: number = owner.id + if (only_user) { + chat.contactIds = `[${only_user}]` + } + const encryptedForMeText = rsa.encrypt(owner.contactKey, content || '') const encryptedText = rsa.encrypt(chat.groupKey, content || '') const textMap = { chat: encryptedText } diff --git a/src/controllers/botapi/index.ts b/src/controllers/botapi/index.ts index cdc4d5e0d..a379daa94 100644 --- a/src/controllers/botapi/index.ts +++ b/src/controllers/botapi/index.ts @@ -23,6 +23,7 @@ import { processGithook, WebhookEventName } from '../../utils/githook' import direct_message from './dm' import pay from './pay' import broadcast from './broadcast' +import { CALLBACKS } from '../../builtin/ml' /* hexdump -n 8 -e '4/4 "%08X" 1 "\n"' /dev/random @@ -46,6 +47,7 @@ export interface Action { parent_id?: number bot_pic?: string only_owner?: boolean + only_user?: number } export async function processWebhook(req: Req, res: Res): Promise { @@ -325,3 +327,20 @@ export async function validateAction(a: Action): Promise { })) as ContactRecord return { chat: theChat, owner } } + +export async function processMlCallback(req: Req, res: Res): Promise { + const process_id = req.body.process_id + if (!process_id) { + return failure(res, 'no process_id') + } + const response = req.body.response + if (!response) { + return failure(res, 'no response') + } + + if (CALLBACKS[process_id]) { + CALLBACKS[process_id](response) + } + + success(res, { ok: true }) +} diff --git a/src/network/send.ts b/src/network/send.ts index b9512c010..aed7a851f 100644 --- a/src/network/send.ts +++ b/src/network/send.ts @@ -25,6 +25,7 @@ import { getProxyRootPubkey, isProxy } from '../utils/proxy' import { Msg, MessageContent, ChatMember } from './interfaces' import * as intercept from './intercept' import { typesToForward, receiveCoTenantMessage } from './receive' +import { ML_PREFIX } from '../builtin/ml' const config = loadConfig() @@ -554,15 +555,18 @@ async function interceptTribeMsgForHiddenCmds( const bots = (await models.ChatBot.findAll({ where: { tenant, chatId: newChat.id }, })) as ChatBotRecord[] + const content = msg.message.content as string const splitedContent = content.split(' ') for (let i = 0; i < bots.length; i++) { const bot = bots[i] - if ( + + const isHidden = bot.botPrefix === splitedContent[0] && bot.hiddenCommands && JSON.parse(bot.hiddenCommands).includes(splitedContent[1]) - ) { + const isPersonal = bot.botPrefix === ML_PREFIX + if (isHidden || isPersonal) { await models.Message.update( { onlyOwner: true, From 9fa4fd0e3ed3dffd113545543f25872f46f1494b Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 10:27:17 -0700 Subject: [PATCH 03/93] post /ml --- src/controllers/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/controllers/index.ts b/src/controllers/index.ts index 4e87dc1de..f60bb5879 100644 --- a/src/controllers/index.ts +++ b/src/controllers/index.ts @@ -157,6 +157,7 @@ export async function set(app) { app.get('/query/onchain_address/:app', queries.queryOnchainAddress) app.get('/utxos', queries.listUTXOs) + app.post('/ml', actions.processMlCallback) app.post('/webhook', actions.processWebhook) app.post('/action', actions.processAction) app.get('/bots', bots.getBots) From fd4d8d2387d887934679c3aa7ac4a7376de3dac5 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 10:31:14 -0700 Subject: [PATCH 04/93] hostname callback url --- src/builtin/ml.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 81b1ee9eb..a126df01e 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -2,6 +2,9 @@ import * as Sphinx from 'sphinx-bot' import { finalAction } from '../controllers/botapi' import { ChatRecord, models, ChatBotRecord } from '../models' import { findBot } from './utill' +import { loadConfig } from '../utils/config' + +const config = loadConfig() const msg_types = Sphinx.MSG_TYPE @@ -41,11 +44,15 @@ export function init() { return } + let host_name = config.host_name + if (!host_name.startsWith('http')) { + host_name = `https://${host_name}` + } const r = await fetch(`${url}/conversation`, { method: 'POST', body: JSON.stringify({ message: message.content, - webhook: '', + webhook: `${host_name}/ml`, }), headers: { Accept: 'application/json', @@ -62,7 +69,7 @@ export function init() { return } - function cb(msg: string) { + CALLBACKS[j.process_id] = function (msg: string) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') .setDescription(msg) @@ -71,8 +78,6 @@ export function init() { message.channel.send({ embed }) } - CALLBACKS[j.process_id] = cb - setTimeout(() => { delete CALLBACKS[j.process_id] }, 5 * 60 * 1000) From 6f57514070067765b1aa64ed67afea2111f48073 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Fri, 4 Aug 2023 19:02:34 +0100 Subject: [PATCH 05/93] update: updated sphinx_bot package --- dist/src/controllers/botapi/index.js | 20 +++++++++++++++++++- dist/src/controllers/botapi/index.js.map | 2 +- dist/src/controllers/index.js | 1 + dist/src/controllers/index.js.map | 2 +- package-lock.json | 14 +++++++------- package.json | 2 +- 6 files changed, 30 insertions(+), 11 deletions(-) diff --git a/dist/src/controllers/botapi/index.js b/dist/src/controllers/botapi/index.js index edfc36f27..9a612d3d4 100644 --- a/dist/src/controllers/botapi/index.js +++ b/dist/src/controllers/botapi/index.js @@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateAction = exports.finalAction = exports.processAction = exports.processWebhook = void 0; +exports.processMlCallback = exports.validateAction = exports.finalAction = exports.processAction = exports.processWebhook = void 0; const network = require("../../network"); const models_1 = require("../../models"); const res_1 = require("../../utils/res"); @@ -23,6 +23,7 @@ const githook_1 = require("../../utils/githook"); const dm_1 = require("./dm"); const pay_1 = require("./pay"); const broadcast_1 = require("./broadcast"); +const ml_1 = require("../../builtin/ml"); function processWebhook(req, res) { var _a; return __awaiter(this, void 0, void 0, function* () { @@ -284,4 +285,21 @@ function validateAction(a) { }); } exports.validateAction = validateAction; +function processMlCallback(req, res) { + return __awaiter(this, void 0, void 0, function* () { + const process_id = req.body.process_id; + if (!process_id) { + return (0, res_1.failure)(res, 'no process_id'); + } + const response = req.body.response; + if (!response) { + return (0, res_1.failure)(res, 'no response'); + } + if (ml_1.CALLBACKS[process_id]) { + ml_1.CALLBACKS[process_id](response); + } + (0, res_1.success)(res, { ok: true }); + }); +} +exports.processMlCallback = processMlCallback; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/controllers/botapi/index.js.map b/dist/src/controllers/botapi/index.js.map index 26a57b993..68667b97b 100644 --- a/dist/src/controllers/botapi/index.js.map +++ b/dist/src/controllers/botapi/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC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IAAI,MAAM,KAAK,IAAI,EAAE;YAC1B,IAAA,YAAc,EAAC,CAAC,CAAC,CAAA;SAClB;aAAM;YACL,qBAAY,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA;SACrC;IACH,CAAC;CAAA;AAhGD,kCAgGC;AAMD,SAAsB,cAAc,CAAC,CAAS;;QAC5C,IAAI,CAAC,CAAC,CAAC,SAAS;YAAE,OAAO,qBAAY,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;QAC3D,MAAM,OAAO,GAAG,MAAM,IAAA,iCAAwB,EAAC,CAAC,CAAC,SAAS,CAAC,CAAA;QAC3D,IAAI,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,EAAE,CAAC;YAAE,OAAO,qBAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;QAClE,IAAI,OAAO,CAAC,IAAI,KAAK,mBAAS,CAAC,UAAU,CAAC,KAAK;YAC7C,OAAO,qBAAY,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;QAC1C,MAAM,KAAK,GAAkB,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YACzD,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,MAAM,EAAE;SAC9B,CAAC,CAAkB,CAAA;QACpB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;IACjC,CAAC;CAAA;AAVD,wCAUC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC,+CAA6D;AAC7D,+CAA0D;AAC1D,0CAAyC;AACzC,2CAA6E;AAC7E,2CAA4C;AAE5C,iDAAsE;AACtE,6BAAiC;AACjC,+BAAuB;AACvB,2CAAmC;AACnC,yCAA4C;AA2B5C,SAAsB,cAAc,CAAC,GAAQ,EAAE,GAAQ;;;QACrD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C5B,CAAC;CAAA;AAfD,8CAeC"} \ No newline at end of file diff --git a/dist/src/controllers/index.js b/dist/src/controllers/index.js index 2c14b8931..f6ad1ee44 100644 --- a/dist/src/controllers/index.js +++ b/dist/src/controllers/index.js @@ -141,6 +141,7 @@ function set(app) { app.get('/test_clear', details.clearForTesting); app.get('/query/onchain_address/:app', queries.queryOnchainAddress); app.get('/utxos', queries.listUTXOs); + app.post('/ml', actions.processMlCallback); app.post('/webhook', actions.processWebhook); app.post('/action', actions.processAction); app.get('/bots', bots.getBots); diff --git a/dist/src/controllers/index.js.map b/dist/src/controllers/index.js.map index d22d01a07..9810dcef8 100644 --- a/dist/src/controllers/index.js.map +++ b/dist/src/controllers/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAA0C;AAC1C,sCAA2C;AAC3C,kCAA8C;AAC9C,4CAA2C;AAC3C,0CAAyC;AACzC,0CAAyC;AACzC,4CAAoC;AACpC,sCAAsC;AAEtC,kEAAoF;AACpF,iCAAgC;AAChC,2CAA0C;AAC1C,+BAA8B;AAC9B,qCAAoC;AACpC,uCAAsC;AACtC,qCAAoC;AACpC,uCAAsC;AACtC,iCAAgC;AAChC,uCAAsC;AACtC,sCAAqC;AACrC,gDAA+C;AAC/C,qCAAoC;AACpC,iDAAgD;AAChD,oCAAmC;AACnC,qCAAoC;AACpC,iCAAgC;AAChC,+BAA8B;AAC9B,+BAA8B;AAC9B,2CAA0C;AAC1C,iCAAgC;AAChC,0CAAyC;AACzC,oCAAmC;AACnC,yDAAwD;AAExD,MAAM,OAAO,GAAG,IAAA,4BAAS,EAAC;IACxB,QAAQ,EAAE,IAAI;IACd,GAAG,EAAE,CAAC;IACN,eAAe,EAAE,IAAI;IACrB,aAAa,EAAE,KAAK,EAAE,sCAAsC;CAC7D,CAAC,CAAA;AAEF,SAAsB,GAAG,CAAC,GAAG;;QAC3B,WAAW,CAAC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CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa;IACtC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa;IACtC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,gBAAgB;IACpD,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,aAAa,CAAC,4BAA4B;IAC7E,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY;IACvC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,YAAY;IACtC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,oBAAoB;IACvD,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW;CACtC,CAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAA0C;AAC1C,sCAA2C;AAC3C,kCAA8C;AAC9C,4CAA2C;AAC3C,0CAAyC;AACzC,0CAAyC;AACzC,4CAAoC;AACpC,sCAAsC;AAEtC,kEAAoF;AACpF,iCAAgC;AAChC,2CAA0C;AAC1C,+BAA8B;AAC9B,qCAAoC;AACpC,uCAAsC;AACtC,qCAAoC;AACpC,uCAAsC;AACtC,iCAAgC;AAChC,uCAAsC;AACtC,sCAAqC;AACrC,gDAA+C;AAC/C,qCAAoC;AACpC,iDAAgD;AAChD,oCAAmC;AACnC,qCAAoC;AACpC,iCAAgC;AAChC,+BAA8B;AAC9B,+BAA8B;AAC9B,2CAA0C;AAC1C,iCAAgC;AAChC,0CAAyC;AACzC,oCAAmC;AACnC,yDAAwD;AAExD,MAAM,OAAO,GAAG,IAAA,4BAAS,EAAC;IACxB,QAAQ,EAAE,IAAI;IACd,GAAG,EAAE,CAAC;IACN,eAAe,EAAE,IAAI;IACrB,aAAa,EAAE,KAAK,EAAE,sCAAsC;CAC7D,CAAC,CAA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CAAC,YAAY,CAAC,EAAE,UAAU,CAAC,kBAAkB;IACtD,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,iBAAiB;IAC9C,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa;IACtC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa;IACtC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,gBAAgB;IACpD,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,aAAa,CAAC,4BAA4B;IAC7E,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY;IACvC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,YAAY;IACtC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,oBAAoB;IACvD,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW;CACtC,CAAA"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 955b50383..32b426a10 100644 --- a/package-lock.json +++ b/package-lock.json @@ -72,7 +72,7 @@ "short-uuid": "^3.1.1", "sjcl": "^1.0.8", "socket.io": "^4.4.1", - "sphinx-bot": "^0.2.39", + "sphinx-bot": "^0.2.40", "sqlite3": "5.0.11", "tail": "^2.0.3", "ts-jest": "^28.0.8", @@ -15421,9 +15421,9 @@ "license": "CC0-1.0" }, "node_modules/sphinx-bot": { - "version": "0.2.39", - "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.39.tgz", - "integrity": "sha512-u0sNCHmB6EPtcFxNWHyCHhCM9+f8wtJuPJT5Yfhwg0HMSRIvZ0txIVE/fB31N8Mr6c/vzQM20O3Zcjx4gShFqg==", + "version": "0.2.40", + "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.40.tgz", + "integrity": "sha512-OkmTlUZnm+T4BdPUxxLKZjGkiId13vzvCUJ0Gmj9zevZbhB8ficrwDaEJnQYzd19zo9i4369LgUKKC2l07eQgQ==", "dependencies": { "@types/cors": "^2.8.7", "@types/express": "^4.17.8", @@ -28764,9 +28764,9 @@ "dev": true }, "sphinx-bot": { - "version": "0.2.39", - "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.39.tgz", - "integrity": "sha512-u0sNCHmB6EPtcFxNWHyCHhCM9+f8wtJuPJT5Yfhwg0HMSRIvZ0txIVE/fB31N8Mr6c/vzQM20O3Zcjx4gShFqg==", + "version": "0.2.40", + "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.40.tgz", + "integrity": "sha512-OkmTlUZnm+T4BdPUxxLKZjGkiId13vzvCUJ0Gmj9zevZbhB8ficrwDaEJnQYzd19zo9i4369LgUKKC2l07eQgQ==", "requires": { "@types/cors": "^2.8.7", "@types/express": "^4.17.8", diff --git a/package.json b/package.json index 95d8150d6..3c7ebfe7d 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "short-uuid": "^3.1.1", "sjcl": "^1.0.8", "socket.io": "^4.4.1", - "sphinx-bot": "^0.2.39", + "sphinx-bot": "^0.2.40", "sqlite3": "5.0.11", "tail": "^2.0.3", "ts-jest": "^28.0.8", From 50859a4aed73e269ac5f5b405fe4be6b9c3e4ec0 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 11:41:17 -0700 Subject: [PATCH 06/93] ml endpoint --- src/builtin/ml.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index a126df01e..eb1ea3b38 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -48,7 +48,7 @@ export function init() { if (!host_name.startsWith('http')) { host_name = `https://${host_name}` } - const r = await fetch(`${url}/conversation`, { + const r = await fetch(`${url}/send-message-llm`, { method: 'POST', body: JSON.stringify({ message: message.content, From 44a971793ea0f7b7ba81443a2b27bba5f4bb8afe Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Fri, 4 Aug 2023 19:43:26 +0100 Subject: [PATCH 07/93] update: added ml bot to mother bot --- dist/src/builtin/mother.js | 4 ++++ dist/src/builtin/mother.js.map | 2 +- src/builtin/ml.ts | 2 +- src/builtin/mother.ts | 7 +++++++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/dist/src/builtin/mother.js b/dist/src/builtin/mother.js index 95e78cb6e..0c6111ef4 100644 --- a/dist/src/builtin/mother.js +++ b/dist/src/builtin/mother.js @@ -22,6 +22,7 @@ const config_1 = require("../utils/config"); const tribes_1 = require("../utils/tribes"); const logger_1 = require("../utils/logger"); const git_1 = require("./git"); +const ml_1 = require("./ml"); const msg_types = Sphinx.MSG_TYPE; const config = (0, config_1.loadConfig)(); const builtinBots = [ @@ -34,6 +35,7 @@ const builtinBots = [ 'sentiment', 'jarvis', 'spam_gone', + ml_1.ML_PREFIX.substring(1), ]; // else just message type const builtInBotMsgTypes = { @@ -59,6 +61,7 @@ const builtInHiddenCmd = { sentiment: ['threshold', 'timer', 'url'], jarvis: ['link', 'hide'], spam_gone: ['add', 'list', 'remove'], + [`${ml_1.ML_PREFIX.substring(1)}`]: ['url', 'api_key'], }; const builtInBotNames = { welcome: 'WelcomeBot', @@ -70,6 +73,7 @@ const builtInBotNames = { sentiment: 'SentimentBot', jarvis: 'JarvisBot', spam_gone: 'SpamGoneBot', + [`${ml_1.ML_PREFIX.substring(1)}`]: `${ml_1.ML_PREFIX.substring(1, 2).toUpperCase()}${ml_1.ML_PREFIX.substring(2)}Bot`, }; function init() { const client = new Sphinx.Client(); diff --git a/dist/src/builtin/mother.js.map b/dist/src/builtin/mother.js.map index 434837f85..e93ec51e4 100644 --- a/dist/src/builtin/mother.js.map +++ b/dist/src/builtin/mother.js.map @@ -1 +1 @@ -{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;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AA;YACxB,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;SACjC;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,EAAE,CAAA;SACV;IACH,CAAC;CAAA;AACD,SAAe,YAAY,CAAC,IAAY;;QACtC,IAAI;YACF,IAAI,QAAQ,GAAG,OAAO,CAAA;YACtB,IAAI,MAAM,CAAC,eAAe;gBAAE,QAAQ,GAAG,MAAM,CAAA;YAC7C,MAAM,CAAC,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,QAAQ,MAAM,MAAM,CAAC,WAAW,QAAQ,IAAI,EAAE,CAAC,CAAA;YACxE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;YACxB,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,YAAY,EAAE;gBACjC,OAAO,CAAC,CAAA;aACT;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;CAAA;AAED,SAAe,aAAa,CAAC,IAAgB,EAAE,OAAe;;QAC5D,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACvC,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;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SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index a126df01e..f2fba84c1 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -22,7 +22,7 @@ export function init() { client.login('_', finalAction) client.on(msg_types.MESSAGE, async (message: Sphinx.Message) => { - // if (message.author?.bot !== botPrefix) return + if (message.author?.bot !== ML_PREFIX) return const isAdmin = message.member.roles.find((role) => role.name === 'Admin') diff --git a/src/builtin/mother.ts b/src/builtin/mother.ts index 5a96dd4eb..6d846a0b0 100644 --- a/src/builtin/mother.ts +++ b/src/builtin/mother.ts @@ -11,6 +11,7 @@ import { loadConfig } from '../utils/config' import { getTribeOwnersChatByUUID } from '../utils/tribes' import { sphinxLogger } from '../utils/logger' import { GITBOT_UUID, getOrCreateGitBot } from './git' +import { ML_PREFIX } from './ml' const msg_types = Sphinx.MSG_TYPE @@ -26,6 +27,7 @@ const builtinBots = [ 'sentiment', 'jarvis', 'spam_gone', + ML_PREFIX.substring(1), ] // else just message type @@ -53,6 +55,7 @@ const builtInHiddenCmd = { sentiment: ['threshold', 'timer', 'url'], jarvis: ['link', 'hide'], spam_gone: ['add', 'list', 'remove'], + [`${ML_PREFIX.substring(1)}`]: ['url', 'api_key'], } const builtInBotNames = { @@ -65,6 +68,10 @@ const builtInBotNames = { sentiment: 'SentimentBot', jarvis: 'JarvisBot', spam_gone: 'SpamGoneBot', + [`${ML_PREFIX.substring(1)}`]: `${ML_PREFIX.substring( + 1, + 2 + ).toUpperCase()}${ML_PREFIX.substring(2)}Bot`, } export function init() { From 1a559a5ca2d34078d10dc5ee004486e1df18d14e Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Fri, 4 Aug 2023 20:02:06 +0100 Subject: [PATCH 08/93] update: added the url command --- dist/src/builtin/mother.js | 2 +- dist/src/builtin/mother.js.map | 2 +- src/builtin/ml.ts | 43 +++++++++++++++++++++++++++++++--- src/builtin/mother.ts | 7 ++---- 4 files changed, 44 insertions(+), 10 deletions(-) diff --git a/dist/src/builtin/mother.js b/dist/src/builtin/mother.js index 0c6111ef4..3c4a21c69 100644 --- a/dist/src/builtin/mother.js +++ b/dist/src/builtin/mother.js @@ -73,7 +73,7 @@ const builtInBotNames = { sentiment: 'SentimentBot', jarvis: 'JarvisBot', spam_gone: 'SpamGoneBot', - [`${ml_1.ML_PREFIX.substring(1)}`]: `${ml_1.ML_PREFIX.substring(1, 2).toUpperCase()}${ml_1.ML_PREFIX.substring(2)}Bot`, + [`${ml_1.ML_PREFIX.substring(1)}`]: ml_1.ML_BOTNAME, }; function init() { const client = new Sphinx.Client(); diff --git a/dist/src/builtin/mother.js.map b/dist/src/builtin/mother.js.map index e93ec51e4..5e4bd698d 100644 --- a/dist/src/builtin/mother.js.map +++ b/dist/src/builtin/mother.js.map @@ -1 +1 @@ -{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,qCAAoC;AACpC,kDAAmD;AACnD,8CAA4D;AAC5D,sCAA8C;AAC9C,2CAA8B;AAC9B,4CAAoC;AACpC,4CAA4C;AAC5C,4CAA0D;AAC1D,4CAA8C;AAC9C,+BAAsD;AACtD,6BAAgC;AAEhC,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,WAAW,GAAG;IAClB,SAAS;IACT,SAAS;IACT,KAAK;IACL,OAAO;IACP,eAAe;IACf,MAAM;IACN,WAA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,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;SACjC;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,EAAE,CAAA;SACV;IACH,CAAC;CAAA;AACD,SAAe,YAAY,CAAC,IAAY;;QACtC,IAAI;YACF,IAAI,QAAQ,GAAG,OAAO,CAAA;YACtB,IAAI,MAAM,CAAC,eAAe;gBAAE,QAAQ,GAAG,MAAM,CAAA;YAC7C,MAAM,CAAC,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,QAAQ,MAAM,MAAM,CAAC,WAAW,QAAQ,IAAI,EAAE,CAAC,CAAA;YACxE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;YACxB,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,YAAY,EAAE;gBACjC,OAAO,CAAC,CAAA;aACT;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;CAAA;AAED,SAAe,aAAa,CAAC,IAAgB,EAAE,OAAe;;QAC5D,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACvC,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,qCAAoC;AACpC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AAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index f2fba84c1..54391a557 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -1,7 +1,7 @@ import * as Sphinx from 'sphinx-bot' import { finalAction } from '../controllers/botapi' import { ChatRecord, models, ChatBotRecord } from '../models' -import { findBot } from './utill' +import { findBot, botResponse } from './utill' import { loadConfig } from '../utils/config' const config = loadConfig() @@ -12,6 +12,11 @@ let initted = false export const ML_PREFIX = '/ml' +export const ML_BOTNAME = `${ML_PREFIX.substring( + 1, + 2 +).toUpperCase()}${ML_PREFIX.substring(2)}Bot` + export const CALLBACKS: { [k: string]: (msg: string) => void } = {} export function init() { @@ -35,9 +40,41 @@ export function init() { let meta: MlMeta = JSON.parse(bot.meta || `{}`) const url = meta.url - if (!url) { + const api_key = meta.apiKey + if (isAdmin) { + const arr = (message.content && message.content.split(' ')) || [] + const cmd = arr[1] + + switch (cmd) { + case 'url': + const newUrl = arr[2] + if (!newUrl) { + await botResponse( + ML_BOTNAME, + 'Please provide a valid URL', + ML_PREFIX, + tribe.id, + message, + cmd + ) + return + } + meta.url = newUrl + await bot.update({ meta: JSON.stringify(meta) }) + await botResponse( + ML_BOTNAME, + 'URL updated successfully', + ML_PREFIX, + tribe.id, + message, + cmd + ) + return + } + } + if (!url || !api_key) { const embed = new Sphinx.MessageEmbed() - .setAuthor('ML Bot') + .setAuthor(ML_BOTNAME) .setDescription('not configured') .setOnlyOwner(isAdmin ? true : false) message.channel.send({ embed }) diff --git a/src/builtin/mother.ts b/src/builtin/mother.ts index 6d846a0b0..776454a8c 100644 --- a/src/builtin/mother.ts +++ b/src/builtin/mother.ts @@ -11,7 +11,7 @@ import { loadConfig } from '../utils/config' import { getTribeOwnersChatByUUID } from '../utils/tribes' import { sphinxLogger } from '../utils/logger' import { GITBOT_UUID, getOrCreateGitBot } from './git' -import { ML_PREFIX } from './ml' +import { ML_PREFIX, ML_BOTNAME } from './ml' const msg_types = Sphinx.MSG_TYPE @@ -68,10 +68,7 @@ const builtInBotNames = { sentiment: 'SentimentBot', jarvis: 'JarvisBot', spam_gone: 'SpamGoneBot', - [`${ML_PREFIX.substring(1)}`]: `${ML_PREFIX.substring( - 1, - 2 - ).toUpperCase()}${ML_PREFIX.substring(2)}Bot`, + [`${ML_PREFIX.substring(1)}`]: ML_BOTNAME, } export function init() { From 14104ba78ba2d3d9b8dbdbd305493cb924868b42 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Fri, 4 Aug 2023 20:09:59 +0100 Subject: [PATCH 09/93] update: added the help command --- src/builtin/ml.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 54391a557..600633416 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -70,6 +70,25 @@ export function init() { cmd ) return + case 'api_key': + return + default: + const embed = new Sphinx.MessageEmbed() + .setAuthor(ML_BOTNAME) + .setTitle('Bot Commands:') + .addFields([ + { + name: `Add URL to ${ML_BOTNAME}`, + value: `${ML_PREFIX} url {URL}`, + }, + { + name: `Add API_KEY to ${ML_BOTNAME}`, + value: `${ML_PREFIX} url {API_KEY}`, + }, + ]) + .setOnlyOwner(true) + message.channel.send({ embed }) + return } } if (!url || !api_key) { From e2624bc2e2a497596e2843eadca94ffb8e8ad107 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Fri, 4 Aug 2023 20:13:02 +0100 Subject: [PATCH 10/93] update: added the api_key command --- src/builtin/ml.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 600633416..d2ad37d3f 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -71,6 +71,28 @@ export function init() { ) return case 'api_key': + const newApiKey = arr[2] + if (!newApiKey) { + await botResponse( + ML_BOTNAME, + 'Please provide a valid API KEY', + ML_PREFIX, + tribe.id, + message, + cmd + ) + return + } + meta.apiKey = newApiKey + await bot.update({ meta: JSON.stringify(meta) }) + await botResponse( + ML_BOTNAME, + 'API KEY updated successfully', + ML_PREFIX, + tribe.id, + message, + cmd + ) return default: const embed = new Sphinx.MessageEmbed() From 2facb49bcd891f0076c1f7f52a5cfafb7b98c462 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Fri, 4 Aug 2023 20:15:18 +0100 Subject: [PATCH 11/93] update: initiated the ML Bot --- dist/src/builtin/index.js | 2 ++ dist/src/builtin/index.js.map | 2 +- src/builtin/index.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/src/builtin/index.js b/dist/src/builtin/index.js index 404778224..19870696e 100644 --- a/dist/src/builtin/index.js +++ b/dist/src/builtin/index.js @@ -21,6 +21,7 @@ const KickBot = require("./kick"); const SentimentBot = require("./sentiment"); const JarvisBot = require("./jarvis"); const SpamGoneBot = require("./spamGone"); +const MLBot = require("./ml"); const GitBot = require("./git"); const bots_1 = require("../controllers/bots"); Object.defineProperty(exports, "buildBotPayload", { enumerable: true, get: function () { return bots_1.buildBotPayload; } }); @@ -36,6 +37,7 @@ function init() { SentimentBot.init(); JarvisBot.init(); SpamGoneBot.init(); + MLBot.init(); }); } exports.init = init; diff --git a/dist/src/builtin/index.js.map b/dist/src/builtin/index.js.map index 48e80937d..85cbc5f3b 100644 --- a/dist/src/builtin/index.js.map +++ b/dist/src/builtin/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAmD;AACnD,wCAAuC;AACvC,sCAAqC;AACrC,wCAAuC;AACvC,kCAAiC;AACjC,oCAAmC;AACnC,oDAAmD;AACnD,kCAAiC;AACjC,4CAA2C;AAC3C,sCAAqC;AACrC,0CAAyC;AAEzC,gCAA+B;AAC/B,8CAAqD;AAqBtB,gGArBtB,sBAAe,OAqBsB;AAnB9C,SAAe,IAAI;;QACjB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,UAAU,CAAC,IAAI,EAAE,CAAA;QACjB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,MAAM,CAAC,IAAI,EAAE,CAAA;QACb,QAAQ,CAAC,IAAI,EAAE,CAAA;QACf,gBAAgB,CAAC,IAAI,EAAE,CAAA;QACvB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,YAAY,CAAC,IAAI,EAAE,CAAA;QACnB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,WAAW,CAAC,IAAI,EAAE,CAAA;IACpB,CAAC;CAAA;AAQQ,oBAAI;AANb,SAAS,cAAc,CAAC,GAAW,EAAE,SAAkB;IACrD,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,IAAA,sBAAe,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;IAC7D,CAAC,EAAE,IAAI,CAAC,CAAA;AACV,CAAC;AAEc,wCAAc"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAmD;AACnD,wCAAuC;AACvC,sCAAqC;AACrC,wCAAuC;AACvC,kCAAiC;AACjC,oCAAmC;AACnC,oDAAmD;AACnD,kCAAiC;AACjC,4CAA2C;AAC3C,sCAAqC;AACrC,0CAAyC;AACzC,8BAA6B;AAE7B,gCAA+B;AAC/B,8CAAqD;AAsBtB,gGAtBtB,sBAAe,OAsBsB;AApB9C,SAAe,IAAI;;QACjB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,UAAU,CAAC,IAAI,EAAE,CAAA;QACjB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,MAAM,CAAC,IAAI,EAAE,CAAA;QACb,QAAQ,CAAC,IAAI,EAAE,CAAA;QACf,gBAAgB,CAAC,IAAI,EAAE,CAAA;QACvB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,YAAY,CAAC,IAAI,EAAE,CAAA;QACnB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,WAAW,CAAC,IAAI,EAAE,CAAA;QAClB,KAAK,CAAC,IAAI,EAAE,CAAA;IACd,CAAC;CAAA;AAQQ,oBAAI;AANb,SAAS,cAAc,CAAC,GAAW,EAAE,SAAkB;IACrD,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,IAAA,sBAAe,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;IAC7D,CAAC,EAAE,IAAI,CAAC,CAAA;AACV,CAAC;AAEc,wCAAc"} \ No newline at end of file diff --git a/src/builtin/index.ts b/src/builtin/index.ts index 1894d68ce..f3fa2f089 100644 --- a/src/builtin/index.ts +++ b/src/builtin/index.ts @@ -9,6 +9,7 @@ import * as KickBot from './kick' import * as SentimentBot from './sentiment' import * as JarvisBot from './jarvis' import * as SpamGoneBot from './spamGone' +import * as MLBot from './ml' import { BotMsg } from '../network/interfaces' import * as GitBot from './git' import { buildBotPayload } from '../controllers/bots' @@ -24,6 +25,7 @@ async function init() { SentimentBot.init() JarvisBot.init() SpamGoneBot.init() + MLBot.init() } function builtinBotEmit(msg: BotMsg, botPrefix?: string) { From 934fdfbfe08f661f3ae7bd71898b715e36d358ad Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 12:41:13 -0700 Subject: [PATCH 12/93] add /ml to no-auth list --- src/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth.ts b/src/auth.ts index 2e3f6ab2c..59abfb426 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -133,7 +133,8 @@ function no_auth(path) { path == '/webhook' || path == '/has_admin' || path == '/initial_admin_pubkey' || - path == '/my_ip' + path == '/my_ip' || + path == '/ml' ) } From e37003c66aae40681371017b0167341a2dd38fb4 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 12:49:08 -0700 Subject: [PATCH 13/93] tsc --- dist/src/auth.js | 3 ++- dist/src/auth.js.map | 2 +- dist/src/controllers/botapi/index.js | 20 +++++++++++++++++++- dist/src/controllers/botapi/index.js.map | 2 +- dist/src/controllers/index.js | 1 + dist/src/controllers/index.js.map | 2 +- 6 files changed, 25 insertions(+), 5 deletions(-) diff --git a/dist/src/auth.js b/dist/src/auth.js index 8fe190c9a..687f2623d 100644 --- a/dist/src/auth.js +++ b/dist/src/auth.js @@ -141,7 +141,8 @@ function no_auth(path) { path == '/webhook' || path == '/has_admin' || path == '/initial_admin_pubkey' || - path == '/my_ip'); + path == '/my_ip' || + path == '/ml'); } function ownerMiddleware(req, res, next) { return __awaiter(this, void 0, void 0, function* () { diff --git a/dist/src/auth.js.map b/dist/src/auth.js.map index 51a5eb4b2..25d1cf848 100644 --- a/dist/src/auth.js.map +++ b/dist/src/auth.js.map @@ -1 +1 @@ -{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAgC;AAChC,qCAAgD;AAChD,sCAAqC;AACrC,qCAA4D;AAC5D,+CAAsD;AACtD,2CAA2C;AAC3C,yCAAuC;AACvC,wCAAuC;AACvC,qCAA2C;AAC3C,sCAAqC;AAErC,yBAAwB;AACxB,uCAA0D;AAC1D,uCAAiC;AACjC,iCAAiC;AAEjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,SAAsB,QAAQ,CAAC,GAAQ,EAAE,GAAG;;QAC1C,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,IAAI,CAAA;QAC7B,IAAI,CAAC,QAAQ,EAAE;YACb,IAAA,aAAO,EAAC,GAAG,EAAE,aAAa,CAAC,CAAA;YAC3B,OAAO,KAAK,CAAA;SACb;QAED,MAAM,UAAU,GAA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CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,CAAA;KAC7C;IACD,OAAO,MAAM,CAAC,WAAW,EAAE,CAAA;AAC7B,CAAC;AARD,kCAQC;AAED,MAAM,IAAI,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAE/D,MAAM,QAAQ,GAAG,8DAA8D,CAAA"} \ No newline at end of file diff --git a/dist/src/controllers/botapi/index.js b/dist/src/controllers/botapi/index.js index edfc36f27..9a612d3d4 100644 --- a/dist/src/controllers/botapi/index.js +++ b/dist/src/controllers/botapi/index.js @@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateAction = exports.finalAction = exports.processAction = exports.processWebhook = void 0; +exports.processMlCallback = exports.validateAction = exports.finalAction = exports.processAction = exports.processWebhook = void 0; const network = require("../../network"); const models_1 = require("../../models"); const res_1 = require("../../utils/res"); @@ -23,6 +23,7 @@ const githook_1 = require("../../utils/githook"); const dm_1 = require("./dm"); const pay_1 = require("./pay"); const broadcast_1 = require("./broadcast"); +const ml_1 = require("../../builtin/ml"); function processWebhook(req, res) { var _a; return __awaiter(this, void 0, void 0, function* () { @@ -284,4 +285,21 @@ function validateAction(a) { }); } exports.validateAction = validateAction; +function processMlCallback(req, res) { + return __awaiter(this, void 0, void 0, function* () { + const process_id = req.body.process_id; + if (!process_id) { + return (0, res_1.failure)(res, 'no process_id'); + } + const response = req.body.response; + if (!response) { + return (0, res_1.failure)(res, 'no response'); + } + if (ml_1.CALLBACKS[process_id]) { + ml_1.CALLBACKS[process_id](response); + } + (0, res_1.success)(res, { ok: true }); + }); +} +exports.processMlCallback = processMlCallback; //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/controllers/botapi/index.js.map b/dist/src/controllers/botapi/index.js.map index 26a57b993..68667b97b 100644 --- a/dist/src/controllers/botapi/index.js.map +++ b/dist/src/controllers/botapi/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC,+CAA6D;AAC7D,+CAA0D;AAC1D,0CAAyC;AACzC,2CAA6E;AAC7E,2CAA4C;AAE5C,iDAAsE;AACtE,6BAAiC;AACjC,+BAAuB;AACvB,2CAAmC;AA2BnC,SAAsB,cAAc,CAAC,GAAQ,EAAE,GAAQ;;;QACrD,qBAAY,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;QAClD,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAA;QAC9C,IAAI,CAAC,GAAG,EAAE;YACR,qBAAY,CAAC,KAAK,CAAC,mBAAmB,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACrD,OAAO,IAAA,kBAAY,EAAC,GAAG,CAAC,CAAA;SACzB;QAED,MAAM,UAAU,GACd,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;QAChE,IAAI,CAAC,UAAU,EAAE;YACf,qBAAY,CAAC,KAAK,CAAC,sBAAsB,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACxD,OAAO,IAAA,kBAAY,EAAC,GAAG,CAAC,CAAA;SACzB;QAED,MAAM,KAAK,GAAG,GAAG,CAAC,IAAoB,CAAA;QACtC,IAAI,IAAI,GAAG,EAAE,CAAA;QACb,IAAI,YAAY,IAAI,KAAK,EAAE;YACzB,IAAI,GAAG,CAAA,MAAA,KAAK,CAAC,UAAU,0CAAE,SAAS,CAAC,WAAW,EAAE,KAAI,EAAE,CAAA;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SAAS,EAAE;YACxB,qBAAY,CAAC,IAAI,CAAC,qBAAqB,MAAM,EAAE,CAAC,CAAA;SACjD;aAAM,IAAI,MAAM,KAAK,KAAK,EAAE;YAC3B,IAAA,aAAG,EAAC,CAAC,CAAC,CAAA;SACP;aAAM,IAAI,MAAM,KAAK,WAAW,EAAE;YACjC,IAAA,mBAAS,EAAC,CAAC,CAAC,CAAA;SACb;aAAM,IAAI,MAAM,KAAK,IAAI,EAAE;YAC1B,IAAA,YAAc,EAAC,CAAC,CAAC,CAAA;SAClB;aAAM;YACL,qBAAY,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA;SACrC;IACH,CAAC;CAAA;AAhGD,kCAgGC;AAMD,SAAsB,cAAc,CAAC,CAAS;;QAC5C,IAAI,CAAC,CAAC,CAAC,SAAS;YAAE,OAAO,qBAAY,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;QAC3D,MAAM,OAAO,GAAG,MAAM,IAAA,iCAAwB,EAAC,CAAC,CAAC,SAAS,CAAC,CAAA;QAC3D,IAAI,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,EAAE,CAAC;YAAE,OAAO,qBAAY,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;QAClE,IAAI,OAAO,CAAC,IAAI,KAAK,mBAAS,CAAC,UAAU,CAAC,KAAK;YAC7C,OAAO,qBAAY,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;QAC1C,MAAM,KAAK,GAAkB,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YACzD,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,MAAM,EAAE;SAC9B,CAAC,CAAkB,CAAA;QACpB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;IACjC,CAAC;CAAA;AAVD,wCAUC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA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Q,EAAE;YACb,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,aAAa,CAAC,CAAA;SACnC;QAED,IAAI,cAAS,CAAC,UAAU,CAAC,EAAE;YACzB,cAAS,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;SAChC;QAED,IAAA,aAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5B,CAAC;CAAA;AAfD,8CAeC"} \ No newline at end of file diff --git a/dist/src/controllers/index.js b/dist/src/controllers/index.js index 2c14b8931..f6ad1ee44 100644 --- a/dist/src/controllers/index.js +++ b/dist/src/controllers/index.js @@ -141,6 +141,7 @@ function set(app) { app.get('/test_clear', details.clearForTesting); app.get('/query/onchain_address/:app', queries.queryOnchainAddress); app.get('/utxos', queries.listUTXOs); + app.post('/ml', actions.processMlCallback); app.post('/webhook', actions.processWebhook); app.post('/action', actions.processAction); app.get('/bots', bots.getBots); diff --git a/dist/src/controllers/index.js.map b/dist/src/controllers/index.js.map index d22d01a07..9810dcef8 100644 --- a/dist/src/controllers/index.js.map +++ b/dist/src/controllers/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAA0C;AAC1C,sCAA2C;AAC3C,kCAA8C;AAC9C,4CAA2C;AAC3C,0CAAyC;AACzC,0CAAyC;AACzC,4CAAoC;AACpC,sCAAsC;AAEtC,kEAAoF;AACpF,iCAAgC;AAChC,2CAA0C;AAC1C,+BAA8B;AAC9B,qCAAoC;AACpC,uCAAsC;AACtC,qCAAoC;AACpC,uCAAsC;AACtC,iCAAgC;AAChC,uCAAsC;AACtC,sCAAqC;AACrC,gDAA+C;AAC/C,qCAAoC;AACpC,iDAAgD;AAChD,oCAAmC;AACnC,qCAAoC;AACpC,iCAAgC;AAChC,+BAA8B;AAC9B,+BAA8B;AAC9B,2CAA0C;AAC1C,iCAAgC;AAChC,0CA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C,SAAS,CAAC,EAAE,QAAQ,CAAC,gBAAgB;IAC/C,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,oBAAoB;IAC1D,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,oBAAoB;IAC1D,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,UAAU,CAAC,mBAAmB;IACxD,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,UAAU,CAAC,kBAAkB;IACtD,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,iBAAiB;IAC9C,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa;IACtC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa;IACtC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,gBAAgB;IACpD,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,aAAa,CAAC,4BAA4B;IAC7E,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY;IACvC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,YAAY;IACtC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,oBAAoB;IACvD,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW;CACtC,CAAA"} \ No newline at end of file From 39b75e5a5f596d70bd0e3eb8aab7c54b78f3d216 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 12:54:57 -0700 Subject: [PATCH 14/93] MlBot.init() --- dist/src/builtin/index.js | 2 ++ dist/src/builtin/index.js.map | 2 +- src/builtin/index.ts | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/src/builtin/index.js b/dist/src/builtin/index.js index 404778224..997db88dc 100644 --- a/dist/src/builtin/index.js +++ b/dist/src/builtin/index.js @@ -21,6 +21,7 @@ const KickBot = require("./kick"); const SentimentBot = require("./sentiment"); const JarvisBot = require("./jarvis"); const SpamGoneBot = require("./spamGone"); +const MlBot = require("./ml"); const GitBot = require("./git"); const bots_1 = require("../controllers/bots"); Object.defineProperty(exports, "buildBotPayload", { enumerable: true, get: function () { return bots_1.buildBotPayload; } }); @@ -36,6 +37,7 @@ function init() { SentimentBot.init(); JarvisBot.init(); SpamGoneBot.init(); + MlBot.init(); }); } exports.init = init; diff --git a/dist/src/builtin/index.js.map b/dist/src/builtin/index.js.map index 48e80937d..85cbc5f3b 100644 --- a/dist/src/builtin/index.js.map +++ b/dist/src/builtin/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAmD;AACnD,wCAAuC;AACvC,sCAAqC;AACrC,wCAAuC;AACvC,kCAAiC;AACjC,oCAAmC;AACnC,oDAAmD;AACnD,kCAAiC;AACjC,4CAA2C;AAC3C,sCAAqC;AACrC,0CAAyC;AAEzC,gCAA+B;AAC/B,8CAAqD;AAqBtB,gGArBtB,sBAAe,OAqBsB;AAnB9C,SAAe,IAAI;;QACjB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,UAAU,CAAC,IAAI,EAAE,CAAA;QACjB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,MAAM,CAAC,IAAI,EAAE,CAAA;QACb,QAAQ,CAAC,IAAI,EAAE,CAAA;QACf,gBAAgB,CAAC,IAAI,EAAE,CAAA;QACvB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,YAAY,CAAC,IAAI,EAAE,CAAA;QACnB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,WAAW,CAAC,IAAI,EAAE,CAAA;IACpB,CAAC;CAAA;AAQQ,oBAAI;AANb,SAAS,cAAc,CAAC,GAAW,EAAE,SAAkB;IACrD,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,IAAA,sBAAe,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;IAC7D,CAAC,EAAE,IAAI,CAAC,CAAA;AACV,CAAC;AAEc,wCAAc"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAmD;AACnD,wCAAuC;AACvC,sCAAqC;AACrC,wCAAuC;AACvC,kCAAiC;AACjC,oCAAmC;AACnC,oDAAmD;AACnD,kCAAiC;AACjC,4CAA2C;AAC3C,sCAAqC;AACrC,0CAAyC;AACzC,8BAA6B;AAE7B,gCAA+B;AAC/B,8CAAqD;AAsBtB,gGAtBtB,sBAAe,OAsBsB;AApB9C,SAAe,IAAI;;QACjB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,UAAU,CAAC,IAAI,EAAE,CAAA;QACjB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,MAAM,CAAC,IAAI,EAAE,CAAA;QACb,QAAQ,CAAC,IAAI,EAAE,CAAA;QACf,gBAAgB,CAAC,IAAI,EAAE,CAAA;QACvB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,YAAY,CAAC,IAAI,EAAE,CAAA;QACnB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,WAAW,CAAC,IAAI,EAAE,CAAA;QAClB,KAAK,CAAC,IAAI,EAAE,CAAA;IACd,CAAC;CAAA;AAQQ,oBAAI;AANb,SAAS,cAAc,CAAC,GAAW,EAAE,SAAkB;IACrD,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,IAAA,sBAAe,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;IAC7D,CAAC,EAAE,IAAI,CAAC,CAAA;AACV,CAAC;AAEc,wCAAc"} \ No newline at end of file diff --git a/src/builtin/index.ts b/src/builtin/index.ts index 1894d68ce..18b61d155 100644 --- a/src/builtin/index.ts +++ b/src/builtin/index.ts @@ -9,6 +9,7 @@ import * as KickBot from './kick' import * as SentimentBot from './sentiment' import * as JarvisBot from './jarvis' import * as SpamGoneBot from './spamGone' +import * as MlBot from './ml' import { BotMsg } from '../network/interfaces' import * as GitBot from './git' import { buildBotPayload } from '../controllers/bots' @@ -24,6 +25,7 @@ async function init() { SentimentBot.init() JarvisBot.init() SpamGoneBot.init() + MlBot.init() } function builtinBotEmit(msg: BotMsg, botPrefix?: string) { From dea6bdcfec6e6819dc519fa21873fa4b9d40d20b Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 13:03:57 -0700 Subject: [PATCH 15/93] ml.js --- .gitignore | 1 - dist/src/builtin/ml.js | 95 ++++++++++++++++++++++++++++++++++++++ dist/src/builtin/ml.js.map | 1 + 3 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 dist/src/builtin/ml.js create mode 100644 dist/src/builtin/ml.js.map diff --git a/.gitignore b/.gitignore index 386f37226..3a2fb959d 100644 --- a/.gitignore +++ b/.gitignore @@ -7,7 +7,6 @@ sphinx.db binaries/nodeapp-macos binaries/nodeapp-alpine -dist dist/public/uploads dist/config/app.json diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js new file mode 100644 index 000000000..0dcd63fe8 --- /dev/null +++ b/dist/src/builtin/ml.js @@ -0,0 +1,95 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.sleep = exports.init = exports.CALLBACKS = exports.ML_PREFIX = void 0; +const Sphinx = require("sphinx-bot"); +const botapi_1 = require("../controllers/botapi"); +const models_1 = require("../models"); +const utill_1 = require("./utill"); +const config_1 = require("../utils/config"); +const config = (0, config_1.loadConfig)(); +const msg_types = Sphinx.MSG_TYPE; +let initted = false; +exports.ML_PREFIX = '/ml'; +exports.CALLBACKS = {}; +function init() { + if (initted) + return; + initted = true; + const client = new Sphinx.Client(); + client.login('_', botapi_1.finalAction); + client.on(msg_types.MESSAGE, (message) => __awaiter(this, void 0, void 0, function* () { + // if (message.author?.bot !== botPrefix) return + const isAdmin = message.member.roles.find((role) => role.name === 'Admin'); + try { + const tribe = (yield models_1.models.Chat.findOne({ + where: { uuid: message.channel.id }, + })); + const bot = yield (0, utill_1.findBot)({ botPrefix: '/ML', tribe }); + let meta = JSON.parse(bot.meta || `{}`); + const url = meta.url; + if (!url) { + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription('not configured') + .setOnlyOwner(isAdmin ? true : false); + message.channel.send({ embed }); + return; + } + let host_name = config.host_name; + if (!host_name.startsWith('http')) { + host_name = `https://${host_name}`; + } + const r = yield fetch(`${url}/send-message-llm`, { + method: 'POST', + body: JSON.stringify({ + message: message.content, + webhook: `${host_name}/ml`, + }), + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }); + const j = yield r.json(); + if (!j.process_id) { + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription('failed to process message') + .setOnlyOwner(isAdmin ? true : false); + message.channel.send({ embed }); + return; + } + exports.CALLBACKS[j.process_id] = function (msg) { + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription(msg) + .setOnlyOwner(isAdmin ? true : false); + // .setOnlyUser(message.member.id) + message.channel.send({ embed }); + }; + setTimeout(() => { + delete exports.CALLBACKS[j.process_id]; + }, 5 * 60 * 1000); + } + catch (e) { + console.error(e); + } + })); +} +exports.init = init; +function sleep(ms) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => setTimeout(resolve, ms)); + }); +} +exports.sleep = sleep; +//# sourceMappingURL=ml.js.map \ No newline at end of file diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map new file mode 100644 index 000000000..4159163c4 --- /dev/null +++ b/dist/src/builtin/ml.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAE5C,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,oBAAW,CAAC,CAAA;IAE9B,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAO,OAAuB,EAAE,EAAE;QAC7D,gDAAgD;QAEhD,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;QAE1E,IAAI;YACF,MAAM,KAAK,GAAG,CAAC,MAAM,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC;gBACvC,KAAK,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE;aACpC,CAAC,CAAe,CAAA;YAEjB,MAAM,GAAG,GAAkB,MAAM,IAAA,eAAO,EAAC,EAAE,SAAS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,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;gBACvC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAM;aACP;YAED,iBAAS,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,UAAU,GAAW;gBAC7C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;qBACpC,SAAS,CAAC,QAAQ,CAAC;qBACnB,cAAc,CAAC,GAAG,CAAC;qBACnB,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;gBACvC,kCAAkC;gBAClC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;YACjC,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;YAChC,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;SACjB;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AAvED,oBAuEC;AAOD,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file From c840318f62ed0dc821517807267d20e93197ff7b Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Fri, 4 Aug 2023 21:09:48 +0100 Subject: [PATCH 16/93] update: added onlyOwner command --- src/builtin/ml.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index d2ad37d3f..eb5a1ab8c 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -28,21 +28,19 @@ export function init() { client.on(msg_types.MESSAGE, async (message: Sphinx.Message) => { if (message.author?.bot !== ML_PREFIX) return - const isAdmin = message.member.roles.find((role) => role.name === 'Admin') - try { const tribe = (await models.Chat.findOne({ where: { uuid: message.channel.id }, })) as ChatRecord - const bot: ChatBotRecord = await findBot({ botPrefix: '/ML', tribe }) + const bot: ChatBotRecord = await findBot({ botPrefix: ML_PREFIX, tribe }) let meta: MlMeta = JSON.parse(bot.meta || `{}`) const url = meta.url const api_key = meta.apiKey - if (isAdmin) { - const arr = (message.content && message.content.split(' ')) || [] + const arr = (message.content && message.content.split(' ')) || [] + if (isAdmin && arr[0] === ML_PREFIX) { const cmd = arr[1] switch (cmd) { @@ -116,8 +114,8 @@ export function init() { if (!url || !api_key) { const embed = new Sphinx.MessageEmbed() .setAuthor(ML_BOTNAME) - .setDescription('not configured') - .setOnlyOwner(isAdmin ? true : false) + .setDescription('not configured!') + .setOnlyUser(parseInt(message.member.id || '0')) message.channel.send({ embed }) return } @@ -142,7 +140,7 @@ export function init() { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') .setDescription('failed to process message') - .setOnlyOwner(isAdmin ? true : false) + .setOnlyUser(parseInt(message.member.id || '0')) message.channel.send({ embed }) return } @@ -151,8 +149,7 @@ export function init() { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') .setDescription(msg) - .setOnlyOwner(isAdmin ? true : false) - // .setOnlyUser(message.member.id) + .setOnlyUser(parseInt(message.member.id || '0')) message.channel.send({ embed }) } From 12b0ee9e1ad72ba7b1ce17350086a4e1ddfb24fb Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 13:14:45 -0700 Subject: [PATCH 17/93] sphinx-bots 0.2.40 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 95d8150d6..3c7ebfe7d 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "short-uuid": "^3.1.1", "sjcl": "^1.0.8", "socket.io": "^4.4.1", - "sphinx-bot": "^0.2.39", + "sphinx-bot": "^0.2.40", "sqlite3": "5.0.11", "tail": "^2.0.3", "ts-jest": "^28.0.8", From d1661a8088bcc622218149ec79ad499db3688a00 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 13:30:32 -0700 Subject: [PATCH 18/93] fix fetch --- dist/src/builtin/ml.js | 5 +- dist/src/builtin/ml.js.map | 2 +- .../tests/controllers/feeDeduction.test.js | 59 ------------------- .../controllers/feeDeduction.test.js.map | 1 - .../src/tests/controllers/swarmInvite.test.js | 41 ------------- .../tests/controllers/swarmInvite.test.js.map | 1 - dist/src/tests/utils/invites/createInvite.js | 34 ----------- .../tests/utils/invites/createInvite.js.map | 1 - dist/src/tests/utils/invites/getInvite.js | 29 --------- dist/src/tests/utils/invites/getInvite.js.map | 1 - dist/src/tests/utils/invites/index.js | 10 ---- dist/src/tests/utils/invites/index.js.map | 1 - dist/src/tests/utils/invites/payInvite.js | 29 --------- dist/src/tests/utils/invites/payInvite.js.map | 1 - src/builtin/ml.ts | 3 +- 15 files changed, 6 insertions(+), 212 deletions(-) delete mode 100644 dist/src/tests/controllers/feeDeduction.test.js delete mode 100644 dist/src/tests/controllers/feeDeduction.test.js.map delete mode 100644 dist/src/tests/controllers/swarmInvite.test.js delete mode 100644 dist/src/tests/controllers/swarmInvite.test.js.map delete mode 100644 dist/src/tests/utils/invites/createInvite.js delete mode 100644 dist/src/tests/utils/invites/createInvite.js.map delete mode 100644 dist/src/tests/utils/invites/getInvite.js delete mode 100644 dist/src/tests/utils/invites/getInvite.js.map delete mode 100644 dist/src/tests/utils/invites/index.js delete mode 100644 dist/src/tests/utils/invites/index.js.map delete mode 100644 dist/src/tests/utils/invites/payInvite.js delete mode 100644 dist/src/tests/utils/invites/payInvite.js.map diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 59c14949d..92fbe25f9 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -15,6 +15,7 @@ const botapi_1 = require("../controllers/botapi"); const models_1 = require("../models"); const utill_1 = require("./utill"); const config_1 = require("../utils/config"); +const node_fetch_1 = require("node-fetch"); const config = (0, config_1.loadConfig)(); const msg_types = Sphinx.MSG_TYPE; let initted = false; @@ -95,7 +96,7 @@ function init() { if (!host_name.startsWith('http')) { host_name = `https://${host_name}`; } - const r = yield fetch(`${url}/send-message-llm`, { + const r = yield (0, node_fetch_1.default)(`${url}/send-message-llm`, { method: 'POST', body: JSON.stringify({ message: message.content, @@ -127,7 +128,7 @@ function init() { }, 5 * 60 * 1000); } catch (e) { - console.error(e); + console.error('ML CALL FAILED', e); } })); } diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 1ee1dfe15..1ee9fc05e 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAA8C;AAC9C,4CAA4C;AAE5C,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,M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G,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;SACnC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA7ID,oBA6IC;AAOD,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/dist/src/tests/controllers/feeDeduction.test.js b/dist/src/tests/controllers/feeDeduction.test.js deleted file mode 100644 index c206a5dc3..000000000 --- a/dist/src/tests/controllers/feeDeduction.test.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.testFeesDeduction = void 0; -const ava_1 = require("ava"); -const helpers = require("../utils/helpers"); -// import { -// sendMessageAndCheckDecryption, -// sendInvoice, -// payInvoice, -// } from '../utils/msg' -const nodes_1 = require("../nodes"); -const keysend_1 = require("../utils/keysend"); -const get_1 = require("../utils/get"); -/* - npx ava src/tests/controllers/feeDeduction.test.ts --verbose --serial --timeout=2m -*/ -(0, ava_1.default)('Fees: update channel policy, make keysend payment, check balance', (t) => __awaiter(void 0, void 0, void 0, function* () { - yield testFeesDeduction(t, 0, 1, 2, 4); -})); -function testFeesDeduction(t, index1, index2, index3, index5) { - return __awaiter(this, void 0, void 0, function* () { - let alice = nodes_1.default[index1]; - let bob = nodes_1.default[index2]; - let carol = nodes_1.default[index3]; - let virtualNode0 = nodes_1.default[index5]; - const newFee = 10; - const channelUpdate2 = yield helpers.updateChannelPolicy(t, alice, 10); - t.true(channelUpdate2.success, 'Channel policy is updated successfully'); - yield helpers.sleep(4000); - const getBalanceBefore = yield (0, get_1.getBalance)(t, virtualNode0); - const keysend_amount = 80; - //VirtualNode0 sent some sats to Carol - const keysend3 = yield (0, keysend_1.keysend)(t, virtualNode0, carol, keysend_amount); - t.true(keysend3.success, 'Keysend payment should be successful'); - const getBalanceAfter = yield (0, get_1.getBalance)(t, virtualNode0); - const total_cost = newFee + keysend_amount; - t.true(getBalanceBefore - getBalanceAfter === total_cost, 'Balance difference should be fee plus amount sent'); - const getBalanceBefore2 = yield (0, get_1.getBalance)(t, virtualNode0); - const keysend_amount2 = 80; - yield helpers.sleep(1000); - //VirtualNode0 sent some sats to Bob - const keysend4 = yield (0, keysend_1.keysend)(t, virtualNode0, bob, keysend_amount2); - t.true(keysend4.success, 'Keysend payment should be successful'); - const getBalanceAfter2 = yield (0, get_1.getBalance)(t, virtualNode0); - const total_cost2 = newFee + keysend_amount; - t.true(getBalanceBefore2 - getBalanceAfter2 === total_cost2, 'Balance difference should be fee plus amount sent'); - }); -} -exports.testFeesDeduction = testFeesDeduction; -//# sourceMappingURL=feeDeduction.test.js.map \ No newline at end of file diff --git a/dist/src/tests/controllers/feeDeduction.test.js.map b/dist/src/tests/controllers/feeDeduction.test.js.map deleted file mode 100644 index 3eb88f7e9..000000000 --- a/dist/src/tests/controllers/feeDeduction.test.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"feeDeduction.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/feeDeduction.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,4CAA2C;AAC3C,WAAW;AACX,mCAAmC;AACnC,iBAAiB;AACjB,gBAAgB;AAChB,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GAAG,MAAM,GAAG,cAAc,CAAA;QAE1C,CAAC,CAAC,IAAI,CACJ,gBAAgB,GAAG,eAAe,KAAK,UAAU,EACjD,mDAAmD,CACpD,CAAA;QAED,MAAM,iBAAiB,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,CAAC,CAAA;QAE3D,MAAM,eAAe,GAAG,EAAE,CAAA;QAC1B,MAAM,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QACzB,oCAAoC;QACpC,MAAM,QAAQ,GAAG,MAAM,IAAA,iBAAO,EAAC,CAAC,EAAE,YAAY,EAAE,GAAG,EAAE,eAAe,CAAC,CAAA;QACrE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,sCAAsC,CAAC,CAAA;QAEhE,MAAM,gBAAgB,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,CAAC,CAAA;QAC1D,MAAM,WAAW,GAAG,MAAM,GAAG,cAAc,CAAA;QAE3C,CAAC,CAAC,IAAI,CACJ,iBAAiB,GAAG,gBAAgB,KAAK,WAAW,EACpD,mDAAmD,CACpD,CAAA;IACH,CAAC;CAAA;AAzCD,8CAyCC"} \ No newline at end of file diff --git a/dist/src/tests/controllers/swarmInvite.test.js b/dist/src/tests/controllers/swarmInvite.test.js deleted file mode 100644 index ce7429538..000000000 --- a/dist/src/tests/controllers/swarmInvite.test.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.swarmInvite = void 0; -const ava_1 = require("ava"); -const invites_1 = require("../utils/invites"); -const nodes_1 = require("../nodes"); -const helpers_1 = require("../utils/helpers"); -/* -npx ava src/tests/controllers/swarmInvite.test.ts --verbose --serial --timeout=2m -*/ -(0, ava_1.default)('test boostPayment: create tribe, join tribe, send messages, boost messages, leave tribe, delete tribe', (t) => __awaiter(void 0, void 0, void 0, function* () { - yield swarmInvite(t, 3, 4, 5); -})); -function swarmInvite(t, index1, index2, index3) { - return __awaiter(this, void 0, void 0, function* () { - //TWO NODES SEND IMAGES WITHIN A TRIBE ===> - let node1 = nodes_1.default[index1]; - let node2 = nodes_1.default[index2]; - let node3 = nodes_1.default[index3]; - console.log(`Checking swarm invite for ${node1.alias} and ${node2.alias} and ${node3.alias}`); - // Create Invite - const invite = yield (0, invites_1.createInvite)(t, node2); - t.true(invite.success, 'Invite should be created'); - const paidInvite = yield (0, invites_1.payInvite)(t, node2, invite.contact.invite.invite_string); - t.true(paidInvite.success, 'Invite should have been paid for'); - yield (0, helpers_1.sleep)(70000); - const finishedInvite = yield (0, invites_1.getInvite)(t, node2, paidInvite.response.invite.invite_string); - t.truthy(finishedInvite.response.invite.connection_string, 'Connection string should exist'); - }); -} -exports.swarmInvite = swarmInvite; -//# sourceMappingURL=swarmInvite.test.js.map \ No newline at end of file diff --git a/dist/src/tests/controllers/swarmInvite.test.js.map b/dist/src/tests/controllers/swarmInvite.test.js.map deleted file mode 100644 index c5f029dfb..000000000 --- a/dist/src/tests/controllers/swarmInvite.test.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"swarmInvite.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/swarmInvite.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAqE;AACrE,oCAA4B;AAC5B,8CAAwC;AAExC;;EAEE;AAEF,IAAA,aAAI,EAAC,uGAAuG,EAAE,CAAO,CAAC,EAAE,EAAE;IACxH,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AAC/B,CAAC,CAAA,CAAC,CAAA;AAEF,SAAsB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;QACzD,2CAA2C;QAC3C,IAAI,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACzB,IAAI,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACzB,IAAI,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QAEzB,OAAO,CAAC,GAAG,CACT,6BAA6B,KAAK,CAAC,KAAK,QAAQ,KAAK,CAAC,KAAK,QAAQ,KAAK,CAAC,KAAK,EAAE,CACjF,CAAA;QAED,gBAAgB;QAChB,MAAM,MAAM,GAAG,MAAM,IAAA,sBAAY,EAAC,CAAC,EAAE,KAAK,CAAC,CAAA;QAC3C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,0BAA0B,CAAC,CAAA;QAElD,MAAM,UAAU,GAAG,MAAM,IAAA,mBAAS,EAChC,CAAC,EACD,KAAK,EACL,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CACpC,CAAA;QACD,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,kCAAkC,CAAC,CAAA;QAE9D,MAAM,IAAA,eAAK,EAAC,KAAK,CAAC,CAAA;QAClB,MAAM,cAAc,GAAG,MAAM,IAAA,mBAAS,EACpC,CAAC,EACD,KAAK,EACL,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CACzC,CAAA;QACD,CAAC,CAAC,MAAM,CACN,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAChD,gCAAgC,CACjC,CAAA;IACH,CAAC;CAAA;AA/BD,kCA+BC"} \ No newline at end of file diff --git a/dist/src/tests/utils/invites/createInvite.js b/dist/src/tests/utils/invites/createInvite.js deleted file mode 100644 index b040c95d2..000000000 --- a/dist/src/tests/utils/invites/createInvite.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createInvite = void 0; -const http = require("ava-http"); -const helpers_1 = require("../../utils/helpers"); -function createInvite(t, node1) { - return __awaiter(this, void 0, void 0, function* () { - //create invite object - try { - const v = { - nickname: 'new user', - welcome_message: 'welcome to sphinx', - }; - //post invite - const r = yield http.post(node1.external_ip + '/invites', (0, helpers_1.makeArgs)(node1, v)); - t.true(r.success, 'invites should have been created'); - return r; - } - catch (error) { - return error.error; - } - }); -} -exports.createInvite = createInvite; -//# sourceMappingURL=createInvite.js.map \ No newline at end of file diff --git a/dist/src/tests/utils/invites/createInvite.js.map b/dist/src/tests/utils/invites/createInvite.js.map deleted file mode 100644 index f3c79efb4..000000000 --- a/dist/src/tests/utils/invites/createInvite.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createInvite.js","sourceRoot":"","sources":["../../../../../src/tests/utils/invites/createInvite.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAiC;AACjC,iDAA8C;AAE9C,SAAsB,YAAY,CAAC,CAAC,EAAE,KAAK;;QACzC,sBAAsB;QACtB,IAAI;YACF,MAAM,CAAC,GAAG;gBACR,QAAQ,EAAE,UAAU;gBACpB,eAAe,EAAE,mBAAmB;aACrC,CAAA;YAED,aAAa;YACb,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CACvB,KAAK,CAAC,WAAW,GAAG,UAAU,EAC9B,IAAA,kBAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,CACnB,CAAA;YACD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,kCAAkC,CAAC,CAAA;YAErD,OAAO,CAAC,CAAA;SACT;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,KAAK,CAAC,KAAK,CAAA;SACnB;IACH,CAAC;CAAA;AAnBD,oCAmBC"} \ No newline at end of file diff --git a/dist/src/tests/utils/invites/getInvite.js b/dist/src/tests/utils/invites/getInvite.js deleted file mode 100644 index 0fa2de361..000000000 --- a/dist/src/tests/utils/invites/getInvite.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getInvite = void 0; -const http = require("ava-http"); -const helpers_1 = require("../../utils/helpers"); -function getInvite(t, node1, invite_string) { - return __awaiter(this, void 0, void 0, function* () { - try { - //get invite details - const r = yield http.get(`${node1.external_ip}/invites/${invite_string}`, (0, helpers_1.makeArgs)(node1)); - t.true(r.success, 'invoice should exist'); - return r; - } - catch (error) { - return error.error; - } - }); -} -exports.getInvite = getInvite; -//# sourceMappingURL=getInvite.js.map \ No newline at end of file diff --git a/dist/src/tests/utils/invites/getInvite.js.map b/dist/src/tests/utils/invites/getInvite.js.map deleted file mode 100644 index 12d8b1a8a..000000000 --- a/dist/src/tests/utils/invites/getInvite.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getInvite.js","sourceRoot":"","sources":["../../../../../src/tests/utils/invites/getInvite.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAiC;AACjC,iDAA8C;AAE9C,SAAsB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa;;QACrD,IAAI;YACF,oBAAoB;YACpB,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,GAAG,CACtB,GAAG,KAAK,CAAC,WAAW,YAAY,aAAa,EAAE,EAC/C,IAAA,kBAAQ,EAAC,KAAK,CAAC,CAChB,CAAA;YACD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,sBAAsB,CAAC,CAAA;YAEzC,OAAO,CAAC,CAAA;SACT;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,KAAK,CAAC,KAAK,CAAA;SACnB;IACH,CAAC;CAAA;AAbD,8BAaC"} \ No newline at end of file diff --git a/dist/src/tests/utils/invites/index.js b/dist/src/tests/utils/invites/index.js deleted file mode 100644 index 5b075d673..000000000 --- a/dist/src/tests/utils/invites/index.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getInvite = exports.payInvite = exports.createInvite = void 0; -var createInvite_1 = require("./createInvite"); -Object.defineProperty(exports, "createInvite", { enumerable: true, get: function () { return createInvite_1.createInvite; } }); -var payInvite_1 = require("./payInvite"); -Object.defineProperty(exports, "payInvite", { enumerable: true, get: function () { return payInvite_1.payInvite; } }); -var getInvite_1 = require("./getInvite"); -Object.defineProperty(exports, "getInvite", { enumerable: true, get: function () { return getInvite_1.getInvite; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/tests/utils/invites/index.js.map b/dist/src/tests/utils/invites/index.js.map deleted file mode 100644 index b0b7c0945..000000000 --- a/dist/src/tests/utils/invites/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/tests/utils/invites/index.ts"],"names":[],"mappings":";;;AAAA,+CAA6C;AAApC,4GAAA,YAAY,OAAA;AACrB,yCAAuC;AAA9B,sGAAA,SAAS,OAAA;AAClB,yCAAuC;AAA9B,sGAAA,SAAS,OAAA"} \ No newline at end of file diff --git a/dist/src/tests/utils/invites/payInvite.js b/dist/src/tests/utils/invites/payInvite.js deleted file mode 100644 index 5906fa609..000000000 --- a/dist/src/tests/utils/invites/payInvite.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.payInvite = void 0; -const http = require("ava-http"); -const helpers_1 = require("../../utils/helpers"); -function payInvite(t, node1, invite_string) { - return __awaiter(this, void 0, void 0, function* () { - try { - //pay for invite created - const r = yield http.post(`${node1.external_ip}/invites/${invite_string}/pay`, (0, helpers_1.makeArgs)(node1)); - t.true(r.success, 'invites invoice should have been payed'); - return r; - } - catch (error) { - return error.error; - } - }); -} -exports.payInvite = payInvite; -//# sourceMappingURL=payInvite.js.map \ No newline at end of file diff --git a/dist/src/tests/utils/invites/payInvite.js.map b/dist/src/tests/utils/invites/payInvite.js.map deleted file mode 100644 index 1bd9c99ad..000000000 --- a/dist/src/tests/utils/invites/payInvite.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"payInvite.js","sourceRoot":"","sources":["../../../../../src/tests/utils/invites/payInvite.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAiC;AACjC,iDAA8C;AAE9C,SAAsB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa;;QACrD,IAAI;YACF,wBAAwB;YACxB,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CACvB,GAAG,KAAK,CAAC,WAAW,YAAY,aAAa,MAAM,EACnD,IAAA,kBAAQ,EAAC,KAAK,CAAC,CAChB,CAAA;YACD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,wCAAwC,CAAC,CAAA;YAE3D,OAAO,CAAC,CAAA;SACT;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,KAAK,CAAC,KAAK,CAAA;SACnB;IACH,CAAC;CAAA;AAbD,8BAaC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index a5882e591..c1e1c3c73 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -3,6 +3,7 @@ import { finalAction } from '../controllers/botapi' import { ChatRecord, models, ChatBotRecord } from '../models' import { findBot, botResponse } from './utill' import { loadConfig } from '../utils/config' +import fetch from 'node-fetch' const config = loadConfig() @@ -157,7 +158,7 @@ export function init() { delete CALLBACKS[j.process_id] }, 5 * 60 * 1000) } catch (e) { - console.error(e) + console.error('ML CALL FAILED', e) } }) } From 7d01e032f5e070df94aab081943fad643169d1a4 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 13:34:56 -0700 Subject: [PATCH 19/93] logs --- dist/src/builtin/ml.js | 1 + dist/src/builtin/ml.js.map | 2 +- dist/src/controllers/botapi/index.js | 1 + dist/src/controllers/botapi/index.js.map | 2 +- src/builtin/ml.ts | 1 + src/controllers/botapi/index.ts | 1 + 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 92fbe25f9..9e1b4a8d2 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -108,6 +108,7 @@ function init() { }, }); const j = yield r.json(); + console.log('ML body j', j); if (!j.process_id) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 1ee9fc05e..2d9944999 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAA8C;AAC9C,4CAA4C;AAC5C,2CAA8B;AAE9B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,oBAAW,CAAC,CAAA;IAE9B,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAO,OAAuB,EAAE,EAAE;;QAC7D,IAAI,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,GAAG,MAAK,iBAAS;YAAE,OAAM;QAC7C,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;QAC1E,IAAI;YACF,MAAM,KAAK,GAAG,CAAC,MAAM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/dist/src/controllers/botapi/index.js index 9a612d3d4..c314635f7 100644 --- a/dist/src/controllers/botapi/index.js +++ b/dist/src/controllers/botapi/index.js @@ -287,6 +287,7 @@ function validateAction(a) { exports.validateAction = validateAction; function processMlCallback(req, res) { return __awaiter(this, void 0, void 0, function* () { + console.log('ML BODY', req.body); const process_id = req.body.process_id; if (!process_id) { return (0, res_1.failure)(res, 'no process_id'); diff --git a/dist/src/controllers/botapi/index.js.map b/dist/src/controllers/botapi/index.js.map index 68667b97b..78058e316 100644 --- a/dist/src/controllers/botapi/index.js.map +++ b/dist/src/controllers/botapi/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC,+CAA6D;AAC7D,+CAA0D;AAC1D,0CAAyC;AACzC,2CAA6E;AAC7E,2CAA4C;AAE5C,iDAAsE;AACtE,6BAAiC;AACjC,+BAAuB;AACvB,2CAAmC;AACnC,yCAA4C;AA2B5C,SAAsB,cAAc,CAAC,GAAQ,EAAE,GAAQ;;;QACrD,qBAAY,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;QAClD,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAA;QAC9C,IAAI,CAAC,GAAG,EAAE;YACR,qBAAY,CAAC,KAAK,CAAC,mBAAmB,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACrD,OAAO,IAAA,kBAAY,EAAC,GAAG,CAAC,CAAA;SACzB;QAED,MAAM,UAAU,GACd,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;QAChE,IAAI,CAAC,UAAU,EAAE;YACf,qBAAY,CAAC,KAAK,CAAC,sBAAsB,EAAE,gBAAO,CA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C,OAAO,CAAC;YACzD,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,MAAM,EAAE;SAC9B,CAAC,CAAkB,CAAA;QACpB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;IACjC,CAAC;CAAA;AAVD,wCAUC;AAED,SAAsB,iBAAiB,CAAC,GAAQ,EAAE,GAAQ;;QACxD,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,CAAC,UAAU,CAAA;QACtC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,eAAe,CAAC,CAAA;SACrC;QACD,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAA;QAClC,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,aAAa,CAAC,CAAA;SACnC;QAED,IAAI,cAAS,CAAC,UAAU,CAAC,EAAE;YACzB,cAAS,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;SAChC;QAED,IAAA,aAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5B,CAAC;CAAA;AAfD,8CAeC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC,+CAA6D;AAC7D,+CAA0D;AAC1D,0CAAyC;AACzC,2CAA6E;AAC7E,2CAA4C;AAE5C,iDAAsE;AACtE,6BAAiC;AACjC,+BAAuB;AACvB,2CAAmC;AACnC,yCAA4C;AA2B5C,SAAsB,cAAc,CAAC,GAAQ,EAAE,GAAQ;;;QACrD,qBAAY,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;QAClD,MAAM,GAAG,GAAG,GAAG,CAAC,OA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newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index c1e1c3c73..7c55bc7a7 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -137,6 +137,7 @@ export function init() { }, }) const j = await r.json() + console.log('ML body j', j) if (!j.process_id) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') diff --git a/src/controllers/botapi/index.ts b/src/controllers/botapi/index.ts index a379daa94..444537b27 100644 --- a/src/controllers/botapi/index.ts +++ b/src/controllers/botapi/index.ts @@ -329,6 +329,7 @@ export async function validateAction(a: Action): Promise { } export async function processMlCallback(req: Req, res: Res): Promise { + console.log('ML BODY', req.body) const process_id = req.body.process_id if (!process_id) { return failure(res, 'no process_id') From 548409a4528e34f9997c394fbf2ab38a58054aed Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 13:35:39 -0700 Subject: [PATCH 20/93] log hostname --- dist/src/builtin/ml.js | 1 + dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 9e1b4a8d2..1d5716138 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -96,6 +96,7 @@ function init() { if (!host_name.startsWith('http')) { host_name = `https://${host_name}`; } + console.log('ml bot hostname', host_name); const r = yield (0, node_fetch_1.default)(`${url}/send-message-llm`, { method: 'POST', body: JSON.stringify({ diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 2d9944999..8c552ff03 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAA8C;AAC9C,4CAA4C;AAC5C,2CAA8B;AAE9B,MAAM,MAAM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,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;gBAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAM;aACP;YAED,iBAAS,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,UAAU,GAAW;gBAC7C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;qBACpC,SAAS,CAAC,QAAQ,CAAC;qBACnB,cAAc,CAAC,GAAG,CAAC;qBACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;gBAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;YACjC,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;YAChC,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;SACnC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA/ID,oBA+IC;AAOD,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 7c55bc7a7..3ad4ed739 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -125,6 +125,7 @@ export function init() { if (!host_name.startsWith('http')) { host_name = `https://${host_name}` } + console.log('ml bot hostname', host_name) const r = await fetch(`${url}/send-message-llm`, { method: 'POST', body: JSON.stringify({ From 9bdfe8089ce6a6057a57d97cfae90dba82dadb28 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 13:38:47 -0700 Subject: [PATCH 21/93] ml callback body --- dist/src/controllers/botapi/index.js | 8 ++++++-- dist/src/controllers/botapi/index.js.map | 2 +- src/controllers/botapi/index.ts | 8 ++++++-- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/dist/src/controllers/botapi/index.js b/dist/src/controllers/botapi/index.js index c314635f7..856380e05 100644 --- a/dist/src/controllers/botapi/index.js +++ b/dist/src/controllers/botapi/index.js @@ -288,11 +288,15 @@ exports.validateAction = validateAction; function processMlCallback(req, res) { return __awaiter(this, void 0, void 0, function* () { console.log('ML BODY', req.body); - const process_id = req.body.process_id; + const body = req.body.body; + if (!body) { + return (0, res_1.failure)(res, 'no body'); + } + const process_id = body.process_id; if (!process_id) { return (0, res_1.failure)(res, 'no process_id'); } - const response = req.body.response; + const response = body.response; if (!response) { return (0, res_1.failure)(res, 'no response'); } diff --git a/dist/src/controllers/botapi/index.js.map b/dist/src/controllers/botapi/index.js.map index 78058e316..5fe2b7bae 100644 --- a/dist/src/controllers/botapi/index.js.map +++ b/dist/src/controllers/botapi/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC,+CAA6D;AAC7D,+CAA0D;AAC1D,0CAAyC;AACzC,2CAA6E;AAC7E,2CAA4C;AAE5C,iDAAsE;AACtE,6BAAiC;AACjC,+BAAuB;AACvB,2CAAmC;AACnC,yCAA4C;AA2B5C,SAAsB,cAAc,CAAC,GAAQ,EAAE,GAAQ;;;QACrD,qBAAY,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;QAClD,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CA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AC,IAAI,EAAE;YACT,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,SAAS,CAAC,CAAA;SAC/B;QACD,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;QAClC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,eAAe,CAAC,CAAA;SACrC;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,aAAa,CAAC,CAAA;SACnC;QAED,IAAI,cAAS,CAAC,UAAU,CAAC,EAAE;YACzB,cAAS,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;SAChC;QAED,IAAA,aAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5B,CAAC;CAAA;AApBD,8CAoBC"} \ No newline at end of file diff --git a/src/controllers/botapi/index.ts b/src/controllers/botapi/index.ts index 444537b27..7a5f0be62 100644 --- a/src/controllers/botapi/index.ts +++ b/src/controllers/botapi/index.ts @@ -330,11 +330,15 @@ export async function validateAction(a: Action): Promise { export async function processMlCallback(req: Req, res: Res): Promise { console.log('ML BODY', req.body) - const process_id = req.body.process_id + const body = req.body.body + if (!body) { + return failure(res, 'no body') + } + const process_id = body.process_id if (!process_id) { return failure(res, 'no process_id') } - const response = req.body.response + const response = body.response if (!response) { return failure(res, 'no response') } From ad8016bfd0342f65e68dbc8dc47739a82d25056b Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 13:41:37 -0700 Subject: [PATCH 22/93] j body --- dist/src/builtin/ml.js | 8 +++++--- dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 8 +++++--- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 1d5716138..cc710faeb 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -110,7 +110,8 @@ function init() { }); const j = yield r.json(); console.log('ML body j', j); - if (!j.process_id) { + const process_id = j.body && j.body.process_id; + if (!process_id) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') .setDescription('failed to process message') @@ -118,7 +119,8 @@ function init() { message.channel.send({ embed }); return; } - exports.CALLBACKS[j.process_id] = function (msg) { + console.log('PROCESS ID!!!', process_id); + exports.CALLBACKS[process_id] = function (msg) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') .setDescription(msg) @@ -126,7 +128,7 @@ function init() { message.channel.send({ embed }); }; setTimeout(() => { - delete exports.CALLBACKS[j.process_id]; + delete exports.CALLBACKS[process_id]; }, 5 * 60 * 1000); } catch (e) { diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 8c552ff03..9468ef678 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAA8C;AAC9C,4CAA4C;AAC5C,2CAA8B;AAE9B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MA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AAY,EAAE;qBACpC,SAAS,CAAC,QAAQ,CAAC;qBACnB,cAAc,CAAC,GAAG,CAAC;qBACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;gBAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;YACjC,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;SACnC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AAjJD,oBAiJC;AAOD,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 3ad4ed739..c658e2237 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -139,7 +139,8 @@ export function init() { }) const j = await r.json() console.log('ML body j', j) - if (!j.process_id) { + const process_id = j.body && j.body.process_id + if (!process_id) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') .setDescription('failed to process message') @@ -148,7 +149,8 @@ export function init() { return } - CALLBACKS[j.process_id] = function (msg: string) { + console.log('PROCESS ID!!!', process_id) + CALLBACKS[process_id] = function (msg: string) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') .setDescription(msg) @@ -157,7 +159,7 @@ export function init() { } setTimeout(() => { - delete CALLBACKS[j.process_id] + delete CALLBACKS[process_id] }, 5 * 60 * 1000) } catch (e) { console.error('ML CALL FAILED', e) From 1a20afc06a53763eb23f5be9592fd473483f6f14 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 13:44:32 -0700 Subject: [PATCH 23/93] parsebody --- dist/src/builtin/ml.js | 11 ++++++++++- dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 11 ++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index cc710faeb..6e0b32e8d 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -110,7 +110,16 @@ function init() { }); const j = yield r.json(); console.log('ML body j', j); - const process_id = j.body && j.body.process_id; + if (!j.body) { + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription('failed to process message (no body)') + .setOnlyUser(parseInt(message.member.id || '0')); + message.channel.send({ embed }); + return; + } + const body = JSON.parse(j.body); + let process_id = body.process_id; if (!process_id) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 9468ef678..ace67cb86 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAA8C;AAC9C,4CAA4C;AAC5C,2CAA8B;AAE9B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,S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CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index c658e2237..79527df16 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -139,7 +139,16 @@ export function init() { }) const j = await r.json() console.log('ML body j', j) - const process_id = j.body && j.body.process_id + if (!j.body) { + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription('failed to process message (no body)') + .setOnlyUser(parseInt(message.member.id || '0')) + message.channel.send({ embed }) + return + } + const body = JSON.parse(j.body) + let process_id = body.process_id if (!process_id) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') From 2563da828540f5ee60bda7f84d2b345688e1aa65 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 13:48:46 -0700 Subject: [PATCH 24/93] del cb --- dist/src/builtin/ml.js | 1 + dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 6e0b32e8d..cf31fbf39 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -135,6 +135,7 @@ function init() { .setDescription(msg) .setOnlyUser(parseInt(message.member.id || '0')); message.channel.send({ embed }); + delete exports.CALLBACKS[process_id]; }; setTimeout(() => { delete exports.CALLBACKS[process_id]; diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index ace67cb86..a1ebd9f42 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAA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,CAAA;gBAC/B,OAAM;aACP;YAED,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,UAAU,CAAC,CAAA;YACxC,iBAAS,CAAC,UAAU,CAAC,GAAG,UAAU,GAAW;gBAC3C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;qBACpC,SAAS,CAAC,QAAQ,CAAC;qBACnB,cAAc,CAAC,GAAG,CAAC;qBACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;gBAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;SACnC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA3JD,oBA2JC;AAOD,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 79527df16..a1520b64a 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -165,6 +165,7 @@ export function init() { .setDescription(msg) .setOnlyUser(parseInt(message.member.id || '0')) message.channel.send({ embed }) + delete CALLBACKS[process_id] } setTimeout(() => { From 17cbf47aa06b803a08f518a1ec0f0571498f269c Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 13:50:56 -0700 Subject: [PATCH 25/93] fix replay --- dist/src/controllers/botapi/broadcast.js | 2 +- dist/src/controllers/botapi/broadcast.js.map | 2 +- src/controllers/botapi/broadcast.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/src/controllers/botapi/broadcast.js b/dist/src/controllers/botapi/broadcast.js index af476e86a..78e5972cb 100644 --- a/dist/src/controllers/botapi/broadcast.js +++ b/dist/src/controllers/botapi/broadcast.js @@ -52,7 +52,7 @@ function broadcast(a) { updatedAt: date, senderAlias: alias, tenant, - onlyOwner: only_owner ? only_owner : false, + onlyOwner: only_owner || only_user ? true : false, }; if (parent_id) msg.parentId = parent_id; diff --git a/dist/src/controllers/botapi/broadcast.js.map b/dist/src/controllers/botapi/broadcast.js.map index 4bdc5faef..0a66d2cd8 100644 --- a/dist/src/controllers/botapi/broadcast.js.map +++ b/dist/src/controllers/botapi/broadcast.js.map @@ -1 +1 @@ -{"version":3,"file":"broadcast.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/broadcast.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,oCAAmC;AACnC,yCAAwC;AACxC,yCAA0D;AAC1D,wCAAuC;AACvC,8CAA6C;AAC7C,6CAA4C;AAC5C,+CAAuC;AACvC,+CAAiD;AAEjD,mCAAgD;AAEhD,SAA8B,SAAS,CAAC,CAAS;;QAC/C,MAAM,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,EACV,SAAS,GACV,GAAG,CAAC,CAAA;QAEL,qBAAY,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;QACrC,MAAM,GAAG,GAAG,MAAM,IAAA,sBAAc,EAAC,CAAC,CAAC,CAAA;QACnC,IAAI,CAAC,GAAG;YAAE,OAAM;QAChB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,GAAG,CAAA;QAC3B,MAAM,MAAM,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AAE;oBACb,OAAO,qBAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;gBAC9B,CAAC;gBACD,WAAW,EAAE,IAAI;aAClB,CAAC,CAAA;SACH;IACH,CAAC;CAAA;AA1FD,4BA0FC"} \ No newline at end of file +{"version":3,"file":"broadcast.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/broadcast.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,oCAAmC;AACnC,yCAAwC;AACxC,yCAA0D;AAC1D,wCAAuC;AACvC,8CAA6C;AAC7C,6CAA4C;AAC5C,+CAAuC;AACvC,+CAAiD;AAEjD,mCAAgD;AAEhD,SAA8B,SAAS,CAAC,CAAS;;QAC/C,MAAM,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,OAAO,EACP,UAAU,EACV,SAAS,GACV,GAAG,CAAC,CAAA;QAEL,qBAAY,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAA;QACrC,MAAM,GAAG,GAAG,MAAM,IAAA,sBAAc,EAAC,CAAC,CAAC,CAAA;QACnC,IAAI,CAAC,GAAG;YAAE,OAAM;QAChB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,GAAG,CAAA;QAC3B,MAAM,MAAM,GAAW,KAAK,CAAC,EAAE,CAAA;QAE/B,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,UAAU,GAAG,IAAI,SAAS,GAAG,CAAA;SACnC;QAED,MAAM,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,IAAI,EAAE,CAAC,CAAA;QACvE,MAAM,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,IAAI,EAAE,CAAC,CAAA;QAC/D,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,aAAa,EAAE,CAAA;QACvC,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAA;QACvB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,QAAQ,CACb;YACE,IAAI,EAAE,SAAS;YACf,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC;SACxD,EACD,MAAM,CACP,CAAA;QACD,qDAAqD;QACrD,iEAAiE;QACjE,IAAI,CAAC,UAAU,EAAE;YACf,MAAM,OAAO,CAAC,WAAW,CAAC;gBACxB,IAAI,EAAE,IAAuB;gBAC7B,MAAM,kCACD,KAAK,CAAC,UAAU,KACnB,KAAK,EACL,EAAE,EAAE,YAAY,EAChB,IAAI,EAAE,mBAAS,CAAC,UAAU,CAAC,MAAM,EACjC,QAAQ,EAAE,OAAO,IAAI,EAAE,GACxB;gBACD,OAAO,EAAE;oBACP,OAAO,EAAE,OAAO;oBAChB,EAAE,EAAE,OAAO,CAAC,EAAE;oBACd,IAAI,EAAE,OAAO,CAAC,IAAI;oBAClB,SAAS,EAAE,OAAO,CAAC,SAAS;oBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,CAAC;iBAChC;gBACD,IAAI,EAAE,mBAAS,CAAC,aAAa,CAAC,OAAO;gBACrC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;gBAClC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBACb,OAAO,qBAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;gBAC9B,CAAC;gBACD,WAAW,EAAE,IAAI;aAClB,CAAC,CAAA;SACH;IACH,CAAC;CAAA;AA1FD,4BA0FC"} \ No newline at end of file diff --git a/src/controllers/botapi/broadcast.ts b/src/controllers/botapi/broadcast.ts index 95c186eea..8e8dbec82 100644 --- a/src/controllers/botapi/broadcast.ts +++ b/src/controllers/botapi/broadcast.ts @@ -55,7 +55,7 @@ export default async function broadcast(a: Action): Promise { updatedAt: date, senderAlias: alias, tenant, - onlyOwner: only_owner ? only_owner : false, + onlyOwner: only_owner || only_user ? true : false, } if (parent_id) msg.parentId = parent_id if (bot_pic) msg.senderPic = bot_pic From 0a7ce163d46b5d155a3a5d8114c302fc16e5c9ac Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 4 Aug 2023 14:55:03 -0700 Subject: [PATCH 26/93] j.body --- dist/src/builtin/ml.js | 3 +-- dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index cf31fbf39..035ec0582 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -118,8 +118,7 @@ function init() { message.channel.send({ embed }); return; } - const body = JSON.parse(j.body); - let process_id = body.process_id; + let process_id = j.body && j.body.process_id; if (!process_id) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index a1ebd9f42..c342f9feb 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAA8C;AAC9C,4CAA4C;AAC5C,2CAA8B;AAE9B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACn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CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;SACnC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA1JD,oBA0JC;AAOD,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index a1520b64a..7228b6aec 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -147,8 +147,7 @@ export function init() { message.channel.send({ embed }) return } - const body = JSON.parse(j.body) - let process_id = body.process_id + let process_id = j.body && j.body.process_id if (!process_id) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') From 9575248e76ffc659c2444fd710f67d7e4d2c5e95 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Sat, 5 Aug 2023 00:07:06 +0100 Subject: [PATCH 27/93] update: ensured messages are only visible by sender --- dist/src/network/send.js | 2 +- dist/src/network/send.js.map | 2 +- src/network/send.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/src/network/send.js b/dist/src/network/send.js index 6e51a9cfc..fef6482bc 100644 --- a/dist/src/network/send.js +++ b/dist/src/network/send.js @@ -93,7 +93,7 @@ function sendMessage({ type, chat, message, sender, amount, success, failure, sk logger_1.sphinxLogger.info(`[Network] => isBotMsg`, logger_1.logging.Network); // return // DO NOT FORWARD TO TRIBE, forwarded to bot instead? } - if (msg.sender.role === constants_1.default.chat_roles.owner && msg.type === 0) { + if (msg.type === 0) { const hiddenCmd = yield interceptTribeMsgForHiddenCmds(msg, tenant); justMe = hiddenCmd ? hiddenCmd : justMe; } diff --git a/dist/src/network/send.js.map b/dist/src/network/send.js.map index 52ff72be6..083a30e8a 100644 --- a/dist/src/network/send.js.map +++ b/dist/src/network/send.js.map @@ -1 +1 @@ -{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCASkB;AAClB,yCAAwC;AACxC,wCAAgD;AAChD,sCAIqB;AACrB,0CAAyC;AACzC,gEAAyE;AACzE,4CAAoC;AACpC,4CAAuD;AACvD,4CAA4C;AAC5C,wDAAoD;AACpD,0CAA4D;AAE5D,yCAAwC;AACxC,uCAAkE;AAClE,sCAAyC;AAEzC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AA+B3B;;;;;;;;;;;;;;;;GAgBG;AACH,SAAsB,WAAW,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,MAAM,EACN,MAAM,EACN,OAAO,EACP,OAAO,EACP,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,iBAAiB,GACC;;QAClB,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM;YAAE,OAAM;QAC5B,MAAM,MAAM,GAAW,MAAM,CAAC,EAAY,CAAA;QAC1C,IAAI,CAAC,MAAM;YAAE,OAAM;QAEnB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,KAAK,mBAAS,CAAC,UAAU,CAAC,KAAK,CAAA;QACxD,MAAM,YAAY,GAAG,OAAO,IAAI,MAAM,CAAC,SAAS,KAAK,IAAI,CAAC,WAAW,CAAA;QAErE,IAAI,OAAO,GAAG,MAAM,CAAA;QACpB,IAAK,MAAwB,CAAC,UAAU,EAAE;YACxC,OAAO,GAAI,MAAwB,CAAC,UAAU,CAAA;SAC/C;QACD,MAAM,SAAS,GAAkB,OAAwB,CAAA;QACzD,gFAAgF;QAChF,IAAI,YAAY,IAAI,CA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P,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,EAAE,mBAAS,CAAC,cAAc,CAAC;gBACpD,UAAU,EAAE,eAAe,CAAC,SAAS,IAAI,EAAE;aAC5C,CAAA;YACD,MAAM,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;YAC/B,MAAM,eAAe,CAAC,MAAM,CAAC;gBAC3B,MAAM,EAAE,mBAAS,CAAC,QAAQ,CAAC,MAAM;gBACjC,YAAY,EAAE,QAAQ;aACvB,CAAC,CAAA;YACF,qBAAY,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAA;SAClD;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,0BAA0B,KAAK,EAAE,EAAE,gBAAO,CAAC,OAAO,CAAC,CAAA;SACvE;IACH,CAAC;CAAA;AAED,SAAe,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;;QACpE,MAAM,eAAe,GAAG,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YACpD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE;SAC1C,CAAC,CAAkB,CAAA;QACpB,IAAI,eAAe,CAAC,MAAM,KAAK,MAAM,EAAE;YACrC,MAAM,cAAc,CAAC;gBACnB,MAAM;gBACN,eAAe;gBACf,WAAW,EAAE,GAAG;gBAChB,KAAK;gBACL,MAAM;gBACN,MAAM;aACP,CAAC,CAAA;SACH;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCASkB;AAClB,yCAAwC;AACxC,wCAAgD;AAChD,sCAIqB;AACrB,0CAAyC;AACzC,gEAAyE;AACzE,4CAAoC;AACpC,4CAAuD;AACvD,4CAA4C;AAC5C,wDAAo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,OAAO,CAAC,CAAA;SACvE;IACH,CAAC;CAAA;AAED,SAAe,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;;QACpE,MAAM,eAAe,GAAG,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YACpD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE;SAC1C,CAAC,CAAkB,CAAA;QACpB,IAAI,eAAe,CAAC,MAAM,KAAK,MAAM,EAAE;YACrC,MAAM,cAAc,CAAC;gBACnB,MAAM;gBACN,eAAe;gBACf,WAAW,EAAE,GAAG;gBAChB,KAAK;gBACL,MAAM;gBACN,MAAM;aACP,CAAC,CAAA;SACH;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/src/network/send.ts b/src/network/send.ts index aed7a851f..2053d909c 100644 --- a/src/network/send.ts +++ b/src/network/send.ts @@ -149,7 +149,7 @@ export async function sendMessage({ sphinxLogger.info(`[Network] => isBotMsg`, logging.Network) // return // DO NOT FORWARD TO TRIBE, forwarded to bot instead? } - if (msg.sender.role === constants.chat_roles.owner && msg.type === 0) { + if (msg.type === 0) { const hiddenCmd = await interceptTribeMsgForHiddenCmds(msg, tenant) justMe = hiddenCmd ? hiddenCmd : justMe } From e9c41762b26885e9b800cbe89f56457908bedad8 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Mon, 7 Aug 2023 13:04:27 -0700 Subject: [PATCH 28/93] content kinds, url config --- dist/src/builtin/ml.js | 24 +++++++++++-- dist/src/builtin/ml.js.map | 2 +- dist/src/controllers/botapi/index.js | 2 +- dist/src/controllers/botapi/index.js.map | 2 +- src/builtin/ml.ts | 43 ++++++++++++++++++++++-- src/controllers/botapi/index.ts | 2 +- 6 files changed, 67 insertions(+), 8 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 035ec0582..d25b681fc 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -39,6 +39,7 @@ function init() { })); const bot = yield (0, utill_1.findBot)({ botPrefix: exports.ML_PREFIX, tribe }); let meta = JSON.parse(bot.meta || `{}`); + meta.kind = meta.kind || 'text'; const url = meta.url; const api_key = meta.apiKey; const arr = (message.content && message.content.split(' ')) || []; @@ -65,6 +66,16 @@ function init() { yield bot.update({ meta: JSON.stringify(meta) }); yield (0, utill_1.botResponse)(exports.ML_BOTNAME, 'API KEY updated successfully', exports.ML_PREFIX, tribe.id, message, cmd); return; + case 'kind': + const newKind = arr[2]; + if (newKind !== 'text' && newKind !== 'image') { + yield (0, utill_1.botResponse)(exports.ML_BOTNAME, 'Please provide a valid kind (text/image)', exports.ML_PREFIX, tribe.id, message, cmd); + return; + } + meta.kind = newKind; + yield bot.update({ meta: JSON.stringify(meta) }); + yield (0, utill_1.botResponse)(exports.ML_BOTNAME, `bot kind updated to ${newKind}`, exports.ML_PREFIX, tribe.id, message, cmd); + return; default: const embed = new Sphinx.MessageEmbed() .setAuthor(exports.ML_BOTNAME) @@ -78,6 +89,10 @@ function init() { name: `Add API_KEY to ${exports.ML_BOTNAME}`, value: `${exports.ML_PREFIX} url {API_KEY}`, }, + { + name: `Set content type`, + value: `${exports.ML_PREFIX} kind {text/image}`, + }, ]) .setOnlyOwner(true); message.channel.send({ embed }); @@ -97,7 +112,7 @@ function init() { host_name = `https://${host_name}`; } console.log('ml bot hostname', host_name); - const r = yield (0, node_fetch_1.default)(`${url}/send-message-llm`, { + const r = yield (0, node_fetch_1.default)(url, { method: 'POST', body: JSON.stringify({ message: message.content, @@ -131,8 +146,13 @@ function init() { exports.CALLBACKS[process_id] = function (msg) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') - .setDescription(msg) .setOnlyUser(parseInt(message.member.id || '0')); + if (meta.kind === 'text') { + embed.setDescription(msg); + } + if (meta.kind === 'image') { + embed.setImage(msg); + } message.channel.send({ embed }); delete exports.CALLBACKS[process_id]; }; diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index c342f9feb..78ded6ece 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAA8C;AAC9C,4CAA4C;AAC5C,2CAA8B;AAE9B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,oBAAW,CAAC,CAAA;IAE9B,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAO,OAAuB,EAAE,EAAE;;QAC7D,IAAI,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,GAAG,MAAK,iBAAS;YAAE,OAAM;QAC7C,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;QAC1E,IAAI;YACF,MAAM,KAAK,GAAG,CAAC,MAAM,eAA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AAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;oBACxB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;iBAC1B;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;oBACzB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;iBACpB;gBACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;SACnC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA9LD,oBA8LC;AAQD,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/dist/src/controllers/botapi/index.js b/dist/src/controllers/botapi/index.js index 856380e05..c355712ad 100644 --- a/dist/src/controllers/botapi/index.js +++ b/dist/src/controllers/botapi/index.js @@ -20,10 +20,10 @@ const hmac = require("../../crypto/hmac"); const git_1 = require("../../builtin/git"); const helpers_1 = require("../../helpers"); const githook_1 = require("../../utils/githook"); +const ml_1 = require("../../builtin/ml"); const dm_1 = require("./dm"); const pay_1 = require("./pay"); const broadcast_1 = require("./broadcast"); -const ml_1 = require("../../builtin/ml"); function processWebhook(req, res) { var _a; return __awaiter(this, void 0, void 0, function* () { diff --git a/dist/src/controllers/botapi/index.js.map b/dist/src/controllers/botapi/index.js.map index 5fe2b7bae..52db0d05c 100644 --- a/dist/src/controllers/botapi/index.js.map +++ b/dist/src/controllers/botapi/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC,+CAA6D;AAC7D,+CAA0D;AAC1D,0CAAyC;AACzC,2CAA6E;AAC7E,2CAA4C;AAE5C,iDAAsE;AACtE,6BAAiC;AACjC,+BAAuB;AACvB,2CAAmC;AACnC,yCAA4C;AA2B5C,SAAsB,cAAc,CAAC,GAAQ,EAAE,GAAQ;;;QACrD,qBAAY,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;QAClD,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAA;QAC9C,IAAI,CAAC,GAAG,EAAE;YACR,qBAAY,CAAC,KAAK,CAAC,mBAAmB,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACrD,OAAO,IAAA,kBAAY,EAAC,GAAG,CAAC,CAAA;SACzB;QAED,MAAM,UAAU,GACd,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAA;QAChE,IAAI,CAAC,UAAU,EAAE;YACf,qBAAY,CAAC,KAAK,CAAC,sBAAsB,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACxD,OAAO,IAAA,kBAAY,EAAC,GAAG,CAAC,CAAA;SACzB;QAED,MAAM,KAAK,GAAG,GAAG,CAAC,IAAoB,CAAA;QACtC,IAAI,IAAI,GAAG,EAAE,CAAA;QACb,IAAI,YAAY,IAAI,KAAK,EAAE;YACzB,IAAI,GAAG,CAAA,MAAA,KAAK,CAAC,UAAU,0CAAE,SAAS,CAAC,WAAW,EAAE,KAAI,EAAE,CAAA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C,IAAI,CAAC,CAAA;QAChC,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;QAC1B,IAAI,CAAC,IAAI,EAAE;YACT,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,SAAS,CAAC,CAAA;SAC/B;QACD,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;QAClC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,eAAe,CAAC,CAAA;SACrC;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,aAAa,CAAC,CAAA;SACnC;QAED,IAAI,cAAS,CAAC,UAAU,CAAC,EAAE;YACzB,cAAS,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;SAChC;QAED,IAAA,aAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5B,CAAC;CAAA;AApBD,8CAoBC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC,+CAA6D;AAC7D,+CAA0D;AAC1D,0CAAyC;AACzC,2CAA6E;AAC7E,2CAA4C;AAE5C,iDAAsE;AACtE,yCAA4C;AAC5C,6BAAiC;AACjC,+BAAuB;AACvB,2CAAmC;AA2BnC,SAAsB,cAAc,CAAC,GAAQ,EAAE,GAAQ;;;QACrD,qBAAY,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;QAClD,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAA;QAC9C,IAAI,CAAC,GAAG,EAAE;YACR,qBAAY,CAAC,KAAK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AC,CAAA;IAC5B,CAAC;CAAA;AApBD,8CAoBC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 7228b6aec..4a69bce85 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -18,6 +18,8 @@ export const ML_BOTNAME = `${ML_PREFIX.substring( 2 ).toUpperCase()}${ML_PREFIX.substring(2)}Bot` +type ContentKind = 'text' | 'image' + export const CALLBACKS: { [k: string]: (msg: string) => void } = {} export function init() { @@ -38,9 +40,11 @@ export function init() { const bot: ChatBotRecord = await findBot({ botPrefix: ML_PREFIX, tribe }) let meta: MlMeta = JSON.parse(bot.meta || `{}`) + meta.kind = meta.kind || 'text' const url = meta.url const api_key = meta.apiKey const arr = (message.content && message.content.split(' ')) || [] + if (isAdmin && arr[0] === ML_PREFIX) { const cmd = arr[1] @@ -93,6 +97,30 @@ export function init() { cmd ) return + case 'kind': + const newKind = arr[2] + if (newKind !== 'text' && newKind !== 'image') { + await botResponse( + ML_BOTNAME, + 'Please provide a valid kind (text/image)', + ML_PREFIX, + tribe.id, + message, + cmd + ) + return + } + meta.kind = newKind + await bot.update({ meta: JSON.stringify(meta) }) + await botResponse( + ML_BOTNAME, + `bot kind updated to ${newKind}`, + ML_PREFIX, + tribe.id, + message, + cmd + ) + return default: const embed = new Sphinx.MessageEmbed() .setAuthor(ML_BOTNAME) @@ -106,6 +134,10 @@ export function init() { name: `Add API_KEY to ${ML_BOTNAME}`, value: `${ML_PREFIX} url {API_KEY}`, }, + { + name: `Set content type`, + value: `${ML_PREFIX} kind {text/image}`, + }, ]) .setOnlyOwner(true) message.channel.send({ embed }) @@ -126,7 +158,7 @@ export function init() { host_name = `https://${host_name}` } console.log('ml bot hostname', host_name) - const r = await fetch(`${url}/send-message-llm`, { + const r = await fetch(url, { method: 'POST', body: JSON.stringify({ message: message.content, @@ -158,11 +190,17 @@ export function init() { } console.log('PROCESS ID!!!', process_id) + CALLBACKS[process_id] = function (msg: string) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') - .setDescription(msg) .setOnlyUser(parseInt(message.member.id || '0')) + if (meta.kind === 'text') { + embed.setDescription(msg) + } + if (meta.kind === 'image') { + embed.setImage(msg) + } message.channel.send({ embed }) delete CALLBACKS[process_id] } @@ -179,6 +217,7 @@ export function init() { export interface MlMeta { url: string apiKey: string + kind: ContentKind } export async function sleep(ms: number): Promise { diff --git a/src/controllers/botapi/index.ts b/src/controllers/botapi/index.ts index 7a5f0be62..8c278fc04 100644 --- a/src/controllers/botapi/index.ts +++ b/src/controllers/botapi/index.ts @@ -20,10 +20,10 @@ import { GITBOT_UUID, GitBotMeta, Repo, GITBOT_PIC } from '../../builtin/git' import { asyncForEach } from '../../helpers' import { Req, Res } from '../../types' import { processGithook, WebhookEventName } from '../../utils/githook' +import { CALLBACKS } from '../../builtin/ml' import direct_message from './dm' import pay from './pay' import broadcast from './broadcast' -import { CALLBACKS } from '../../builtin/ml' /* hexdump -n 8 -e '4/4 "%08X" 1 "\n"' /dev/random From 5e12e2b9f0f7d670fb54e16eaaddaececafdcefd Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Mon, 7 Aug 2023 13:46:11 -0700 Subject: [PATCH 29/93] phinx-bot: 0.2.411 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3c7ebfe7d..79d6a6984 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "short-uuid": "^3.1.1", "sjcl": "^1.0.8", "socket.io": "^4.4.1", - "sphinx-bot": "^0.2.40", + "sphinx-bot": "^0.2.41", "sqlite3": "5.0.11", "tail": "^2.0.3", "ts-jest": "^28.0.8", From 679fb23305eab712b9caecf74ca9648cde9f90c7 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Tue, 8 Aug 2023 10:38:55 -0700 Subject: [PATCH 30/93] lock grpc to 1.8.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 95d8150d6..2f4cdbb9f 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ }, "dependencies": { "@boltz/bolt11": "^1.2.7", - "@grpc/grpc-js": "^1.8.7", + "@grpc/grpc-js": "1.8.7", "@grpc/proto-loader": "0.7.4", "@octokit/webhooks-types": "^5.2.0", "@scout_apm/scout-apm": "^0.1.10", From 887fbacaefa2536694ea756b2511bfe285b4f4f7 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 10 Aug 2023 12:32:23 +0100 Subject: [PATCH 31/93] update: refactored the add url command for ml-bot --- dist/src/builtin/ml.js | 9 ++----- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 27 ++++++++++++++++++++ dist/src/builtin/utill/ml.js.map | 1 + package-lock.json | 14 +++++----- src/builtin/ml.ts | 32 +++++------------------ src/builtin/utill/ml.ts | 44 ++++++++++++++++++++++++++++++++ 7 files changed, 89 insertions(+), 40 deletions(-) create mode 100644 dist/src/builtin/utill/ml.js create mode 100644 dist/src/builtin/utill/ml.js.map create mode 100644 src/builtin/utill/ml.ts diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index d25b681fc..256b8308a 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -16,6 +16,7 @@ const models_1 = require("../models"); const utill_1 = require("./utill"); const config_1 = require("../utils/config"); const node_fetch_1 = require("node-fetch"); +const ml_1 = require("./utill/ml"); const config = (0, config_1.loadConfig)(); const msg_types = Sphinx.MSG_TYPE; let initted = false; @@ -48,13 +49,7 @@ function init() { switch (cmd) { case 'url': const newUrl = arr[2]; - if (!newUrl) { - yield (0, utill_1.botResponse)(exports.ML_BOTNAME, 'Please provide a valid URL', exports.ML_PREFIX, tribe.id, message, cmd); - return; - } - meta.url = newUrl; - yield bot.update({ meta: JSON.stringify(meta) }); - yield (0, utill_1.botResponse)(exports.ML_BOTNAME, 'URL updated successfully', exports.ML_PREFIX, tribe.id, message, cmd); + yield (0, ml_1.addUrl)(bot, meta, exports.ML_BOTNAME, exports.ML_PREFIX, tribe, cmd, message, newUrl); return; case 'api_key': const newApiKey = arr[2]; diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 78ded6ece..c0e2eaa93 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAA8C;AAC9C,4CAA4C;AAC5C,2CAA8B;AAE9B,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAIhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,oBAAW,CAAC,CAAA;IAE9B,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAO,OAAuB,EAAE,EAAE;;QAC7D,IAAI,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,GAAG,MAAK,iBAAS;YAAE,OAAM;QAC7C,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI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,CAAA;SACnC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AAnLD,oBAmLC;AAED,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js new file mode 100644 index 000000000..6399bb9c1 --- /dev/null +++ b/dist/src/builtin/utill/ml.js @@ -0,0 +1,27 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.addUrl = void 0; +const index_1 = require("./index"); +function addUrl(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newUrl) { + return __awaiter(this, void 0, void 0, function* () { + if (!newUrl) { + yield (0, index_1.botResponse)(botName, 'Please provide a valid URL', botPrefix, tribe.id, messageObj, cmd); + return; + } + meta.url = newUrl; + yield bot.update({ meta: JSON.stringify(meta) }); + yield (0, index_1.botResponse)(botName, 'URL updated successfully', botPrefix, tribe.id, messageObj, cmd); + return; + }); +} +exports.addUrl = addUrl; +//# sourceMappingURL=ml.js.map \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map new file mode 100644 index 000000000..f5ddfaf0d --- /dev/null +++ b/dist/src/builtin/utill/ml.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AAUrC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,GAAG,GAAG,MAAM,CAAA;QACjB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,0BAA0B,EAC1B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,wBAgCC"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 32b426a10..75b55b7af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -72,7 +72,7 @@ "short-uuid": "^3.1.1", "sjcl": "^1.0.8", "socket.io": "^4.4.1", - "sphinx-bot": "^0.2.40", + "sphinx-bot": "^0.2.41", "sqlite3": "5.0.11", "tail": "^2.0.3", "ts-jest": "^28.0.8", @@ -15421,9 +15421,9 @@ "license": "CC0-1.0" }, "node_modules/sphinx-bot": { - "version": "0.2.40", - "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.40.tgz", - "integrity": "sha512-OkmTlUZnm+T4BdPUxxLKZjGkiId13vzvCUJ0Gmj9zevZbhB8ficrwDaEJnQYzd19zo9i4369LgUKKC2l07eQgQ==", + "version": "0.2.41", + "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.41.tgz", + "integrity": "sha512-OYDitqmSE4D3gzHjHsctn/eswJ8OnyL68J4hw+qG6Y9Okae+AnBuBYn1frzEtKghjIjxyqyZJLoNqlN0GU0H5w==", "dependencies": { "@types/cors": "^2.8.7", "@types/express": "^4.17.8", @@ -28764,9 +28764,9 @@ "dev": true }, "sphinx-bot": { - "version": "0.2.40", - "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.40.tgz", - "integrity": "sha512-OkmTlUZnm+T4BdPUxxLKZjGkiId13vzvCUJ0Gmj9zevZbhB8ficrwDaEJnQYzd19zo9i4369LgUKKC2l07eQgQ==", + "version": "0.2.41", + "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.41.tgz", + "integrity": "sha512-OYDitqmSE4D3gzHjHsctn/eswJ8OnyL68J4hw+qG6Y9Okae+AnBuBYn1frzEtKghjIjxyqyZJLoNqlN0GU0H5w==", "requires": { "@types/cors": "^2.8.7", "@types/express": "^4.17.8", diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 4a69bce85..145aa2940 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -4,6 +4,7 @@ import { ChatRecord, models, ChatBotRecord } from '../models' import { findBot, botResponse } from './utill' import { loadConfig } from '../utils/config' import fetch from 'node-fetch' +import { MlMeta, addUrl } from './utill/ml' const config = loadConfig() @@ -18,8 +19,6 @@ export const ML_BOTNAME = `${ML_PREFIX.substring( 2 ).toUpperCase()}${ML_PREFIX.substring(2)}Bot` -type ContentKind = 'text' | 'image' - export const CALLBACKS: { [k: string]: (msg: string) => void } = {} export function init() { @@ -51,26 +50,15 @@ export function init() { switch (cmd) { case 'url': const newUrl = arr[2] - if (!newUrl) { - await botResponse( - ML_BOTNAME, - 'Please provide a valid URL', - ML_PREFIX, - tribe.id, - message, - cmd - ) - return - } - meta.url = newUrl - await bot.update({ meta: JSON.stringify(meta) }) - await botResponse( + await addUrl( + bot, + meta, ML_BOTNAME, - 'URL updated successfully', ML_PREFIX, - tribe.id, + tribe, + cmd, message, - cmd + newUrl ) return case 'api_key': @@ -214,12 +202,6 @@ export function init() { }) } -export interface MlMeta { - url: string - apiKey: string - kind: ContentKind -} - export async function sleep(ms: number): Promise { return new Promise((resolve) => setTimeout(resolve, ms)) } diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts new file mode 100644 index 000000000..283437a63 --- /dev/null +++ b/src/builtin/utill/ml.ts @@ -0,0 +1,44 @@ +import { ChatBotRecord, ChatRecord } from '../../models' +import { botResponse } from './index' +import * as Sphinx from 'sphinx-bot' + +type ContentKind = 'text' | 'image' +export interface MlMeta { + url: string + apiKey: string + kind: ContentKind +} + +export async function addUrl( + bot: ChatBotRecord, + meta: MlMeta, + botName: string, + botPrefix: string, + tribe: ChatRecord, + cmd: string, + messageObj: Sphinx.Message, + newUrl: string +) { + if (!newUrl) { + await botResponse( + botName, + 'Please provide a valid URL', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } + meta.url = newUrl + await bot.update({ meta: JSON.stringify(meta) }) + await botResponse( + botName, + 'URL updated successfully', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return +} From 2bb0f3ff2e9d7d973c2ffab7e022fd7df25e1349 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 10 Aug 2023 12:52:45 +0100 Subject: [PATCH 32/93] updated: the api_key command --- dist/src/builtin/ml.js | 8 +------- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 15 +++++++++++++- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/ml.ts | 25 +++++++---------------- src/builtin/utill/ml.ts | 34 ++++++++++++++++++++++++++++++++ 6 files changed, 58 insertions(+), 28 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 256b8308a..2d838e371 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -53,13 +53,7 @@ function init() { return; case 'api_key': const newApiKey = arr[2]; - if (!newApiKey) { - yield (0, utill_1.botResponse)(exports.ML_BOTNAME, 'Please provide a valid API KEY', exports.ML_PREFIX, tribe.id, message, cmd); - return; - } - meta.apiKey = newApiKey; - yield bot.update({ meta: JSON.stringify(meta) }); - yield (0, utill_1.botResponse)(exports.ML_BOTNAME, 'API KEY updated successfully', exports.ML_PREFIX, tribe.id, message, cmd); + yield (0, ml_1.addApiKey)(bot, meta, exports.ML_BOTNAME, exports.ML_PREFIX, tribe, cmd, message, newApiKey); return; case 'kind': const newKind = arr[2]; diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index c0e2eaa93..7ff0d0ae2 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAA8C;AAC9C,4CAA4C;AAC5C,2CAA8B;AAC9B,mCAA2C;AAE3C,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,oBAAW,CAAC,CAAA;IAE9B,MAAM,CAAC,EAAE,CAAC,SA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AC,eAAe,EAAE,UAAU,CAAC,CAAA;YAExC,iBAAS,CAAC,UAAU,CAAC,GAAG,UAAU,GAAW;gBAC3C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;qBACpC,SAAS,CAAC,QAAQ,CAAC;qBACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;gBAClD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;oBACxB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;iBAC1B;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;oBACzB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;iBACpB;gBACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;SACnC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AAxKD,oBAwKC;AAED,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index 6399bb9c1..f28b73b6e 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.addUrl = void 0; +exports.addApiKey = exports.addUrl = void 0; const index_1 = require("./index"); function addUrl(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newUrl) { return __awaiter(this, void 0, void 0, function* () { @@ -24,4 +24,17 @@ function addUrl(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newUrl) { }); } exports.addUrl = addUrl; +function addApiKey(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newApiKey) { + return __awaiter(this, void 0, void 0, function* () { + if (!newApiKey) { + yield (0, index_1.botResponse)(botName, 'Please provide a valid API KEY', botPrefix, tribe.id, messageObj, cmd); + return; + } + meta.apiKey = newApiKey; + yield bot.update({ meta: JSON.stringify(meta) }); + yield (0, index_1.botResponse)(botName, 'API KEY updated successfully', botPrefix, tribe.id, messageObj, cmd); + return; + }); +} +exports.addApiKey = addApiKey; //# sourceMappingURL=ml.js.map \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index f5ddfaf0d..44cefb0ac 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AAUrC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,GAAG,GAAG,MAAM,CAAA;QACjB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,0BAA0B,EAC1B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,wBAgCC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AAUrC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,GAAG,GAAG,MAAM,CAAA;QACjB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,0BAA0B,EAC1B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,wBAgCC;AAED,SAAsB,SAAS,CAC7B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,SAAiB;;QAEjB,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,EAChC,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,MAAM,GAAG,SAAS,CAAA;QACvB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,8BAA8B,EAC9B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,8BAgCC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 145aa2940..20dfbfec0 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -4,7 +4,7 @@ import { ChatRecord, models, ChatBotRecord } from '../models' import { findBot, botResponse } from './utill' import { loadConfig } from '../utils/config' import fetch from 'node-fetch' -import { MlMeta, addUrl } from './utill/ml' +import { MlMeta, addUrl, addApiKey } from './utill/ml' const config = loadConfig() @@ -63,26 +63,15 @@ export function init() { return case 'api_key': const newApiKey = arr[2] - if (!newApiKey) { - await botResponse( - ML_BOTNAME, - 'Please provide a valid API KEY', - ML_PREFIX, - tribe.id, - message, - cmd - ) - return - } - meta.apiKey = newApiKey - await bot.update({ meta: JSON.stringify(meta) }) - await botResponse( + await addApiKey( + bot, + meta, ML_BOTNAME, - 'API KEY updated successfully', ML_PREFIX, - tribe.id, + tribe, + cmd, message, - cmd + newApiKey ) return case 'kind': diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index 283437a63..e73304766 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -42,3 +42,37 @@ export async function addUrl( ) return } + +export async function addApiKey( + bot: ChatBotRecord, + meta: MlMeta, + botName: string, + botPrefix: string, + tribe: ChatRecord, + cmd: string, + messageObj: Sphinx.Message, + newApiKey: string +) { + if (!newApiKey) { + await botResponse( + botName, + 'Please provide a valid API KEY', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } + meta.apiKey = newApiKey + await bot.update({ meta: JSON.stringify(meta) }) + await botResponse( + botName, + 'API KEY updated successfully', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return +} From 5b7c7d872423827b64903a37b22acd4b18e2ab88 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 10 Aug 2023 14:52:42 +0100 Subject: [PATCH 33/93] update: refactored the kind command for ml bot --- dist/src/builtin/ml.js | 8 +------- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 15 +++++++++++++- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/ml.ts | 27 ++++++++----------------- src/builtin/utill/ml.ts | 34 ++++++++++++++++++++++++++++++++ 6 files changed, 59 insertions(+), 29 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 2d838e371..5818eacc3 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -57,13 +57,7 @@ function init() { return; case 'kind': const newKind = arr[2]; - if (newKind !== 'text' && newKind !== 'image') { - yield (0, utill_1.botResponse)(exports.ML_BOTNAME, 'Please provide a valid kind (text/image)', exports.ML_PREFIX, tribe.id, message, cmd); - return; - } - meta.kind = newKind; - yield bot.update({ meta: JSON.stringify(meta) }); - yield (0, utill_1.botResponse)(exports.ML_BOTNAME, `bot kind updated to ${newKind}`, exports.ML_PREFIX, tribe.id, message, cmd); + yield (0, ml_1.addKind)(bot, meta, exports.ML_BOTNAME, exports.ML_PREFIX, tribe, cmd, message, newKind); return; default: const embed = new Sphinx.MessageEmbed() diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 7ff0d0ae2..ae0d870a2 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAA8C;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;YAExC,iBAAS,CAAC,UAAU,CAAC,GAAG,UAAU,GAAW;gBAC3C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;qBACpC,SAAS,CAAC,QAAQ,CAAC;qBACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;gBAClD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;oBACxB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;iBAC1B;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;oBACzB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;iBACpB;gBACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;SACnC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA7JD,oBA6JC;AAED,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index f28b73b6e..75cc3568b 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.addApiKey = exports.addUrl = void 0; +exports.addKind = exports.addApiKey = exports.addUrl = void 0; const index_1 = require("./index"); function addUrl(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newUrl) { return __awaiter(this, void 0, void 0, function* () { @@ -37,4 +37,17 @@ function addApiKey(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newApi }); } exports.addApiKey = addApiKey; +function addKind(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newKind) { + return __awaiter(this, void 0, void 0, function* () { + if (newKind !== 'text' && newKind !== 'image') { + yield (0, index_1.botResponse)(botName, 'Please provide a valid kind (text/image)', botPrefix, tribe.id, messageObj, cmd); + return; + } + meta.kind = newKind; + yield bot.update({ meta: JSON.stringify(meta) }); + yield (0, index_1.botResponse)(botName, `bot kind updated to ${newKind}`, botPrefix, tribe.id, messageObj, cmd); + return; + }); +} +exports.addKind = addKind; //# sourceMappingURL=ml.js.map \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index 44cefb0ac..4742c5776 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AAUrC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,GAAG,GAAG,MAAM,CAAA;QACjB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,0BAA0B,EAC1B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,wBAgCC;AAED,SAAsB,SAAS,CAC7B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,SAAiB;;QAEjB,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,EAChC,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,MAAM,GAAG,SAAS,CAAA;QACvB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,8BAA8B,EAC9B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,8BAgCC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AAUrC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAA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,GAAG,OAAO,CAAA;QACnB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,uBAAuB,OAAO,EAAE,EAChC,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,0BAgCC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 20dfbfec0..c8bf61c3d 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -1,10 +1,10 @@ import * as Sphinx from 'sphinx-bot' import { finalAction } from '../controllers/botapi' import { ChatRecord, models, ChatBotRecord } from '../models' -import { findBot, botResponse } from './utill' +import { findBot } from './utill' import { loadConfig } from '../utils/config' import fetch from 'node-fetch' -import { MlMeta, addUrl, addApiKey } from './utill/ml' +import { MlMeta, addUrl, addApiKey, addKind } from './utill/ml' const config = loadConfig() @@ -76,26 +76,15 @@ export function init() { return case 'kind': const newKind = arr[2] - if (newKind !== 'text' && newKind !== 'image') { - await botResponse( - ML_BOTNAME, - 'Please provide a valid kind (text/image)', - ML_PREFIX, - tribe.id, - message, - cmd - ) - return - } - meta.kind = newKind - await bot.update({ meta: JSON.stringify(meta) }) - await botResponse( + await addKind( + bot, + meta, ML_BOTNAME, - `bot kind updated to ${newKind}`, ML_PREFIX, - tribe.id, + tribe, + cmd, message, - cmd + newKind ) return default: diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index e73304766..97093c9eb 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -76,3 +76,37 @@ export async function addApiKey( ) return } + +export async function addKind( + bot: ChatBotRecord, + meta: MlMeta, + botName: string, + botPrefix: string, + tribe: ChatRecord, + cmd: string, + messageObj: Sphinx.Message, + newKind: string +) { + if (newKind !== 'text' && newKind !== 'image') { + await botResponse( + botName, + 'Please provide a valid kind (text/image)', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } + meta.kind = newKind + await bot.update({ meta: JSON.stringify(meta) }) + await botResponse( + botName, + `bot kind updated to ${newKind}`, + botPrefix, + tribe.id, + messageObj, + cmd + ) + return +} From 430b9cd0e7f272e0b097b5b06039773fe5e627fc Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 10 Aug 2023 15:03:39 +0100 Subject: [PATCH 34/93] refactored the default function --- dist/src/builtin/ml.js | 20 +------------------- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 25 ++++++++++++++++++++++++- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/ml.ts | 22 ++-------------------- src/builtin/utill/ml.ts | 26 ++++++++++++++++++++++++++ 6 files changed, 55 insertions(+), 42 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 5818eacc3..4d22a7e40 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -60,25 +60,7 @@ function init() { yield (0, ml_1.addKind)(bot, meta, exports.ML_BOTNAME, exports.ML_PREFIX, tribe, cmd, message, newKind); return; default: - const embed = new Sphinx.MessageEmbed() - .setAuthor(exports.ML_BOTNAME) - .setTitle('Bot Commands:') - .addFields([ - { - name: `Add URL to ${exports.ML_BOTNAME}`, - value: `${exports.ML_PREFIX} url {URL}`, - }, - { - name: `Add API_KEY to ${exports.ML_BOTNAME}`, - value: `${exports.ML_PREFIX} url {API_KEY}`, - }, - { - name: `Set content type`, - value: `${exports.ML_PREFIX} kind {text/image}`, - }, - ]) - .setOnlyOwner(true); - message.channel.send({ embed }); + (0, ml_1.defaultCommand)(exports.ML_BOTNAME, exports.ML_PREFIX, message); return; } } diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index ae0d870a2..1a689acda 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1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,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;SACnC;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA3ID,oBA2IC;AAED,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index 75cc3568b..2c1287494 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -9,8 +9,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.addKind = exports.addApiKey = exports.addUrl = void 0; +exports.defaultCommand = exports.addKind = exports.addApiKey = exports.addUrl = void 0; const index_1 = require("./index"); +const Sphinx = require("sphinx-bot"); function addUrl(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newUrl) { return __awaiter(this, void 0, void 0, function* () { if (!newUrl) { @@ -50,4 +51,26 @@ function addKind(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newKind) }); } exports.addKind = addKind; +function defaultCommand(botName, botPrefix, message) { + const embed = new Sphinx.MessageEmbed() + .setAuthor(botName) + .setTitle('Bot Commands:') + .addFields([ + { + name: `Add URL to ${botName}`, + value: `${botPrefix} url {URL}`, + }, + { + name: `Add API_KEY to ${botName}`, + value: `${botPrefix} url {API_KEY}`, + }, + { + name: `Set content type`, + value: `${botPrefix} kind {text/image}`, + }, + ]) + .setOnlyOwner(true); + message.channel.send({ embed }); +} +exports.defaultCommand = defaultCommand; //# sourceMappingURL=ml.js.map \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index 4742c5776..fdbc8b9e7 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AAUrC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,GAAG,GAAG,MAAM,CAAA;QACjB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,0BAA0B,EAC1B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,wBAgCC;AAED,SAAsB,SAAS,CAC7B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,SAAiB;;QAEjB,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,EAChC,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,MAAM,GAAG,SAAS,CAAA;QACvB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,8BAA8B,EAC9B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,8BAgCC;AAED,SAAsB,OAAO,CAC3B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,OAAe;;QAEf,IAAI,OAAO,KAAK,MAAM,IAAI,OAAO,KAAK,OAAO,EAAE;YAC7C,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,0CAA0C,EAC1C,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,IAAI,GAAG,OAAO,CAAA;QACnB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,uBAAuB,OAAO,EAAE,EAChC,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,0BAgCC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AACrC,qCAAoC;AASpC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD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CAAC,IAAI,GAAG,OAAO,CAAA;QACnB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,uBAAuB,OAAO,EAAE,EAChC,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,0BAgCC;AAED,SAAgB,cAAc,CAC5B,OAAe,EACf,SAAiB,EACjB,OAAuB;IAEvB,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,OAAO,CAAC;SAClB,QAAQ,CAAC,eAAe,CAAC;SACzB,SAAS,CAAC;QACT;YACE,IAAI,EAAE,cAAc,OAAO,EAAE;YAC7B,KAAK,EAAE,GAAG,SAAS,YAAY;SAChC;QACD;YACE,IAAI,EAAE,kBAAkB,OAAO,EAAE;YACjC,KAAK,EAAE,GAAG,SAAS,gBAAgB;SACpC;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,GAAG,SAAS,oBAAoB;SACxC;KACF,CAAC;SACD,YAAY,CAAC,IAAI,CAAC,CAAA;IACrB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAxBD,wCAwBC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index c8bf61c3d..8cd477c49 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -4,7 +4,7 @@ import { ChatRecord, models, ChatBotRecord } from '../models' import { findBot } from './utill' import { loadConfig } from '../utils/config' import fetch from 'node-fetch' -import { MlMeta, addUrl, addApiKey, addKind } from './utill/ml' +import { MlMeta, addUrl, addApiKey, addKind, defaultCommand } from './utill/ml' const config = loadConfig() @@ -88,25 +88,7 @@ export function init() { ) return default: - const embed = new Sphinx.MessageEmbed() - .setAuthor(ML_BOTNAME) - .setTitle('Bot Commands:') - .addFields([ - { - name: `Add URL to ${ML_BOTNAME}`, - value: `${ML_PREFIX} url {URL}`, - }, - { - name: `Add API_KEY to ${ML_BOTNAME}`, - value: `${ML_PREFIX} url {API_KEY}`, - }, - { - name: `Set content type`, - value: `${ML_PREFIX} kind {text/image}`, - }, - ]) - .setOnlyOwner(true) - message.channel.send({ embed }) + defaultCommand(ML_BOTNAME, ML_PREFIX, message) return } } diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index 97093c9eb..1ccaf2d03 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -110,3 +110,29 @@ export async function addKind( ) return } + +export function defaultCommand( + botName: string, + botPrefix: string, + message: Sphinx.Message +) { + const embed = new Sphinx.MessageEmbed() + .setAuthor(botName) + .setTitle('Bot Commands:') + .addFields([ + { + name: `Add URL to ${botName}`, + value: `${botPrefix} url {URL}`, + }, + { + name: `Add API_KEY to ${botName}`, + value: `${botPrefix} url {API_KEY}`, + }, + { + name: `Set content type`, + value: `${botPrefix} kind {text/image}`, + }, + ]) + .setOnlyOwner(true) + message.channel.send({ embed }) +} From c3f7b4ac47c3b8c4e4f6dc3cf92057ac8cdd2155 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 10 Aug 2023 15:20:04 +0100 Subject: [PATCH 35/93] update: removed console logs and refactored the mlBotResponse --- dist/src/builtin/ml.js | 21 +++----------------- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 10 +++++++++- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/ml.ts | 33 +++++++++++++------------------- src/builtin/utill/ml.ts | 8 ++++++++ 6 files changed, 35 insertions(+), 41 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 4d22a7e40..df4fbec26 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -65,18 +65,13 @@ function init() { } } if (!url || !api_key) { - const embed = new Sphinx.MessageEmbed() - .setAuthor(exports.ML_BOTNAME) - .setDescription('not configured!') - .setOnlyUser(parseInt(message.member.id || '0')); - message.channel.send({ embed }); + (0, ml_1.mlBotResponse)('not configured!', message); return; } let host_name = config.host_name; if (!host_name.startsWith('http')) { host_name = `https://${host_name}`; } - console.log('ml bot hostname', host_name); const r = yield (0, node_fetch_1.default)(url, { method: 'POST', body: JSON.stringify({ @@ -89,25 +84,15 @@ function init() { }, }); const j = yield r.json(); - console.log('ML body j', j); if (!j.body) { - const embed = new Sphinx.MessageEmbed() - .setAuthor('ML Bot') - .setDescription('failed to process message (no body)') - .setOnlyUser(parseInt(message.member.id || '0')); - message.channel.send({ embed }); + (0, ml_1.mlBotResponse)('failed to process message (no body)', message); return; } let process_id = j.body && j.body.process_id; if (!process_id) { - const embed = new Sphinx.MessageEmbed() - .setAuthor('ML Bot') - .setDescription('failed to process message') - .setOnlyUser(parseInt(message.member.id || '0')); - message.channel.send({ embed }); + (0, ml_1.mlBotResponse)('failed to process message', message); return; } - console.log('PROCESS ID!!!', process_id); exports.CALLBACKS[process_id] = function (msg) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 1a689acda..9c7cdb0b8 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCAA+E;AAE/E,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,G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ac1400 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultCommand = exports.addKind = exports.addApiKey = exports.addUrl = void 0; +exports.mlBotResponse = exports.defaultCommand = exports.addKind = exports.addApiKey = exports.addUrl = void 0; const index_1 = require("./index"); const Sphinx = require("sphinx-bot"); function addUrl(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newUrl) { @@ -73,4 +73,12 @@ function defaultCommand(botName, botPrefix, message) { message.channel.send({ embed }); } exports.defaultCommand = defaultCommand; +function mlBotResponse(msg, message) { + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription(msg) + .setOnlyUser(parseInt(message.member.id || '0')); + message.channel.send({ embed }); +} +exports.mlBotResponse = mlBotResponse; //# sourceMappingURL=ml.js.map \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index fdbc8b9e7..1249068f3 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AACrC,qCAAoC;AASpC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,GAAG,GAAG,MAAM,CAAA;QACjB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI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IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,uBAAuB,OAAO,EAAE,EAChC,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,0BAgCC;AAED,SAAgB,cAAc,CAC5B,OAAe,EACf,SAAiB,EACjB,OAAuB;IAEvB,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,OAAO,CAAC;SAClB,QAAQ,CAAC,eAAe,CAAC;SACzB,SAAS,CAAC;QACT;YACE,IAAI,EAAE,cAAc,OAAO,EAAE;YAC7B,KAAK,EAAE,GAAG,SAAS,YAAY;SAChC;QACD;YACE,IAAI,EAAE,kBAAkB,OAAO,EAAE;YACjC,KAAK,EAAE,GAAG,SAAS,gBAAgB;SACpC;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,GAAG,SAAS,oBAAoB;SACxC;KACF,CAAC;SACD,YAAY,CAAC,IAAI,CAAC,CAAA;IACrB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAxBD,wCAwBC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AACrC,qCAAoC;AASpC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CA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 No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 8cd477c49..8dc0aeb23 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -4,7 +4,14 @@ import { ChatRecord, models, ChatBotRecord } from '../models' import { findBot } from './utill' import { loadConfig } from '../utils/config' import fetch from 'node-fetch' -import { MlMeta, addUrl, addApiKey, addKind, defaultCommand } from './utill/ml' +import { + MlMeta, + addUrl, + addApiKey, + addKind, + defaultCommand, + mlBotResponse, +} from './utill/ml' const config = loadConfig() @@ -93,11 +100,7 @@ export function init() { } } if (!url || !api_key) { - const embed = new Sphinx.MessageEmbed() - .setAuthor(ML_BOTNAME) - .setDescription('not configured!') - .setOnlyUser(parseInt(message.member.id || '0')) - message.channel.send({ embed }) + mlBotResponse('not configured!', message) return } @@ -105,7 +108,7 @@ export function init() { if (!host_name.startsWith('http')) { host_name = `https://${host_name}` } - console.log('ml bot hostname', host_name) + const r = await fetch(url, { method: 'POST', body: JSON.stringify({ @@ -118,27 +121,17 @@ export function init() { }, }) const j = await r.json() - console.log('ML body j', j) + if (!j.body) { - const embed = new Sphinx.MessageEmbed() - .setAuthor('ML Bot') - .setDescription('failed to process message (no body)') - .setOnlyUser(parseInt(message.member.id || '0')) - message.channel.send({ embed }) + mlBotResponse('failed to process message (no body)', message) return } let process_id = j.body && j.body.process_id if (!process_id) { - const embed = new Sphinx.MessageEmbed() - .setAuthor('ML Bot') - .setDescription('failed to process message') - .setOnlyUser(parseInt(message.member.id || '0')) - message.channel.send({ embed }) + mlBotResponse('failed to process message', message) return } - console.log('PROCESS ID!!!', process_id) - CALLBACKS[process_id] = function (msg: string) { const embed = new Sphinx.MessageEmbed() .setAuthor('ML Bot') diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index 1ccaf2d03..659f13bd9 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -136,3 +136,11 @@ export function defaultCommand( .setOnlyOwner(true) message.channel.send({ embed }) } + +export function mlBotResponse(msg: string, message: Sphinx.Message) { + const embed = new Sphinx.MessageEmbed() + .setAuthor('ML Bot') + .setDescription(msg) + .setOnlyUser(parseInt(message.member.id || '0')) + message.channel.send({ embed }) +} From 035bdcb58f6af34101c53d7bdf34d2ed568445d0 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 10 Aug 2023 15:26:58 +0100 Subject: [PATCH 36/93] update: added sphinx-logger --- dist/src/builtin/ml.js | 3 ++- dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index df4fbec26..dc798000f 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -17,6 +17,7 @@ const utill_1 = require("./utill"); const config_1 = require("../utils/config"); const node_fetch_1 = require("node-fetch"); const ml_1 = require("./utill/ml"); +const logger_1 = require("../utils/logger"); const config = (0, config_1.loadConfig)(); const msg_types = Sphinx.MSG_TYPE; let initted = false; @@ -111,7 +112,7 @@ function init() { }, 5 * 60 * 1000); } catch (e) { - console.error('ML CALL FAILED', e); + logger_1.sphinxLogger.error(`ML CALL FAILED: ${e}`, logger_1.logging.Bots); } })); } diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 9c7cdb0b8..69e86a3d6 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCAOmB;AAEnB,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK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SAClB;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA7HD,oBA6HC;AAED,SAAsB,KAAK,CAAC,EAAU;;QACpC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 8dc0aeb23..33493b58f 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -12,6 +12,7 @@ import { defaultCommand, mlBotResponse, } from './utill/ml' +import { sphinxLogger, logging } from '../utils/logger' const config = loadConfig() @@ -150,7 +151,7 @@ export function init() { delete CALLBACKS[process_id] }, 5 * 60 * 1000) } catch (e) { - console.error('ML CALL FAILED', e) + sphinxLogger.error(`ML CALL FAILED: ${e}`, logging.Bots) } }) } From 83ce53faf708ff1927dcf9f2753ef4b79e7fc83e Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 10 Aug 2023 15:32:11 +0100 Subject: [PATCH 37/93] update: added kind command array of hidden commands --- dist/src/builtin/mother.js | 2 +- dist/src/builtin/mother.js.map | 2 +- dist/src/controllers/botapi/index.js | 1 - dist/src/controllers/botapi/index.js.map | 2 +- src/builtin/mother.ts | 2 +- src/controllers/botapi/index.ts | 1 - 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dist/src/builtin/mother.js b/dist/src/builtin/mother.js index 3c4a21c69..7d24e3b14 100644 --- a/dist/src/builtin/mother.js +++ b/dist/src/builtin/mother.js @@ -61,7 +61,7 @@ const builtInHiddenCmd = { sentiment: ['threshold', 'timer', 'url'], jarvis: ['link', 'hide'], spam_gone: ['add', 'list', 'remove'], - [`${ml_1.ML_PREFIX.substring(1)}`]: ['url', 'api_key'], + [`${ml_1.ML_PREFIX.substring(1)}`]: ['url', 'api_key', 'kind'], }; const builtInBotNames = { welcome: 'WelcomeBot', diff --git a/dist/src/builtin/mother.js.map b/dist/src/builtin/mother.js.map index 5e4bd698d..3edca1c9d 100644 --- a/dist/src/builtin/mother.js.map +++ b/dist/src/builtin/mother.js.map @@ -1 +1 @@ -{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,qCAAoC;AACpC,kDAAmD;AACnD,8CAA4D;AAC5D,sCAA8C;AAC9C,2CAA8B;AAC9B,4CAAoC;AACpC,4CAA4C;AAC5C,4CAA0D;AAC1D,4CAA8C;AAC9C,+BAAsD;AACtD,6BAA4C;AAE5C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,WAAW,GAAG;IAClB,SAAS;IACT,SAAS;IACT,KAAK;IACL,OAAO;IACP,eAAe;IACf,MAAM;IACN,WAAW;IACX,QAAQ;IACR,WAAW;IACX,cAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACvB,CAAA;AAED,yBAAyB;AACzB,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE;QACP,mBAAS,CAAC,aAAa,CAAC,OAAO;QAC/B,mBAAS,CAAC,aAAa,CAAC,UAAU;KACnC;IACD,KAAK,EAAE;QACL,mBAAS,CAAC,aAAa,CAAC,OAAO;QAC/B,mBAAS,CAAC,aAAa,CAAC,KAAK;QAC7B,mBAAS,CAAC,aAAa,CAAC,cAAc;KACvC;IACD,IAAI,EAAE,CAAC,mBAAS,CAAC,aAAa,CAAC,UAAU,EAAE,mBAAS,CAAC,aAAa,CAAC,OAAO,CAAC;IAC3E,MAAM,EAAE;QACN,mBAAS,CAAC,aAAa,CAAC,OAAO;QAC/B,m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I,CAAA;SACZ;IACH,CAAC;CAAA;AAED,SAAe,aAAa,CAAC,IAAgB,EAAE,OAAe;;QAC5D,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACvC,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,qCAAoC;AACpC,kDAAmD;AACnD,8CAA4D;AAC5D,sCAA8C;AAC9C,2CAA8B;AAC9B,4CAAoC;AACpC,4CAA4C;AAC5C,4CAA0D;AAC1D,4CAA8C;AAC9C,+BAAsD;AACtD,6BAA4C;AAE5C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,WAAW,GAAG;IAClB,SAAS;IACT,SAAS;IACT,KAAK;IACL,OAAO;IACP,eAAe;IACf,MAAM;IACN,WAAW;IACX,QAAQ;IACR,WAAW;IACX,cAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACvB,CAAA;AAED,yBAAyB;AACzB,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE;QACP,mBAAS,CAAC,aAAa,CAAC,OAAO;QAC/B,mBAAS,CAAC,aAAa,CAAC,UAAU;KACnC;IACD,KAAK,EAAE;QACL,mBAAS,CAAC,aAAa,CAAC,OAAO;QAC/B,m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,EAAE,CAAC,CAAA;YACxE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;YACxB,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,YAAY,EAAE;gBACjC,OAAO,CAAC,CAAA;aACT;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;CAAA;AAED,SAAe,aAAa,CAAC,IAAgB,EAAE,OAAe;;QAC5D,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACvC,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/dist/src/controllers/botapi/index.js b/dist/src/controllers/botapi/index.js index c355712ad..e296fec1e 100644 --- a/dist/src/controllers/botapi/index.js +++ b/dist/src/controllers/botapi/index.js @@ -287,7 +287,6 @@ function validateAction(a) { exports.validateAction = validateAction; function processMlCallback(req, res) { return __awaiter(this, void 0, void 0, function* () { - console.log('ML BODY', req.body); const body = req.body.body; if (!body) { return (0, res_1.failure)(res, 'no body'); diff --git a/dist/src/controllers/botapi/index.js.map b/dist/src/controllers/botapi/index.js.map index 52db0d05c..5c28cb553 100644 --- a/dist/src/controllers/botapi/index.js.map +++ b/dist/src/controllers/botapi/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCA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AAU,GAAG,IAAI,CAAC,UAAU,CAAA;QAClC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,eAAe,CAAC,CAAA;SACrC;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,aAAa,CAAC,CAAA;SACnC;QAED,IAAI,cAAS,CAAC,UAAU,CAAC,EAAE;YACzB,cAAS,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;SAChC;QAED,IAAA,aAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5B,CAAC;CAAA;AApBD,8CAoBC"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controllers/botapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,yCAAwC;AACxC,yCASqB;AACrB,yCAAgE;AAChE,+CAAuC;AACvC,+CAA6D;AAC7D,+CAA0D;AAC1D,0CAAyC;AACzC,2CAA6E;AAC7E,2CAA4C;AAE5C,iDAAsE;AACtE,yCAA4C;AAC5C,6BAAiC;AACjC,+BAAuB;AACvB,2CAAmC;AA2BnC,SAAsB,cAAc,CAAC,GAAQ,EAAE,GAAQ;;;QACrD,qBAAY,CAAC,IAAI,CAAC,qBAAqB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;QAClD,MAAM,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,qBAAqB,CAAC,CAAA;QAC9C,IAAI,CAAC,GAAG,EAAE;YACR,qBAAY,CAAC,KAAK,CAAC,mBAAmB,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACrD,OAAO,IAAA,kBAAY,EAAC,GAAG,CAAC,CAAA;SACzB;QAED,MAAM,UAAU,GACd,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,IAAI,GAAG,CAAC,OAA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7C,OAAO,qBAAY,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;QAC1C,MAAM,KAAK,GAAkB,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YACzD,KAAK,EAAE,EAAE,EAAE,EAAE,OAAO,CAAC,MAAM,EAAE;SAC9B,CAAC,CAAkB,CAAA;QACpB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;IACjC,CAAC;CAAA;AAVD,wCAUC;AAED,SAAsB,iBAAiB,CAAC,GAAQ,EAAE,GAAQ;;QACxD,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,IAAI,CAAA;QAC1B,IAAI,CAAC,IAAI,EAAE;YACT,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,SAAS,CAAC,CAAA;SAC/B;QACD,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;QAClC,IAAI,CAAC,UAAU,EAAE;YACf,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,eAAe,CAAC,CAAA;SACrC;QACD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAA;QAC9B,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,aAAa,CAAC,CAAA;SACnC;QAED,IAAI,cAAS,CAAC,UAAU,CAAC,EAAE;YACzB,cAAS,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAA;SAChC;QAED,IAAA,aAAO,EAAC,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;IAC5B,CAAC;CAAA;AAnBD,8CAmBC"} \ No newline at end of file diff --git a/src/builtin/mother.ts b/src/builtin/mother.ts index 776454a8c..b1c0d1a1d 100644 --- a/src/builtin/mother.ts +++ b/src/builtin/mother.ts @@ -55,7 +55,7 @@ const builtInHiddenCmd = { sentiment: ['threshold', 'timer', 'url'], jarvis: ['link', 'hide'], spam_gone: ['add', 'list', 'remove'], - [`${ML_PREFIX.substring(1)}`]: ['url', 'api_key'], + [`${ML_PREFIX.substring(1)}`]: ['url', 'api_key', 'kind'], } const builtInBotNames = { diff --git a/src/controllers/botapi/index.ts b/src/controllers/botapi/index.ts index 8c278fc04..6a7d5e6b8 100644 --- a/src/controllers/botapi/index.ts +++ b/src/controllers/botapi/index.ts @@ -329,7 +329,6 @@ export async function validateAction(a: Action): Promise { } export async function processMlCallback(req: Req, res: Res): Promise { - console.log('ML BODY', req.body) const body = req.body.body if (!body) { return failure(res, 'no body') From 9195b1ccc6ac23f57a7c8afd8d2297da032fe68c Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 14 Aug 2023 22:18:58 +0100 Subject: [PATCH 38/93] update: added host name --- testing/stack/alice.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/stack/alice.json b/testing/stack/alice.json index d2de0af13..9f1af4483 100644 --- a/testing/stack/alice.json +++ b/testing/stack/alice.json @@ -12,6 +12,7 @@ "tribes_mqtt_port": "1883", "tribes_insecure": true, "public_url": "127.0.0.1:3001", - "connect_ui": true + "connect_ui": true, + "host_name": "http://localhost:3001" } } From e08352e9ca5286cfa305a0722ea0e585124c5d45 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 15 Aug 2023 01:19:26 +0100 Subject: [PATCH 39/93] feat: ml-bot test --- dist/src/tests/controllers/mlBot.test.js | 136 +++++++++++++ dist/src/tests/controllers/mlBot.test.js.map | 1 + dist/src/tests/utils/msg/decryptMsg.js | 10 + dist/src/tests/utils/msg/decryptMsg.js.map | 1 + dist/src/tests/utils/msg/index.js | 4 +- dist/src/tests/utils/msg/index.js.map | 2 +- src/tests/configs/nodes.json | 65 +++--- src/tests/controllers/mlBot.test.ts | 197 +++++++++++++++++++ src/tests/utils/msg/decryptMsg.ts | 7 + src/tests/utils/msg/index.ts | 1 + 10 files changed, 383 insertions(+), 41 deletions(-) create mode 100644 dist/src/tests/controllers/mlBot.test.js create mode 100644 dist/src/tests/controllers/mlBot.test.js.map create mode 100644 dist/src/tests/utils/msg/decryptMsg.js create mode 100644 dist/src/tests/utils/msg/decryptMsg.js.map create mode 100644 src/tests/controllers/mlBot.test.ts create mode 100644 src/tests/utils/msg/decryptMsg.ts diff --git a/dist/src/tests/controllers/mlBot.test.js b/dist/src/tests/controllers/mlBot.test.js new file mode 100644 index 000000000..9a3ddf397 --- /dev/null +++ b/dist/src/tests/controllers/mlBot.test.js @@ -0,0 +1,136 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.mlBot = void 0; +const ava_1 = require("ava"); +const helpers_1 = require("../utils/helpers"); +const del_1 = require("../utils/del"); +const save_1 = require("../utils/save"); +const msg_1 = require("../utils/msg"); +const nodes_1 = require("../nodes"); +const get_1 = require("../utils/get"); +/* +npx ava src/tests/controllers/mlBot.test.ts --verbose --serial --timeout=2m +*/ +(0, ava_1.default)('test ml-bot: create tribe, join tribe, install bot, send messages, receive bot response, leave tribe, delete tribe', (t) => __awaiter(void 0, void 0, void 0, function* () { + yield mlBot(t, 0, 1, 4); +})); +function mlBot(t, index1, index2, index3) { + return __awaiter(this, void 0, void 0, function* () { + let alice = nodes_1.default[index1]; + let bob = nodes_1.default[index2]; + let virtualNode1 = nodes_1.default[index3]; + t.truthy(virtualNode1, 'this test requires three nodes'); + console.log(`Checking ml-bot response in tribe for ${alice.alias} and ${bob.alias} and ${virtualNode1.alias}`); + //ALICE CREATES A TRIBE + let tribe = yield (0, save_1.createTribe)(t, alice); + t.truthy(tribe, 'tribe should have been created by alice'); + //BOB JOINS TRIBE CREATED BY NODE1 + if (alice.routeHint) + tribe.owner_route_hint = alice.routeHint; + let join = yield (0, save_1.joinTribe)(t, bob, tribe); + t.true(join, 'bob should join tribe'); + //VIRTUALNODE1 JOINS TRIBE CREATED BY NODE1 + let join2 = yield (0, save_1.joinTribe)(t, virtualNode1, tribe); + t.true(join2, 'node3 should join tribe'); + //Alice installs ML Bot + const install = '/bot install ml'; + yield (0, msg_1.sendTribeMessage)(t, alice, tribe, install); + let botAlias = 'MotherBot'; + const botReply = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 1); + t.truthy(botReply, 'MotherBot should reply'); + botAlias = 'MlBot'; + //http://ml-bot-sphinx-server:3500/text + const url = 'http://localhost:3500/text'; + //Alice Set Text URL + const urlCommand = `/ml url ${url}`; + yield (0, msg_1.sendTribeMessage)(t, alice, tribe, urlCommand); + yield (0, helpers_1.sleep)(20); + const botReply2 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 1); + t.truthy(botReply2, 'MlBot should reply'); + //Alice set API_KEY + const api_key = '/ml api_key qwerty'; + const apiKeyMsg = yield (0, msg_1.sendTribeMessage)(t, alice, tribe, api_key); + const botReply3 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 2); + t.truthy(botReply3, 'MlBot should reply'); + const checkNode1 = yield (0, get_1.shouldNotGetNewMsgs)(t, bob, apiKeyMsg.uuid); + t.true(checkNode1, 'BOB SHOULD NOT SEE THE API_KEY TRIBE COMMAND'); + const checkNode2 = yield (0, get_1.shouldNotGetNewMsgs)(t, virtualNode1, apiKeyMsg.uuid); + t.true(checkNode2, 'VIRTUALNODE1 SHOULD NOT SEE THE API_KEY TRIBE COMMAND'); + //Bot sends Message in tribe + const text4 = (0, helpers_1.randomText)(); + const bobMessage = yield (0, msg_1.sendTribeMessage)(t, bob, tribe, text4); + const botTextResponse = '
This is a response from test ml-bot server built in sphinx-stack
'; + const botImageResponse = '
'; + yield (0, helpers_1.sleep)(8000); + const botReply4 = (yield (0, get_1.getCheckBotMsg)(t, bob, botAlias, tribe, 1)); + const botResponse = (0, msg_1.decryptMessage)(bob, botReply4); + t.true(botResponse === botTextResponse); + //VirtualNodeShould Node See Message + const checkNode3 = yield (0, get_1.shouldNotGetNewMsgs)(t, virtualNode1, bobMessage.uuid); + t.true(checkNode3, 'VIRTUALNODE1 SHOULD NOT SEE Bob Message'); + //Bot sends Message in tribe + const text5 = (0, helpers_1.randomText)(); + const virtualNode1Message = yield (0, msg_1.sendTribeMessage)(t, virtualNode1, tribe, text5); + yield (0, helpers_1.sleep)(8000); + const botReply5 = (yield (0, get_1.getCheckBotMsg)(t, bob, botAlias, tribe, 1)); + const botResponse2 = (0, msg_1.decryptMessage)(bob, botReply5); + t.true(botResponse2 === botTextResponse); + //Bob Node Should not See VirtualNode1 Message + const checkNode4 = yield (0, get_1.shouldNotGetNewMsgs)(t, bob, virtualNode1Message.uuid); + t.true(checkNode4, 'BOB SHOULD NOT SEE VIRTUALNODE1 Message'); + //Alice change Tribe kind to image + const imageKind = '/ml kind image'; + yield (0, msg_1.sendTribeMessage)(t, alice, tribe, imageKind); + const botReply6 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 5); + t.truthy(botReply6, 'MlBot should reply'); + const imageUrl = 'http://localhost:3500/image'; + //Alice change Tribe kind to image + const imageUrlMsg = `/ml url ${imageUrl}`; + yield (0, msg_1.sendTribeMessage)(t, alice, tribe, imageUrlMsg); + const botReply7 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 6); + t.truthy(botReply7, 'MlBot should reply'); + //Alice sends Message in the tribe + const text6 = (0, helpers_1.randomText)(); + const aliceMsg = yield (0, msg_1.sendTribeMessage)(t, alice, tribe, text6); + yield (0, helpers_1.sleep)(8000); + const botReply8 = (yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 7)); + const botResponse3 = (0, msg_1.decryptMessage)(alice, botReply8); + t.true(botResponse3 === botImageResponse); + //Bob Node Should not See Alice Message + const checkNode5 = yield (0, get_1.shouldNotGetNewMsgs)(t, bob, aliceMsg.uuid); + t.true(checkNode5, 'BOB SHOULD NOT SEE ALICE Message'); + //VirtualNode1 Should not See Alice Message + const checkNode6 = yield (0, get_1.shouldNotGetNewMsgs)(t, virtualNode1, aliceMsg.uuid); + t.true(checkNode6, 'VIRTUALNODE1 SHOULD NOT SEE ALICE Message'); + //VirtualNode1 send message in tribe + const text9 = (0, helpers_1.randomText)(); + const virtualNodeImageMsg = yield (0, msg_1.sendTribeMessage)(t, virtualNode1, tribe, text9); + yield (0, helpers_1.sleep)(8000); + const botReply9 = (yield (0, get_1.getCheckBotMsg)(t, virtualNode1, botAlias, tribe, 2)); + const botResponse4 = (0, msg_1.decryptMessage)(virtualNode1, botReply9); + t.true(botResponse4 === botImageResponse); + //Bob Node Should not See VirtualNode Message + const checkNode7 = yield (0, get_1.shouldNotGetNewMsgs)(t, bob, virtualNodeImageMsg.uuid); + t.true(checkNode7, 'BOB SHOULD NOT SEE VirtualNode Message'); + //BOB LEAVES TRIBE + let left2 = yield (0, del_1.leaveTribe)(t, bob, tribe); + t.true(left2, 'bob should leave tribe'); + //VIRTUALNODE1 LEAVES TRIBE + let left3 = yield (0, del_1.leaveTribe)(t, virtualNode1, tribe); + t.true(left3, 'virtualNode1 should leave tribe'); + //NODE1 DELETES TRIBE + let delTribe2 = yield (0, del_1.deleteTribe)(t, alice, tribe); + t.true(delTribe2, 'alice should delete tribe'); + }); +} +exports.mlBot = mlBot; +//# sourceMappingURL=mlBot.test.js.map \ No newline at end of file diff --git a/dist/src/tests/controllers/mlBot.test.js.map b/dist/src/tests/controllers/mlBot.test.js.map new file mode 100644 index 000000000..26da1eae6 --- /dev/null +++ b/dist/src/tests/controllers/mlBot.test.js.map @@ -0,0 +1 @@ +{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names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AC,CAAA;QAC5D,CAAC,CAAC,IAAI,CAAC,YAAY,KAAK,gBAAgB,CAAC,CAAA;QAEzC,6CAA6C;QAC7C,MAAM,UAAU,GAAG,MAAM,IAAA,yBAAmB,EAAC,CAAC,EAAE,GAAG,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAA;QAC9E,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,wCAAwC,CAAC,CAAA;QAE5D,kBAAkB;QAClB,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;QAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAA;QAEvC,2BAA2B;QAC3B,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QACpD,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAnLD,sBAmLC"} \ No newline at end of file diff --git a/dist/src/tests/utils/msg/decryptMsg.js b/dist/src/tests/utils/msg/decryptMsg.js new file mode 100644 index 000000000..7ce0b81da --- /dev/null +++ b/dist/src/tests/utils/msg/decryptMsg.js @@ -0,0 +1,10 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.decryptMessage = void 0; +const rsa = require("../../../crypto/rsa"); +function decryptMessage(node, message) { + const decrypt = rsa.decrypt(node.privkey, message.message_content); + return decrypt; +} +exports.decryptMessage = decryptMessage; +//# sourceMappingURL=decryptMsg.js.map \ No newline at end of file diff --git a/dist/src/tests/utils/msg/decryptMsg.js.map b/dist/src/tests/utils/msg/decryptMsg.js.map new file mode 100644 index 000000000..0ca7b2e4b --- /dev/null +++ b/dist/src/tests/utils/msg/decryptMsg.js.map @@ -0,0 +1 @@ +{"version":3,"file":"decryptMsg.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/decryptMsg.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAG1C,SAAgB,cAAc,CAAC,IAAgB,EAAE,OAAgB;IAC/D,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IAClE,OAAO,OAAO,CAAA;AAChB,CAAC;AAHD,wCAGC"} \ No newline at end of file diff --git a/dist/src/tests/utils/msg/index.js b/dist/src/tests/utils/msg/index.js index 8efc021e9..8ceedf8af 100644 --- a/dist/src/tests/utils/msg/index.js +++ b/dist/src/tests/utils/msg/index.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTribeMessages = exports.sendDirectPayment = exports.sendTribeDirectPayment = exports.getSpecificMsg = exports.getAllMessages = exports.sendMessage = exports.payStream = exports.appRejMember = exports.payInvoice = exports.sendInvoice = exports.sendTribeMessage = exports.sendEscrowMsg = exports.sendPayment = exports.sendImage = exports.boostAsMessage = exports.sendBoost = exports.checkMessageDecryption = exports.sendTribeMessageAndCheckDecryption = exports.sendMessageAndCheckDecryption = void 0; +exports.decryptMessage = exports.getTribeMessages = exports.sendDirectPayment = exports.sendTribeDirectPayment = exports.getSpecificMsg = exports.getAllMessages = exports.sendMessage = exports.payStream = exports.appRejMember = exports.payInvoice = exports.sendInvoice = exports.sendTribeMessage = exports.sendEscrowMsg = exports.sendPayment = exports.sendImage = exports.boostAsMessage = exports.sendBoost = exports.checkMessageDecryption = exports.sendTribeMessageAndCheckDecryption = exports.sendMessageAndCheckDecryption = void 0; var sendMessageAndCheckDecryption_1 = require("./sendMessageAndCheckDecryption"); Object.defineProperty(exports, "sendMessageAndCheckDecryption", { enumerable: true, get: function () { return sendMessageAndCheckDecryption_1.sendMessageAndCheckDecryption; } }); var sendTribeMessageAndCheckDecryption_1 = require("./sendTribeMessageAndCheckDecryption"); @@ -37,4 +37,6 @@ Object.defineProperty(exports, "sendTribeDirectPayment", { enumerable: true, get Object.defineProperty(exports, "sendDirectPayment", { enumerable: true, get: function () { return sendTribeDirectpayment_1.sendDirectPayment; } }); var getTribeMessages_1 = require("./getTribeMessages"); Object.defineProperty(exports, "getTribeMessages", { enumerable: true, get: function () { return getTribeMessages_1.getTribeMessages; } }); +var decryptMsg_1 = require("./decryptMsg"); +Object.defineProperty(exports, "decryptMessage", { enumerable: true, get: function () { return decryptMsg_1.decryptMessage; } }); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/src/tests/utils/msg/index.js.map b/dist/src/tests/utils/msg/index.js.map index 226253a8e..831c42fd3 100644 --- a/dist/src/tests/utils/msg/index.js.map +++ b/dist/src/tests/utils/msg/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/index.ts"],"names":[],"mappings":";;;AAAA,iFAA+E;AAAtE,8IAAA,6BAA6B,OAAA;AACtC,2FAAyF;AAAhF,wJAAA,kCAAkC,OAAA;AAC3C,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAC/B,yCAAuD;AAA9C,sGAAA,SAAS,OAAA;AAAE,2GAAA,cAAc,OAAA;AAClC,yCAAuC;AAA9B,sGAAA,SAAS,OAAA;AAClB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AACzB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,+CAA6C;AAApC,4GAAA,YAAY,OAAA;AACrB,yCAAuC;AAA9B,sGAAA,SAAS,OAAA;AAClB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,mDAAiD;AAAxC,gHAAA,cAAc,OAAA;AACvB,yDAAoD;AAA3C,mHAAA,cAAc,OAAA;AACvB,mEAGiC;AAF/B,gIAAA,sBAAsB,OAAA;AACtB,2HAAA,iBAAiB,OAAA;AAEnB,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/index.ts"],"names":[],"mappings":";;;AAAA,iFAA+E;AAAtE,8IAAA,6BAA6B,OAAA;AACtC,2FAAyF;AAAhF,wJAAA,kCAAkC,OAAA;AAC3C,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAC/B,yCAAuD;AAA9C,sGAAA,SAAS,OAAA;AAAE,2GAAA,cAAc,OAAA;AAClC,yCAAuC;AAA9B,sGAAA,SAAS,OAAA;AAClB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,iDAA+C;AAAtC,8GAAA,aAAa,OAAA;AACtB,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AACzB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,2CAAyC;AAAhC,wGAAA,UAAU,OAAA;AACnB,+CAA6C;AAApC,4GAAA,YAAY,OAAA;AACrB,yCAAuC;AAA9B,sGAAA,SAAS,OAAA;AAClB,6CAA2C;AAAlC,0GAAA,WAAW,OAAA;AACpB,mDAAiD;AAAxC,gHAAA,cAAc,OAAA;AACvB,yDAAoD;AAA3C,mHAAA,cAAc,OAAA;AACvB,mEAGiC;AAF/B,gIAAA,sBAAsB,OAAA;AACtB,2HAAA,iBAAiB,OAAA;AAEnB,uDAAqD;AAA5C,oHAAA,gBAAgB,OAAA;AACzB,2CAA6C;AAApC,4GAAA,cAAc,OAAA"} \ No newline at end of file diff --git a/src/tests/configs/nodes.json b/src/tests/configs/nodes.json index 113c70d93..6fa370bd5 100644 --- a/src/tests/configs/nodes.json +++ b/src/tests/configs/nodes.json @@ -4,11 +4,11 @@ "pubkey": "03a394d0ebf0d003124ab130c6b12b8b990a50a30a464354800a51981ba745bb07", "ip": "http://alice.sphinx:3001", "external_ip": "http://localhost:3001", - "authToken": "OvZ8qFgYCeHeeNu115Uq", - "transportToken": "MIIBCgKCAQEAwGIb8jBtx5jOfGO1l15kxQNUYjn/mbrx1P7HS6jBj2fpDtRGFDDZ\ns57B1+KlG9CIUqPv/4e3fobdHLigJMKVIdWVZXLy8HNsRTYepRzt3LmF9n33dBK8\nDNrggAdP087IODmMIz9hK3oLN0ounu6uPtLgjwrlGrGPRyz8QzZbfCOxpuvJrwtG\nTLHu21oW0kBlgl9V+fwPg5FRhZuwdcBkEpgDfV7KdoRvtDs07Gn5IHHeOVXUSQgt\nkzv8okKvXTZJG9OHTblzqJtIH2TYu4MvX7GpwUffGirdRomVHZc4NFPeu8Pd9YBY\nYrRQzCB8D+B54c3AYso9cViAVsqBnYw39QIDAQAB", - "contact_key": "MIIBCgKCAQEA52wbOYwr6hau8OjHRYecnkHS83qHr4JbBaPpugD5wAVwISEVEfWl3iZA/Q/6f50ZlSCnSU9G/z22y6J0B/jqlEsecVL80nUM/us0wCPdK0hFj/ydXRhKADWJvx0N8qgk3okQ89umBoDpInwOeDYr26VFK9EkSxmlkwrt0/ZScbgs03hHcuq4cgucFT+HhG2nm6DAkmm8h/U72eD6DQ/36EbzWlH9LYFRkL0ZlfDidSyk+BC5DIuIzrmLouLvWEkhg66mvYx8O4nLyn0cNa0q5W3JZKUv6/VTVH2a2Vsxt9EZuWW4AdSq2hkbx28MvtO/ppEBMfaLZAeIepqMM21dgwIDAQAB", - "privkey": "MIIEogIBAAKCAQEA52wbOYwr6hau8OjHRYecnkHS83qHr4JbBaPpugD5wAVwISEVEfWl3iZA/Q/6f50ZlSCnSU9G/z22y6J0B/jqlEsecVL80nUM/us0wCPdK0hFj/ydXRhKADWJvx0N8qgk3okQ89umBoDpInwOeDYr26VFK9EkSxmlkwrt0/ZScbgs03hHcuq4cgucFT+HhG2nm6DAkm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jlpTDNKUDVndXFLUC9IMldxdTZUb3Y0VnhrdjlNUHNqS2cwNy9YWm0ycjFEMGs3QzdCaCtDMGlYRVZKN1lVZ05PdkQzV2JHZ1NVU1RvQzcyd0dRa3p6UE5kOURMdG51UThNeWUyV29wYUtHUHdvZ0QwcXlBckNLWW4xNFRSeG0vdFRWRWdBL25kQ2lLeEJ3bVNlSDFsL3RyelFHNCs0SE5GSGFscEFtZW9zWEFHTDgwL1I0OEFDNkVQZkExTWxvUlAyeUFzTnFoSjFOREhxR0RzYndCMnlwWStyVFBBQnB4N2VYdHMxaFUyVzMyUXlwWk1nUDl4QlN4TjBZL05jWGFUZ0VROUtKcmNUSC8vbU9YZmZMVnZ6ZXdva0hYTG11TjJjZmxWZGFZNGpWUm04Vm9nejRCdnJ1UU12VTcyVWtBU2lVRGU5dXBjQVd4K0RXL0JwZ0E1K054MDFONElVRkJVNEkvOWdFY0M0QnB3cVdoMmt5UFhqOD0=", "pin": "111111" }, { @@ -16,11 +16,11 @@ "pubkey": "02a38857848aca6b32ebcc3c85d07ee41354988f4f1e0b4e6ccd255eee6ed75b8d", "ip": "http://bob.sphinx:3002", "external_ip": "http://localhost:3002", - "authToken": "NyGRQzPu5KsM5gee3VCn", - "transportToken": "MIIBCgKCAQEAvlbjq1PGhk1MJg/xLk5K1HTgk7N0mQeL91FwIgnToutm+cafKywE\nZhbXqEf2RvuTFf1r/3gP0Hh8ViKfw/tA5/og87lIrEnzmjIj6FWPB3WzWJK7yFCY\npV8bCtXSdWvAKFy632Vu8yY5F2rZSfF8RUCht/oQRePnNSAtm68vilB8IgThwKcr\nIWhp7hDcbpgBz5IPYE+OnTN6ozvduBQ/MjwtEw0yD/xoV8kL7dWidxcv7GmoDe0K\nFxVN1DXVQxKLiKooAFRkxkjvwWROgbwn2WqNKlKUiKsjnSNSW9gYBJn/CdVX121w\nDASYHCTwYwbHVqf799Xr2rWBYm+ZtMtOaQIDAQAB", - "contact_key": "MIIBCgKCAQEAx9KQQWgIsNj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QT0=", "pin": "111111" }, { @@ -28,11 +28,11 @@ "pubkey": "0364c05cbcbb9612036cc66297445a88bcfc21941fd816e17a56b54b0b52ff02b9", "ip": "http://carol.sphinx:3003", "external_ip": "http://localhost:3003", - "authToken": "/b/l42BsIxEAwaRrBRZD", - "transportToken": "MIIBCgKCAQEA5qgI7uviAMaK7aOH1SBiZdDk6WJaO6uHdQaNdVaKpHCflFCzhGKk\nv5zlPd3CLOp+spuyNghXpNZnbZq5ynUHmmdCFOj6z8fjQ3tvjz2XZS5Jx9THm7dA\nOHbI5/97lPSIETtDYj+cmYxoA6o1Qj60/bEBbUNk2DIpLX60PzwAnmlOUGtUG2Zg\n4H78kNjMOmY5W6z4IE9kac13pgwK2kFVwoti5uyPHeWXF1jhSMxncuC9ARmH/x4S\nAoGopIZwBnRe+f8ZRQUAgG5aBB5alANH+6EkeZSDE8avbdy4sQMPNfenHWcgoY0m\ni7tVAClHAoBLxkiLOse6U9vizjuMHPxqJQIDAQAB", - "contact_key": "MIIBCgKCAQEAvrCzyPu8H9CWJDM8OMwzM+sfgXuqG9bw4vjMczMSo6Icek9QmxT1DSi4VhxnRtl6YG9GvqobA0K4AM7ioQnzN1benOFphN8/aZfS7WGgPn+yDBp5NXP/13wkSGp0AJUtoEDd/pT09efUsBc93+b8K7sKSj0pgKyCJp9AyZUEO/6X9zz5cXZmCw21eAqaShaoVadBjWudgUVeUR+S/m4QwExhL0zC0OOd/0Vt8cm0vgn04E2gvLFXR4cl7i1IdpISGeb03FKYdnDF3WQt2TN37zBy+WNZxk4zk0g+o3Gn48JSvm/ZQI8KhBEpllu2nxA42bvH/gCHCR5O0qdjqpOT+QIDAQAB", - "privkey": "MIIEpQIBAAKCAQEAvrCzyPu8H9CWJDM8OMwzM+sfgXuqG9bw4vjMczMSo6Icek9QmxT1DSi4VhxnRtl6YG9GvqobA0K4AM7ioQnzN1benOFphN8/aZfS7WGgPn+yDBp5NXP/13wkSGp0AJUtoEDd/pT09efUsBc93+b8K7sKSj0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1VejkyWUczMmFjL2x4bjlCRUdQZ3BVTkZER2dRdUU4bVoxdVQzMUM2VWU3UE9JQVpFSGpYTG1FODlWcWhIZUluMjAyL0FKckZoaHorZjdDNEh6L2wvejEyNzhCTWNuZDA3V2IrdnQ3ODhhMG0yS2lqWVFMSlJOcGt5eVFGWitvQ08zMkwxejlmTmFDOWVCUm9kd25FSjBxMlE4MXI2YlFHejFtTUlPeFJXekI2Ung4VDFGY3VCZDAxa0lMYzZWRVVMMHlYVW44NkdmUllXbVVpa3M2cThvMXljODIrcW5rN044RU00M1Rqbm11ekpYWGtWY1UxSG1yek9MUzUxQ0pLRWNRaHk1R29WQStnc2FrMUZXWmNCMFFheHZKWjkvTHRZMzFVbXlkZW9EL0YrYzM0TjBVWWNSQ0FTWGFuS2hRMVZwcDE3T1dDNStjVVJiSWhQM3hISzdPa09PQnp0RThaRUtIRmVjWktzY3NrODZHc2pXcjVpdmw4YWtiQ3d2a29kWno4Z2ZJS2QzT2VoakZIZ0hkSGZlWDZqTU53VGRxbz0=", "pin": "111111" }, { @@ -42,37 +42,24 @@ "external_ip": "http://localhost:3004", "proxy_ip": "http://proxy.sphinx:5050", "admin_token": "r46bnf8ibrhbb424heba", - "authToken": "kdSHrQr+U3pxar0x0G4w", - "transportToken": "MIIBCgKCAQEAzTwHXruzFOCnduCQGYsSDTWwB1+aKKBHbczfbFoCMbjlHb7qSnMb\ni2JiKmKUjujfXSSF4DEzMTWoIM/GJG9q24V3q6P+3izVV1E6ncTKxvqfZx9dnoRt\nIFN33g0xJWcTaMR0U5SUZByGM/HCNXKnuvuSj1G4IVd/HV1yUsXJx5ym2DHRlhVA\nITiXoyua2QZ1fkCKDq1O9ntuAyuRrVPNbct2/5gzbYsswn0QDb/hKdXNHwxZ+rqq\no+MUldwLCLkX6oImsiYSM0S8IE+rmhoqn08ptVT2qemLo8eMKz1ZOFZPXo+ac2ji\nmMCLPcFUtPdWSykaQi0zF2Fm6FLSxSU/HQIDAQAB", - "contact_key": "MII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1NGcy8wNnFOd3hzMU1tWT0=", "pin": "111111" }, { - "pubkey": "031eac22492ef19825d93646095eaa8e5f71b9dd99e494657ed954d59770a99d6b", + "pubkey": "02cf1835552fcc10ee8bae58f669d22d596663e2ef12ff2b01ad4b231ce6ba1de2", "routeHint": "030841d1519f19c68e80efc5ef5af3460ca4bfa17486fda9baca878b9ef255358f:2199023386625", "alias": "virtualNode0", "ip": "http://host.docker.internal:3004", "external_ip": "http://localhost:3004", - "authToken": "jbdDdBee8ggWiN3Qv6c1", - "transportToken": "MIIBCgKCAQEAzTwHXruzFOCnduCQGYsSDTWwB1+aKKBHbczfbFoCMbjlHb7qSnMb\ni2JiKmKUjujfXSSF4DEzMTWoIM/GJG9q24V3q6P+3izVV1E6ncTKxvqfZx9dnoRt\nIFN33g0xJWcTaMR0U5SUZByGM/HCNXKnuvuSj1G4IVd/HV1yUsXJx5ym2DHRlhVA\nITiXoyua2QZ1fkCKDq1O9ntuAyuRrVPNbct2/5gzbYsswn0QDb/hKdXNHwxZ+rqq\no+MUldwLCLkX6oImsiYSM0S8IE+rmhoqn08ptVT2qemLo8eMKz1ZOFZPXo+ac2ji\nmMCLPcFUtPdWSykaQi0zF2Fm6FLSxSU/HQIDAQAB", - "contact_key": "MIIBCgKCAQEA5hk2+YRDVhgQFgAv9FWRk5IFnsMJ4t9YauWlitCCS05Yk6n4EwCJlEMMHb7e3j8N5fruKAX7efZfhySeUKsYsO1/lrAZHGjz60Ane5jGgqzd+IiXJtraMc5lxmKlypuhzfNezqOuVIdYdjXEpycjvhLCBJ4Mpm9r0Pb6JBfP3bRKqjQYfjf1GGO5RHlk1D75ku//3vdzP7RUF/+JcVwRnqAEiqKir0bybZRdBci6HLpSoBn+Gs55NzH1iluo/NfI0tllh4+b/yAZENCEfa1PZKH8ntepXopWMvOOSve+LygTGTTAvpJ1A/w5T7IOdkqqtC2yoaTNnJERSyPPV+nGVQIDAQAB", - "privkey": "MIIEpAIBAAKCAQEA5hk2+YRDVhgQFgAv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0x2MHljSDRFVTh1TkttTUpFZjVxRFoyV09MT08zUUl2WVNwK0N6dWRKMGY2cjlJb0hGN29JNkk1UHBXMkptV3NFUWt1QTZzL2RXdkJoVm0vRUlCNjZQeUhTSmpHNGlOZE9MamVZTThHSkFOU29jRytHOENRdVdVOFZVL3owcHdwZVlIaE51ZkdSa3RKMXU1K0Z3YmhvSFpzQjZZMVZSd0JTK1NzbDRaVnNGcFpha1dkWEJQWWJwc0NtZm1GOGViVXNPSFNmVVR1eWRKbWFvcmxzeDcya29oUGh5N0kveDlibUxGU3FSRU41bnoydXRHajl4L09vbG8zS1lQL1RFVVY3NFY3RnVhSlA3QjVGRXdFN3pQY256a1lLVVdpNzlZUHI5c3czSStIUU0yclhwVjhPdWpaM2UrdW5yS0ZVbmRwRjd6UWV1SmxxYkY0azU4cnlGcmlrc29RQ2hYYkdHbm9KTnVBNDJOUjJsUUQ2c2huczFXQzU5bGNyVGJVY2NOa3VlKzVQeExmTzlrbjdFbExFem9DbG05NnRITnlydHJwbG5VODc5L3NwUnA3bVNQSG5xVjJYQ2YwN0FmNVdjWHRtR2U3ekpZWDhRb1BLOVlCZzljbUJrU0FqVk9aTHZaODk1cWM0RElDbU41eENsR1BXUUwrY3NOZUNFWjdkTzIrRHVxZTAvckkvL294THNGcVZ6QjNxWU96alhOZUdsRzZwYzZOVkx6aEorZHZhZDNCSzk0WVZOWEdJVWZWMnI1V1l1VEVzZVBDT1M1Z3RoYnYwRDY1bVI5cS9MZ3FkSUJIaWY0RmxWa0xSMW5PMjJOLzdDSkljK1ZEU3Q2N1NNdHNyNUxxdzRNSHdVakhIWDRiYVVLbS9Ob3ZEK3YxTDg2VU1INEJJQk5NMzh6V0lJaW1nLzVINkU1MitEOXNLR0VxQlVEdjQrbDIvcncrWHVtYjNqc2VxeXA0eUlYRjd4ckRaUVBudDZtS2N1QT0=", - "pin": "111111" - }, - { - "pubkey": "03ba193291602885e8df7a1f6f569c89e7efac90211c6b53377cff8aea50836860", - "routeHint": "030841d1519f19c68e80efc5ef5af3460ca4bfa17486fda9baca878b9ef255358f:2199023452161", - "alias": "virtualNode1", - "ip": "http://host.docker.internal:3004", - "external_ip": "http://localhost:3004", - "authToken": "OiQctyCY5snjlHKp5cr9", - "transportToken": "MIIBCgKCAQEAzTwHXruzFOCnduCQGYsSDTWwB1+aKKBHbczfbFoCMbjlHb7qSnMb\ni2JiKmKUjujfXSSF4DEzMTWoIM/GJG9q24V3q6P+3izVV1E6ncTKxvqfZx9dnoRt\nIFN33g0xJWcTaMR0U5SUZByGM/HCNXKnuvuSj1G4IVd/HV1yUsXJx5ym2DHRlhVA\nITiXoyua2QZ1fkCKDq1O9ntuAyuRrVPNbct2/5gzbYsswn0QDb/hKdXNHwxZ+rqq\no+MUldwLCLkX6oImsiYSM0S8IE+rmhoqn08ptVT2qemLo8eMKz1ZOFZPXo+ac2ji\nmMCLPcFUtPdWSykaQi0zF2Fm6FLSxSU/HQIDAQAB", - "contact_key": "MIIBCgKCAQEAszq76xTtZPvQ5hHXgy0IoTXz+ed0Q6ydc9e58O/nodfgRaL//rcLWzk6l5dc6CKjM9SXz9xlKbhl4UOmXIa96fFKVxcT1M68T2S5Tcdv6mSz0Ne75jjM9VcfOVG9YaBJLdDa/odJuupSX+RO8KRhrOFQ4iIaCTqsp5/pKjZyhlltSlL9+mtOCc57s//gE3nfK+3TVi8SjoydmFWIcqCpIai/TBHVLC7AYlFr/81OSn9lCV6AS3lKsTeP++f1aXLNF/iRbxx1xLd9wR5P1jabof6fPtWyuVunHj+rQTcV4N5qKvbJCqjbL7woUi6pf71YMNx/eeddPEJ9AZqEKeKCXQIDAQAB", - "privkey": "MIIEogIBAAKCAQEAszq76xTtZPvQ5hHXgy0IoTXz+ed0Q6ydc9e58O/nodfgRaL//rcLWzk6l5dc6CKjM9SXz9xlKbhl4UOmXIa96fFKVxcT1M68T2S5Tcdv6mSz0Ne75jjM9VcfOVG9YaBJLdDa/odJuupSX+RO8KRhrOFQ4iIaCTqsp5/pKjZ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aL0tJbnJUbWFXUUZzcWxKSkFpSUVPdUxZQUs0R0xHV2JZVHMxUUtPVUJnWXBzaERPRG1pTmp5bXdjOEcrWVRqK2ZiN0JPYjdJbkRlZFNtMHJVTnJNV2NHQlg2dlRmejhWQUxOUGIxZmMrZWVxY0Y1eDExN1ZQWk82WUdZbnZzdWFVaDl4UmpvRktVRThrY05WUFFMRzRlbzVMbGZqLzF2eXF1M3JJUkhaemw2aCtkaDNhcmVzaVAwc054MlcxTWhyK0VZc0FrUXcxRUNuZkVpa3FZNXFKcWhjaENmTlZIRkVZYUJDcGM5anFUODdHWVRZOU5MMlhDeHJ3VzcxV0JhM1hUdGxyREhTY2JwNjU1TmJIOUdaMlM1cGJNdFJLQnpYZm5uYjBjSnBCVnhiSS9RZ3hTMkVWbG40Y2VxdWJYUFpuQXl5UzlFSG9pQ0xmUTE0WjI5bXdxL2NIay9vTWM0Q0xMZGI3VWZDY2I2Sjlhcz0=", "pin": "111111" } ] diff --git a/src/tests/controllers/mlBot.test.ts b/src/tests/controllers/mlBot.test.ts new file mode 100644 index 000000000..b469e2aa8 --- /dev/null +++ b/src/tests/controllers/mlBot.test.ts @@ -0,0 +1,197 @@ +import test from 'ava' +import { randomText, sleep } from '../utils/helpers' +import { deleteTribe, leaveTribe } from '../utils/del' +import { createTribe, joinTribe } from '../utils/save' +import { sendTribeMessage, decryptMessage } from '../utils/msg' +import nodes from '../nodes' +import { getCheckBotMsg, shouldNotGetNewMsgs } from '../utils/get' +import { Message } from '../types' + +/* +npx ava src/tests/controllers/mlBot.test.ts --verbose --serial --timeout=2m +*/ + +test('test ml-bot: create tribe, join tribe, install bot, send messages, receive bot response, leave tribe, delete tribe', async (t) => { + await mlBot(t, 0, 1, 4) +}) + +export async function mlBot(t, index1, index2, index3) { + let alice = nodes[index1] + let bob = nodes[index2] + let virtualNode1 = nodes[index3] + t.truthy(virtualNode1, 'this test requires three nodes') + + console.log( + `Checking ml-bot response in tribe for ${alice.alias} and ${bob.alias} and ${virtualNode1.alias}` + ) + + //ALICE CREATES A TRIBE + let tribe = await createTribe(t, alice) + t.truthy(tribe, 'tribe should have been created by alice') + + //BOB JOINS TRIBE CREATED BY NODE1 + if (alice.routeHint) tribe.owner_route_hint = alice.routeHint + let join = await joinTribe(t, bob, tribe) + t.true(join, 'bob should join tribe') + + //VIRTUALNODE1 JOINS TRIBE CREATED BY NODE1 + let join2 = await joinTribe(t, virtualNode1, tribe) + t.true(join2, 'node3 should join tribe') + + //Alice installs ML Bot + const install = '/bot install ml' + await sendTribeMessage(t, alice, tribe, install) + + let botAlias = 'MotherBot' + const botReply = await getCheckBotMsg(t, alice, botAlias, tribe, 1) + t.truthy(botReply, 'MotherBot should reply') + + botAlias = 'MlBot' + + //http://ml-bot-sphinx-server:3500/text + const url = 'http://localhost:3500/text' + + //Alice Set Text URL + const urlCommand = `/ml url ${url}` + await sendTribeMessage(t, alice, tribe, urlCommand) + + await sleep(20) + + const botReply2 = await getCheckBotMsg(t, alice, botAlias, tribe, 1) + t.truthy(botReply2, 'MlBot should reply') + + //Alice set API_KEY + const api_key = '/ml api_key qwerty' + const apiKeyMsg = await sendTribeMessage(t, alice, tribe, api_key) + + const botReply3 = await getCheckBotMsg(t, alice, botAlias, tribe, 2) + t.truthy(botReply3, 'MlBot should reply') + + const checkNode1 = await shouldNotGetNewMsgs(t, bob, apiKeyMsg.uuid) + t.true(checkNode1, 'BOB SHOULD NOT SEE THE API_KEY TRIBE COMMAND') + + const checkNode2 = await shouldNotGetNewMsgs(t, virtualNode1, apiKeyMsg.uuid) + t.true(checkNode2, 'VIRTUALNODE1 SHOULD NOT SEE THE API_KEY TRIBE COMMAND') + + //Bot sends Message in tribe + const text4 = randomText() + const bobMessage = await sendTribeMessage(t, bob, tribe, text4) + + const botTextResponse = + '
This is a response from test ml-bot server built in sphinx-stack
' + const botImageResponse = + '
' + await sleep(8000) + const botReply4 = (await getCheckBotMsg( + t, + bob, + botAlias, + tribe, + 1 + )) as Message + const botResponse = decryptMessage(bob, botReply4) + t.true(botResponse === botTextResponse) + + //VirtualNodeShould Node See Message + const checkNode3 = await shouldNotGetNewMsgs(t, virtualNode1, bobMessage.uuid) + t.true(checkNode3, 'VIRTUALNODE1 SHOULD NOT SEE Bob Message') + + //Bot sends Message in tribe + const text5 = randomText() + const virtualNode1Message = await sendTribeMessage( + t, + virtualNode1, + tribe, + text5 + ) + await sleep(8000) + const botReply5 = (await getCheckBotMsg( + t, + bob, + botAlias, + tribe, + 1 + )) as Message + const botResponse2 = decryptMessage(bob, botReply5) + t.true(botResponse2 === botTextResponse) + + //Bob Node Should not See VirtualNode1 Message + const checkNode4 = await shouldNotGetNewMsgs(t, bob, virtualNode1Message.uuid) + t.true(checkNode4, 'BOB SHOULD NOT SEE VIRTUALNODE1 Message') + + //Alice change Tribe kind to image + const imageKind = '/ml kind image' + await sendTribeMessage(t, alice, tribe, imageKind) + + const botReply6 = await getCheckBotMsg(t, alice, botAlias, tribe, 5) + t.truthy(botReply6, 'MlBot should reply') + + const imageUrl = 'http://localhost:3500/image' + + //Alice change Tribe kind to image + const imageUrlMsg = `/ml url ${imageUrl}` + await sendTribeMessage(t, alice, tribe, imageUrlMsg) + + const botReply7 = await getCheckBotMsg(t, alice, botAlias, tribe, 6) + t.truthy(botReply7, 'MlBot should reply') + + //Alice sends Message in the tribe + const text6 = randomText() + const aliceMsg = await sendTribeMessage(t, alice, tribe, text6) + + await sleep(8000) + + const botReply8 = (await getCheckBotMsg( + t, + alice, + botAlias, + tribe, + 7 + )) as Message + const botResponse3 = decryptMessage(alice, botReply8) + t.true(botResponse3 === botImageResponse) + + //Bob Node Should not See Alice Message + const checkNode5 = await shouldNotGetNewMsgs(t, bob, aliceMsg.uuid) + t.true(checkNode5, 'BOB SHOULD NOT SEE ALICE Message') + + //VirtualNode1 Should not See Alice Message + const checkNode6 = await shouldNotGetNewMsgs(t, virtualNode1, aliceMsg.uuid) + t.true(checkNode6, 'VIRTUALNODE1 SHOULD NOT SEE ALICE Message') + + //VirtualNode1 send message in tribe + const text9 = randomText() + const virtualNodeImageMsg = await sendTribeMessage( + t, + virtualNode1, + tribe, + text9 + ) + await sleep(8000) + + const botReply9 = (await getCheckBotMsg( + t, + virtualNode1, + botAlias, + tribe, + 2 + )) as Message + const botResponse4 = decryptMessage(virtualNode1, botReply9) + t.true(botResponse4 === botImageResponse) + + //Bob Node Should not See VirtualNode Message + const checkNode7 = await shouldNotGetNewMsgs(t, bob, virtualNodeImageMsg.uuid) + t.true(checkNode7, 'BOB SHOULD NOT SEE VirtualNode Message') + + //BOB LEAVES TRIBE + let left2 = await leaveTribe(t, bob, tribe) + t.true(left2, 'bob should leave tribe') + + //VIRTUALNODE1 LEAVES TRIBE + let left3 = await leaveTribe(t, virtualNode1, tribe) + t.true(left3, 'virtualNode1 should leave tribe') + + //NODE1 DELETES TRIBE + let delTribe2 = await deleteTribe(t, alice, tribe) + t.true(delTribe2, 'alice should delete tribe') +} diff --git a/src/tests/utils/msg/decryptMsg.ts b/src/tests/utils/msg/decryptMsg.ts new file mode 100644 index 000000000..0c5f370f1 --- /dev/null +++ b/src/tests/utils/msg/decryptMsg.ts @@ -0,0 +1,7 @@ +import * as rsa from '../../../crypto/rsa' +import { NodeConfig, Message } from '../../types' + +export function decryptMessage(node: NodeConfig, message: Message) { + const decrypt = rsa.decrypt(node.privkey, message.message_content) + return decrypt +} diff --git a/src/tests/utils/msg/index.ts b/src/tests/utils/msg/index.ts index 983249879..a3fa4220b 100644 --- a/src/tests/utils/msg/index.ts +++ b/src/tests/utils/msg/index.ts @@ -18,3 +18,4 @@ export { sendDirectPayment, } from './sendTribeDirectpayment' export { getTribeMessages } from './getTribeMessages' +export { decryptMessage } from './decryptMsg' From 54364d41376ad234381fe94faffe95f0bdce291c Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 15 Aug 2023 01:25:25 +0100 Subject: [PATCH 40/93] update: unified ml botname --- dist/src/builtin/ml.js | 2 +- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 3 ++- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/ml.ts | 2 +- src/builtin/utill/ml.ts | 3 ++- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index dc798000f..2db99dd15 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -96,7 +96,7 @@ function init() { } exports.CALLBACKS[process_id] = function (msg) { const embed = new Sphinx.MessageEmbed() - .setAuthor('ML Bot') + .setAuthor(exports.ML_BOTNAME) .setOnlyUser(parseInt(message.member.id || '0')); if (meta.kind === 'text') { embed.setDescription(msg); diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 69e86a3d6..f6b6952a0 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCAOmB;AACnB,4CAAuD;AAEvD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,E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;AAFD,sBAEC"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index 3e7ac1400..4e4ae8b3a 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.mlBotResponse = exports.defaultCommand = exports.addKind = exports.addApiKey = exports.addUrl = void 0; const index_1 = require("./index"); const Sphinx = require("sphinx-bot"); +const ml_1 = require("../ml"); function addUrl(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newUrl) { return __awaiter(this, void 0, void 0, function* () { if (!newUrl) { @@ -75,7 +76,7 @@ function defaultCommand(botName, botPrefix, message) { exports.defaultCommand = defaultCommand; function mlBotResponse(msg, message) { const embed = new Sphinx.MessageEmbed() - .setAuthor('ML Bot') + .setAuthor(ml_1.ML_BOTNAME) .setDescription(msg) .setOnlyUser(parseInt(message.member.id || '0')); message.channel.send({ embed }); diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index 1249068f3..2fe37bf42 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AACrC,qCAAoC;AASpC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,GAAG,GAAG,MAAM,CAAA;QACjB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,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AAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,uBAAuB,OAAO,EAAE,EAChC,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,0BAgCC;AAED,SAAgB,cAAc,CAC5B,OAAe,EACf,SAAiB,EACjB,OAAuB;IAEvB,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,OAAO,CAAC;SAClB,QAAQ,CAAC,eAAe,CAAC;SACzB,SAAS,CAAC;QACT;YACE,IAAI,EAAE,cAAc,OAAO,EAAE;YAC7B,KAAK,EAAE,GAAG,SAAS,YAAY;SAChC;QACD;YACE,IAAI,EAAE,kBAAkB,OAAO,EAAE;YACjC,KAAK,EAAE,GAAG,SAAS,gBAAgB;SACpC;QACD;YACE,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,GAAG,SAAS,oBAAoB;SACxC;KACF,CAAC;SACD,YAAY,CAAC,IAAI,CAAC,CAAA;IACrB,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAxBD,wCAwBC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,OAAuB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,QAAQ,CAAC;SACnB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"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D,wCAwBC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,OAAuB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,eAAU,CAAC;SACrB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 33493b58f..33ae1a452 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -135,7 +135,7 @@ export function init() { CALLBACKS[process_id] = function (msg: string) { const embed = new Sphinx.MessageEmbed() - .setAuthor('ML Bot') + .setAuthor(ML_BOTNAME) .setOnlyUser(parseInt(message.member.id || '0')) if (meta.kind === 'text') { embed.setDescription(msg) diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index 659f13bd9..3f80da7d6 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -1,6 +1,7 @@ import { ChatBotRecord, ChatRecord } from '../../models' import { botResponse } from './index' import * as Sphinx from 'sphinx-bot' +import { ML_BOTNAME } from '../ml' type ContentKind = 'text' | 'image' export interface MlMeta { @@ -139,7 +140,7 @@ export function defaultCommand( export function mlBotResponse(msg: string, message: Sphinx.Message) { const embed = new Sphinx.MessageEmbed() - .setAuthor('ML Bot') + .setAuthor(ML_BOTNAME) .setDescription(msg) .setOnlyUser(parseInt(message.member.id || '0')) message.channel.send({ embed }) From a3591780fb61557a09d5be00309c5108c17702fd Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 15 Aug 2023 01:28:05 +0100 Subject: [PATCH 41/93] update: changed ml-bot server to docker-internal url --- dist/src/tests/controllers/mlBot.test.js | 4 ++-- dist/src/tests/controllers/mlBot.test.js.map | 2 +- src/tests/controllers/mlBot.test.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/src/tests/controllers/mlBot.test.js b/dist/src/tests/controllers/mlBot.test.js index 9a3ddf397..2334d5ddd 100644 --- a/dist/src/tests/controllers/mlBot.test.js +++ b/dist/src/tests/controllers/mlBot.test.js @@ -49,7 +49,7 @@ function mlBot(t, index1, index2, index3) { t.truthy(botReply, 'MotherBot should reply'); botAlias = 'MlBot'; //http://ml-bot-sphinx-server:3500/text - const url = 'http://localhost:3500/text'; + const url = 'http://ml-bot-sphinx-server:3500/text'; //Alice Set Text URL const urlCommand = `/ml url ${url}`; yield (0, msg_1.sendTribeMessage)(t, alice, tribe, urlCommand); @@ -92,7 +92,7 @@ function mlBot(t, index1, index2, index3) { yield (0, msg_1.sendTribeMessage)(t, alice, tribe, imageKind); const botReply6 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 5); t.truthy(botReply6, 'MlBot should reply'); - const imageUrl = 'http://localhost:3500/image'; + const imageUrl = 'http://ml-bot-sphinx-server:3500/image'; //Alice change Tribe kind to image const imageUrlMsg = `/ml url ${imageUrl}`; yield (0, msg_1.sendTribeMessage)(t, alice, tribe, imageUrlMsg); diff --git a/dist/src/tests/controllers/mlBot.test.js.map b/dist/src/tests/controllers/mlBot.test.js.map index 26da1eae6..bd2028ae0 100644 --- a/dist/src/tests/controllers/mlBot.test.js.map +++ b/dist/src/tests/controllers/mlBot.test.js.map @@ -1 +1 @@ -{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAoD;AACpD,sCAAsD;AACtD,wCAAsD;AACtD,sCAA+D;AAC/D,oCAA4B;AAC5B,sCAAkE;AAGlE;;EAEE;AAEF,IAAA,aAAI,EAAC,oHAAoH,EAAE,CAAO,CAAC,EAAE,EAAE;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CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,wCAAwC,CAAC,CAAA;QAE5D,kBAAkB;QAClB,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;QAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAA;QAEvC,2BAA2B;QAC3B,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QACpD,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAnLD,sBAmLC"} \ No newline at end of file +{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAoD;AACpD,sCAAsD;AACtD,wCAAsD;AACtD,sCAA+D;AAC/D,oCAA4B;AAC5B,sCAAkE;AAGlE;;EAEE;AAEF,IAAA,aAAI,EAAC,oHAAoH,EAAE,CAAO,CAAC,EAAE,EAAE;IACrI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AACzB,CAAC,CAAA,CAAC,CAAA;AAEF,SAAsB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;QACnD,IAAI,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACzB,IAAI,GAAG,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACvB,IAAI,YAAY,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACh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CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAnLD,sBAmLC"} \ No newline at end of file diff --git a/src/tests/controllers/mlBot.test.ts b/src/tests/controllers/mlBot.test.ts index b469e2aa8..c9e73862c 100644 --- a/src/tests/controllers/mlBot.test.ts +++ b/src/tests/controllers/mlBot.test.ts @@ -49,7 +49,7 @@ export async function mlBot(t, index1, index2, index3) { botAlias = 'MlBot' //http://ml-bot-sphinx-server:3500/text - const url = 'http://localhost:3500/text' + const url = 'http://ml-bot-sphinx-server:3500/text' //Alice Set Text URL const urlCommand = `/ml url ${url}` @@ -126,7 +126,7 @@ export async function mlBot(t, index1, index2, index3) { const botReply6 = await getCheckBotMsg(t, alice, botAlias, tribe, 5) t.truthy(botReply6, 'MlBot should reply') - const imageUrl = 'http://localhost:3500/image' + const imageUrl = 'http://ml-bot-sphinx-server:3500/image' //Alice change Tribe kind to image const imageUrlMsg = `/ml url ${imageUrl}` From 32ed39e04ec6adb3a1772991e03579add7d82d3b Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 15 Aug 2023 01:34:34 +0100 Subject: [PATCH 42/93] update: added ml-bot server branch on stack --- .github/workflows/cln_proxy_integration_test.yml | 2 +- .github/workflows/integration_test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 23c957843..6e1329b79 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -70,7 +70,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone https://github.com/stakwork/sphinx-stack.git stack + git clone -b feat/ml-bot-server https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 666e4ac62..c3fb0abdf 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -70,7 +70,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone https://github.com/stakwork/sphinx-stack.git stack + git clone -b feat/ml-bot-server https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | From 00ac6bcca028e2dce743a4b1ef43adc6790f2e70 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 15 Aug 2023 01:37:10 +0100 Subject: [PATCH 43/93] added ml bot to array of test --- .github/workflows/cln_proxy_integration_test.yml | 1 + .github/workflows/integration_test.yml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 6e1329b79..8386e8516 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -51,6 +51,7 @@ jobs: 'externalBotApi', 'externalHostedBot', 'spamGoneBot', + 'mlBot', ] node: [16] steps: diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index c3fb0abdf..b07ea2122 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -50,7 +50,8 @@ jobs: 'fees', 'externalBotApi', 'externalHostedBot', - spamGoneBot, + 'spamGoneBot', + 'mlBot', ] node: [16] steps: From 54ef5ad38039bf42da07a4f44bb0ae8b51595173 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 15 Aug 2023 01:55:42 +0100 Subject: [PATCH 44/93] update: added log to workflow --- .github/workflows/cln_proxy_integration_test.yml | 4 ++++ .github/workflows/integration_test.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 8386e8516..ec1473cf3 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -103,3 +103,7 @@ jobs: - name: Run tests working-directory: ./relay run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m + continue-on-error: true + - name: See Logs + run: | + docker logs ml-bot-sphinx-server diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index b07ea2122..5da28a18f 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -103,3 +103,7 @@ jobs: - name: Run tests working-directory: ./relay run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m + continue-on-error: true + - name: See Logs + run: | + docker logs ml-bot-sphinx-server From 0211c7182c905a03eee3cc4ff6f19f98457f0f96 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 15 Aug 2023 02:11:34 +0100 Subject: [PATCH 45/93] updated added alice log --- .github/workflows/cln_proxy_integration_test.yml | 1 + .github/workflows/integration_test.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index ec1473cf3..d91a1697e 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -107,3 +107,4 @@ jobs: - name: See Logs run: | docker logs ml-bot-sphinx-server + docker logs alice.sphinx diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 5da28a18f..522f714cc 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -107,3 +107,4 @@ jobs: - name: See Logs run: | docker logs ml-bot-sphinx-server + docker logs alice.sphinx From 9f06a4ad37b268c25f525e140668c45b2c7b02bd Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 15 Aug 2023 02:55:47 +0100 Subject: [PATCH 46/93] update: removed logs from github workflow --- .github/workflows/cln_proxy_integration_test.yml | 5 ----- .github/workflows/integration_test.yml | 5 ----- 2 files changed, 10 deletions(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index d91a1697e..8386e8516 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -103,8 +103,3 @@ jobs: - name: Run tests working-directory: ./relay run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m - continue-on-error: true - - name: See Logs - run: | - docker logs ml-bot-sphinx-server - docker logs alice.sphinx diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 522f714cc..b07ea2122 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -103,8 +103,3 @@ jobs: - name: Run tests working-directory: ./relay run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m - continue-on-error: true - - name: See Logs - run: | - docker logs ml-bot-sphinx-server - docker logs alice.sphinx From 0c0efa7401fc859723878439277eda0c9a0ef7d1 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 15 Aug 2023 02:56:44 +0100 Subject: [PATCH 47/93] update: removed a sleep function --- dist/src/builtin/ml.js | 8 +------- dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 4 ---- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 2db99dd15..ab442cd63 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.sleep = exports.init = exports.CALLBACKS = exports.ML_BOTNAME = exports.ML_PREFIX = void 0; +exports.init = exports.CALLBACKS = exports.ML_BOTNAME = exports.ML_PREFIX = void 0; const Sphinx = require("sphinx-bot"); const botapi_1 = require("../controllers/botapi"); const models_1 = require("../models"); @@ -117,10 +117,4 @@ function init() { })); } exports.init = init; -function sleep(ms) { - return __awaiter(this, void 0, void 0, function* () { - return new Promise((resolve) => setTimeout(resolve, ms)); - }); -} -exports.sleep = sleep; //# sourceMappingURL=ml.js.map \ No newline at end of file diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index f6b6952a0..96ed5843b 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCAOmB;AACnB,4CAAuD;AAEvD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,oBAAW,CAAC,CAAA;IAE9B,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAO,OAAuB,EAA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OAAO,CAAC,CAAA;gBACnD,OAAM;aACP;YAED,iBAAS,CAAC,UAAU,CAAC,GAAG,UAAU,GAAW;gBAC3C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;qBACpC,SAAS,CAAC,kBAAU,CAAC;qBACrB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;gBAClD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;oBACxB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;iBAC1B;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;oBACzB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;iBACpB;gBACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA7HD,oBA6HC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 33ae1a452..bfa26e0a5 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -155,7 +155,3 @@ export function init() { } }) } - -export async function sleep(ms: number): Promise { - return new Promise((resolve) => setTimeout(resolve, ms)) -} From 1126fdd2ccac6c7207005e62e489f359b4c40af5 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 16 Aug 2023 11:37:12 +0100 Subject: [PATCH 48/93] update: added attachment to message type ml bot accespts --- dist/src/builtin/mother.js | 4 ++++ dist/src/builtin/mother.js.map | 2 +- src/builtin/mother.ts | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/dist/src/builtin/mother.js b/dist/src/builtin/mother.js index 7d24e3b14..d61048567 100644 --- a/dist/src/builtin/mother.js +++ b/dist/src/builtin/mother.js @@ -54,6 +54,10 @@ const builtInBotMsgTypes = { constants_1.default.message_types.boost, constants_1.default.message_types.attachment, ], + [`${ml_1.ML_PREFIX.substring(1)}`]: [ + constants_1.default.message_types.message, + constants_1.default.message_types.attachment, + ], }; const builtInHiddenCmd = { callRecording: ['hide', 'update'], diff --git a/dist/src/builtin/mother.js.map b/dist/src/builtin/mother.js.map index 3edca1c9d..5e860e3ed 100644 --- a/dist/src/builtin/mother.js.map +++ b/dist/src/builtin/mother.js.map @@ -1 +1 @@ -{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,qCAAoC;AACpC,kDAAmD;AACnD,8CAA4D;AAC5D,sCAA8C;AAC9C,2CAA8B;AAC9B,4CAAoC;AACpC,4CAA4C;AAC5C,4CAA0D;AAC1D,4CAA8C;AAC9C,+BAAsD;AACtD,6BAA4C;AAE5C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,WAAW,GAAG;IAClB,SAAS;IACT,SAAS;IACT,KAAK;IACL,OAAO;IACP,eAAe;IACf,MAAM;IACN,WAAW;IACX,QAAQ;IACR,WAAW;IACX,cAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACvB,CAAA;AAED,yBAAyB;AACzB,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE;QACP,mBAAS,CAAC,aAAa,CAAC,OAAO;QAC/B,mBAAS,CAAC,aA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C,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,QAAQ,MAAM,MAAM,CAAC,WAAW,QAAQ,IAAI,EAAE,CAAC,CAAA;YACxE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;YACxB,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,YAAY,EAAE;gBACjC,OAAO,CAAC,CAAA;aACT;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;CAAA;AAED,SAAe,aAAa,CAAC,IAAgB,EAAE,OAAe;;QAC5D,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACvC,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,qCAAoC;AACpC,kDAAmD;AACnD,8CAA4D;AAC5D,sCAA8C;AAC9C,2CAA8B;AAC9B,4CAAoC;AACpC,4CAA4C;AAC5C,4CAA0D;AAC1D,4CAA8C;AAC9C,+BAAsD;AACtD,6BAA4C;AAE5C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,WAAW,GAAG;IAClB,SAAS;IACT,SAA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.ts b/src/builtin/mother.ts index b1c0d1a1d..671a93e12 100644 --- a/src/builtin/mother.ts +++ b/src/builtin/mother.ts @@ -47,6 +47,10 @@ const builtInBotMsgTypes = { constants.message_types.boost, constants.message_types.attachment, ], + [`${ML_PREFIX.substring(1)}`]: [ + constants.message_types.message, + constants.message_types.attachment, + ], } const builtInHiddenCmd = { From 4fcef4084384b23ec9740ecfd72fb9a697f54e99 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 16 Aug 2023 17:41:28 +0100 Subject: [PATCH 49/93] feat: added the add new model command --- dist/src/builtin/ml.js | 5 ++- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 42 +++++++++++++++++- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/ml.ts | 6 ++- src/builtin/utill/ml.ts | 75 +++++++++++++++++++++++++++++++- 6 files changed, 126 insertions(+), 6 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index ab442cd63..fd36d8e47 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -40,7 +40,7 @@ function init() { where: { uuid: message.channel.id }, })); const bot = yield (0, utill_1.findBot)({ botPrefix: exports.ML_PREFIX, tribe }); - let meta = JSON.parse(bot.meta || `{}`); + let meta = JSON.parse(bot.meta || `[]`); meta.kind = meta.kind || 'text'; const url = meta.url; const api_key = meta.apiKey; @@ -60,6 +60,9 @@ function init() { const newKind = arr[2]; yield (0, ml_1.addKind)(bot, meta, exports.ML_BOTNAME, exports.ML_PREFIX, tribe, cmd, message, newKind); return; + case 'add': + yield (0, ml_1.addModel)(exports.ML_BOTNAME, exports.ML_PREFIX, tribe, arr, message); + return; default: (0, ml_1.defaultCommand)(exports.ML_BOTNAME, exports.ML_PREFIX, message); return; diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 96ed5843b..f666d4d9d 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 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zB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;iBACpB;gBACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AAhID,oBAgIC"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index 4e4ae8b3a..f65586570 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -9,10 +9,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.mlBotResponse = exports.defaultCommand = exports.addKind = exports.addApiKey = exports.addUrl = void 0; +exports.mlBotResponse = exports.addModel = exports.defaultCommand = exports.addKind = exports.addApiKey = exports.addUrl = void 0; const index_1 = require("./index"); const Sphinx = require("sphinx-bot"); const ml_1 = require("../ml"); +const logger_1 = require("../../utils/logger"); function addUrl(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newUrl) { return __awaiter(this, void 0, void 0, function* () { if (!newUrl) { @@ -74,6 +75,45 @@ function defaultCommand(botName, botPrefix, message) { message.channel.send({ embed }); } exports.defaultCommand = defaultCommand; +function findMetaByName(name, mlMeta) { + for (let i = 0; i < mlMeta.length; i++) { + const meta = mlMeta[i]; + if (meta.name === name) { + return meta; + } + } +} +function addModel(botName, botPrefix, tribe, msgArr, messageObject) { + return __awaiter(this, void 0, void 0, function* () { + const cmd = msgArr[1]; + const name = msgArr[2]; + const url = msgArr[3]; + try { + if (!name) { + yield (0, index_1.botResponse)(botName, 'Please provide a valid model name', botPrefix, tribe.id, messageObject, cmd); + return; + } + const bot = yield (0, index_1.findBot)({ botPrefix, tribe }); + let metaArray = JSON.parse(bot.meta || `[]`); + const meta = findMetaByName(name, metaArray); + if (meta) { + yield (0, index_1.botResponse)(botName, 'Model already exist', botPrefix, tribe.id, messageObject, cmd); + return; + } + const newModel = { name, apiKey: '', url: url || '', kind: 'text' }; + metaArray.push(newModel); + yield bot.update({ meta: JSON.stringify(metaArray) }); + yield (0, index_1.botResponse)(botName, 'New model added successfully', botPrefix, tribe.id, messageObject, cmd); + return; + } + catch (error) { + logger_1.sphinxLogger.error(`error while adding model: ${error}`, logger_1.logging.Bots); + yield (0, index_1.botResponse)(botName, error.message || 'Error occured while adding a model', botPrefix, tribe.id, messageObject, cmd); + return; + } + }); +} +exports.addModel = addModel; function mlBotResponse(msg, message) { const embed = new Sphinx.MessageEmbed() .setAuthor(ml_1.ML_BOTNAME) diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index 2fe37bf42..a245d26bb 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAqC;AACrC,qCAAoC;AACpC,8BAAkC;AASlC,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAA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AAC;AAND,sCAMC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,MAAc;;QAEd,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,4BAA4B,EAC5B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,GAAG,GAAG,MAAM,CAAA;QACjB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,0BAA0B,EAC1B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;QACD,OAAM;IACR,CAAC;CAAA;AAhCD,wBAgCC;AAED,SAAsB,SAAS,CAC7B,GAAkB,EAClB,IAAY,EACZ,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,GAAW,EACX,UAA0B,EAC1B,SAAiB;;QAEjB,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,EAChC,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QACD,IAAI,CAAC,MAAM,GAAG,SAAS,CAAA;QACvB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;QAChD,MAAM,IAAA,mBAAW,EAC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AM;aACP;YACD,MAAM,QAAQ,GAAW,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA;YAC3E,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YACxB,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YACrD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,8BAA8B,EAC9B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,6BAA6B,KAAK,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACtE,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,KAAK,CAAC,OAAO,IAAI,oCAAoC,EACrD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;IACH,CAAC;CAAA;AA5DD,4BA4DC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,OAAuB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,eAAU,CAAC;SACrB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index bfa26e0a5..51220cfa5 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -11,6 +11,7 @@ import { addKind, defaultCommand, mlBotResponse, + addModel, } from './utill/ml' import { sphinxLogger, logging } from '../utils/logger' @@ -46,7 +47,7 @@ export function init() { const bot: ChatBotRecord = await findBot({ botPrefix: ML_PREFIX, tribe }) - let meta: MlMeta = JSON.parse(bot.meta || `{}`) + let meta: MlMeta = JSON.parse(bot.meta || `[]`) meta.kind = meta.kind || 'text' const url = meta.url const api_key = meta.apiKey @@ -95,6 +96,9 @@ export function init() { newKind ) return + case 'add': + await addModel(ML_BOTNAME, ML_PREFIX, tribe, arr, message) + return default: defaultCommand(ML_BOTNAME, ML_PREFIX, message) return diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index 3f80da7d6..734c92ab3 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -1,13 +1,15 @@ import { ChatBotRecord, ChatRecord } from '../../models' -import { botResponse } from './index' +import { botResponse, findBot } from './index' import * as Sphinx from 'sphinx-bot' import { ML_BOTNAME } from '../ml' +import { sphinxLogger, logging } from '../../utils/logger' type ContentKind = 'text' | 'image' export interface MlMeta { url: string apiKey: string kind: ContentKind + name: string } export async function addUrl( @@ -138,6 +140,77 @@ export function defaultCommand( message.channel.send({ embed }) } +function findMetaByName(name: string, mlMeta: MlMeta[]) { + for (let i = 0; i < mlMeta.length; i++) { + const meta = mlMeta[i] + if (meta.name === name) { + return meta + } + } +} + +export async function addModel( + botName: string, + botPrefix: string, + tribe: ChatRecord, + msgArr: string[], + messageObject: Sphinx.Message +) { + const cmd = msgArr[1] + const name = msgArr[2] + const url = msgArr[3] + try { + if (!name) { + await botResponse( + botName, + 'Please provide a valid model name', + botPrefix, + tribe.id, + messageObject, + cmd + ) + return + } + const bot = await findBot({ botPrefix, tribe }) + let metaArray: MlMeta[] = JSON.parse(bot.meta || `[]`) + const meta = findMetaByName(name, metaArray) + if (meta) { + await botResponse( + botName, + 'Model already exist', + botPrefix, + tribe.id, + messageObject, + cmd + ) + return + } + const newModel: MlMeta = { name, apiKey: '', url: url || '', kind: 'text' } + metaArray.push(newModel) + await bot.update({ meta: JSON.stringify(metaArray) }) + await botResponse( + botName, + 'New model added successfully', + botPrefix, + tribe.id, + messageObject, + cmd + ) + return + } catch (error) { + sphinxLogger.error(`error while adding model: ${error}`, logging.Bots) + await botResponse( + botName, + error.message || 'Error occured while adding a model', + botPrefix, + tribe.id, + messageObject, + cmd + ) + return + } +} + export function mlBotResponse(msg: string, message: Sphinx.Message) { const embed = new Sphinx.MessageEmbed() .setAuthor(ML_BOTNAME) From 2aa739136b6324783a9b7b7b0e210ccdb5c9d0f7 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 16 Aug 2023 19:20:21 +0100 Subject: [PATCH 50/93] updated: updated meta to use object instead of array --- dist/src/builtin/ml.js | 3 +- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 59 ++++++++++++++-------- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/ml.ts | 12 +---- src/builtin/utill/ml.ts | 85 +++++++++++++++++--------------- 6 files changed, 89 insertions(+), 74 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index fd36d8e47..425364301 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -49,8 +49,7 @@ function init() { const cmd = arr[1]; switch (cmd) { case 'url': - const newUrl = arr[2]; - yield (0, ml_1.addUrl)(bot, meta, exports.ML_BOTNAME, exports.ML_PREFIX, tribe, cmd, message, newUrl); + yield (0, ml_1.addUrl)(exports.ML_BOTNAME, exports.ML_PREFIX, tribe, message, arr); return; case 'api_key': const newApiKey = arr[2]; diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index f666d4d9d..129db2745 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCA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O,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AAtHD,oBAsHC"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index f65586570..894c85e86 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -14,16 +14,43 @@ const index_1 = require("./index"); const Sphinx = require("sphinx-bot"); const ml_1 = require("../ml"); const logger_1 = require("../../utils/logger"); -function addUrl(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newUrl) { +function addUrl(botName, botPrefix, tribe, messageObj, msgArr) { return __awaiter(this, void 0, void 0, function* () { - if (!newUrl) { - yield (0, index_1.botResponse)(botName, 'Please provide a valid URL', botPrefix, tribe.id, messageObj, cmd); - return; + const cmd = msgArr[1]; + const name = msgArr[2]; + const url = msgArr[3]; + try { + if (!name || !url) { + yield (0, index_1.botResponse)(botName, `Please provide a valid model ${name ? 'url' : 'name'}`, botPrefix, tribe.id, messageObj, cmd); + return; + } + // const bot = await findBot({ botPrefix, tribe }) + // let metaObj: MlMeta[] = JSON.parse(bot.meta || `[]`) + // const meta = findMetaByName(name, metaObj) + // if (!meta) { + // await botResponse( + // botName, + // 'Model does not exist', + // botPrefix, + // tribe.id, + // messageObj, + // cmd + // ) + // return + // } + // meta.url = url + // await bot.update({ meta: JSON.stringify(meta) }) + // await botResponse( + // botName, + // 'URL updated successfully', + // botPrefix, + // tribe.id, + // messageObj, + // cmd + // ) + // return } - meta.url = newUrl; - yield bot.update({ meta: JSON.stringify(meta) }); - yield (0, index_1.botResponse)(botName, 'URL updated successfully', botPrefix, tribe.id, messageObj, cmd); - return; + catch (error) { } }); } exports.addUrl = addUrl; @@ -75,14 +102,6 @@ function defaultCommand(botName, botPrefix, message) { message.channel.send({ embed }); } exports.defaultCommand = defaultCommand; -function findMetaByName(name, mlMeta) { - for (let i = 0; i < mlMeta.length; i++) { - const meta = mlMeta[i]; - if (meta.name === name) { - return meta; - } - } -} function addModel(botName, botPrefix, tribe, msgArr, messageObject) { return __awaiter(this, void 0, void 0, function* () { const cmd = msgArr[1]; @@ -94,15 +113,15 @@ function addModel(botName, botPrefix, tribe, msgArr, messageObject) { return; } const bot = yield (0, index_1.findBot)({ botPrefix, tribe }); - let metaArray = JSON.parse(bot.meta || `[]`); - const meta = findMetaByName(name, metaArray); + let metaObj = JSON.parse(bot.meta || `{}`); + const meta = metaObj[name]; if (meta) { yield (0, index_1.botResponse)(botName, 'Model already exist', botPrefix, tribe.id, messageObject, cmd); return; } const newModel = { name, apiKey: '', url: url || '', kind: 'text' }; - metaArray.push(newModel); - yield bot.update({ meta: JSON.stringify(metaArray) }); + metaObj[name] = Object.assign({}, newModel); + yield bot.update({ meta: JSON.stringify(metaObj) }); yield (0, index_1.botResponse)(botName, 'New model added successfully', botPrefix, tribe.id, messageObject, cmd); return; } diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index a245d26bb..37d580ba7 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,GAAkB,EAClB,IAAY,EACZ,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C,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YACrD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,8BAA8B,EAC9B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,6BAA6B,KAAK,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACtE,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,KAAK,CAAC,OAAO,IAAI,oCAAoC,EACrD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;IACH,CAAC;CAAA;AA5DD,4BA4DC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,OAAuB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,eAAU,CAAC;SACrB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACtB,MAAM,GAAG,GAAG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EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,6BAA6B,KAAK,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACtE,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,KAAK,CAAC,OAAO,IAAI,oCAAoC,EACrD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;IACH,CAAC;CAAA;AA5DD,4BA4DC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,OAAuB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,eAAU,CAAC;SACrB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 51220cfa5..726d7cf06 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -58,17 +58,7 @@ export function init() { switch (cmd) { case 'url': - const newUrl = arr[2] - await addUrl( - bot, - meta, - ML_BOTNAME, - ML_PREFIX, - tribe, - cmd, - message, - newUrl - ) + await addUrl(ML_BOTNAME, ML_PREFIX, tribe, message, arr) return case 'api_key': const newApiKey = arr[2] diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index 734c92ab3..a57b5085a 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -13,37 +13,53 @@ export interface MlMeta { } export async function addUrl( - bot: ChatBotRecord, - meta: MlMeta, botName: string, botPrefix: string, tribe: ChatRecord, - cmd: string, messageObj: Sphinx.Message, - newUrl: string + msgArr: string[] ) { - if (!newUrl) { - await botResponse( - botName, - 'Please provide a valid URL', - botPrefix, - tribe.id, - messageObj, - cmd - ) - return - } - meta.url = newUrl - await bot.update({ meta: JSON.stringify(meta) }) - await botResponse( - botName, - 'URL updated successfully', - botPrefix, - tribe.id, - messageObj, - cmd - ) - return + const cmd = msgArr[1] + const name = msgArr[2] + const url = msgArr[3] + try { + if (!name || !url) { + await botResponse( + botName, + `Please provide a valid model ${name ? 'url' : 'name'}`, + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } + // const bot = await findBot({ botPrefix, tribe }) + // let metaObj: MlMeta[] = JSON.parse(bot.meta || `[]`) + // const meta = findMetaByName(name, metaObj) + // if (!meta) { + // await botResponse( + // botName, + // 'Model does not exist', + // botPrefix, + // tribe.id, + // messageObj, + // cmd + // ) + // return + // } + // meta.url = url + // await bot.update({ meta: JSON.stringify(meta) }) + // await botResponse( + // botName, + // 'URL updated successfully', + // botPrefix, + // tribe.id, + // messageObj, + // cmd + // ) + // return + } catch (error) {} } export async function addApiKey( @@ -140,15 +156,6 @@ export function defaultCommand( message.channel.send({ embed }) } -function findMetaByName(name: string, mlMeta: MlMeta[]) { - for (let i = 0; i < mlMeta.length; i++) { - const meta = mlMeta[i] - if (meta.name === name) { - return meta - } - } -} - export async function addModel( botName: string, botPrefix: string, @@ -172,8 +179,8 @@ export async function addModel( return } const bot = await findBot({ botPrefix, tribe }) - let metaArray: MlMeta[] = JSON.parse(bot.meta || `[]`) - const meta = findMetaByName(name, metaArray) + let metaObj: { [key: string]: MlMeta } = JSON.parse(bot.meta || `{}`) + const meta = metaObj[name] if (meta) { await botResponse( botName, @@ -186,8 +193,8 @@ export async function addModel( return } const newModel: MlMeta = { name, apiKey: '', url: url || '', kind: 'text' } - metaArray.push(newModel) - await bot.update({ meta: JSON.stringify(metaArray) }) + metaObj[name] = { ...newModel } + await bot.update({ meta: JSON.stringify(metaObj) }) await botResponse( botName, 'New model added successfully', From 8df7cfc771d6835878e6457d8190dadaa74f5d2b Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 16 Aug 2023 22:16:38 +0100 Subject: [PATCH 51/93] update: updated the url commad to work with model name --- dist/src/builtin/utill/ml.js | 42 ++++++++------------- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/utill/ml.ts | 63 +++++++++++++++++++------------- 3 files changed, 54 insertions(+), 53 deletions(-) diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index 894c85e86..40d7f2c18 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -24,33 +24,23 @@ function addUrl(botName, botPrefix, tribe, messageObj, msgArr) { yield (0, index_1.botResponse)(botName, `Please provide a valid model ${name ? 'url' : 'name'}`, botPrefix, tribe.id, messageObj, cmd); return; } - // const bot = await findBot({ botPrefix, tribe }) - // let metaObj: MlMeta[] = JSON.parse(bot.meta || `[]`) - // const meta = findMetaByName(name, metaObj) - // if (!meta) { - // await botResponse( - // botName, - // 'Model does not exist', - // botPrefix, - // tribe.id, - // messageObj, - // cmd - // ) - // return - // } - // meta.url = url - // await bot.update({ meta: JSON.stringify(meta) }) - // await botResponse( - // botName, - // 'URL updated successfully', - // botPrefix, - // tribe.id, - // messageObj, - // cmd - // ) - // return + const bot = yield (0, index_1.findBot)({ botPrefix, tribe }); + let metaObj = JSON.parse(bot.meta || `{}`); + const meta = metaObj[name]; + if (!meta) { + yield (0, index_1.botResponse)(botName, 'Model does not exist', botPrefix, tribe.id, messageObj, cmd); + return; + } + metaObj[name] = Object.assign(Object.assign({}, meta), { url }); + yield bot.update({ meta: JSON.stringify(metaObj) }); + yield (0, index_1.botResponse)(botName, 'URL updated successfully', botPrefix, tribe.id, messageObj, cmd); + return; + } + catch (error) { + logger_1.sphinxLogger.error(`Error trying to update URL: ${error}`, logger_1.logging.Bots); + yield (0, index_1.botResponse)(botName, error.message || 'Error trying to updare URL', botPrefix, tribe.id, messageObj, cmd); + return; } - catch (error) { } }); } exports.addUrl = addUrl; diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index 37d580ba7..a4c6af963 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI;YACF,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE;gBACjB,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,EACvD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;gBACD,OAAM;aACP;YACD,kDAAkD;YAClD,uDAAuD;YACvD,6CAA6C;YAC7C,eAAe;YACf,uBAAuB;YACvB,eAAe;YACf,8BAA8B;YAC9B,iBAAiB;YACjB,gBAAgB;YAChB,kBAAkB;YAClB,UAAU;YACV,MAAM;YACN,WAAW;YACX,IAAI;YACJ,iBAAiB;YACjB,mDAAmD;YACnD,qBAAqB;YACrB,aAAa;YACb,gCAAgC;YAChC,eAAe;YACf,cAAc;YACd,gBAAgB;YAChB,QAAQ;YACR,IAAI;YACJ,SAAS;SACV;QAAC,OAAO,KAAK,EAAE,GAAE;IACpB,CAAC;CAAA;AAhDD,wBAgDC;AAED,SAAsB,SAAS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sCAMC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI;YACF,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE;gBACjB,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,EACvD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;gBACD,OAAM;aACP;YACD,MAAM,GAAG,GAAG,MAAM,IAAA,eAAO,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA;YAC/C,IAAI,OAAO,GAAa,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAA;YACpD,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;YAC1B,IAAI,CAAC,IAAI,EAAE;gBACT,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,sBAAsB,EACtB,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;gBACD,OAAM;aACP;YACD,OAAO,CAAC,IAAI,CAAC,mCAAQ,IAAI,KAAE,GAAG,GAAE,CAAA;YAChC,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE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AAI,oCAAoC,EACrD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;IACH,CAAC;CAAA;AA5DD,4BA4DC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,OAAuB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,eAAU,CAAC;SACrB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index a57b5085a..4d4afe5cd 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -34,32 +34,43 @@ export async function addUrl( ) return } - // const bot = await findBot({ botPrefix, tribe }) - // let metaObj: MlMeta[] = JSON.parse(bot.meta || `[]`) - // const meta = findMetaByName(name, metaObj) - // if (!meta) { - // await botResponse( - // botName, - // 'Model does not exist', - // botPrefix, - // tribe.id, - // messageObj, - // cmd - // ) - // return - // } - // meta.url = url - // await bot.update({ meta: JSON.stringify(meta) }) - // await botResponse( - // botName, - // 'URL updated successfully', - // botPrefix, - // tribe.id, - // messageObj, - // cmd - // ) - // return - } catch (error) {} + const bot = await findBot({ botPrefix, tribe }) + let metaObj: MlMeta[] = JSON.parse(bot.meta || `{}`) + const meta = metaObj[name] + if (!meta) { + await botResponse( + botName, + 'Model does not exist', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } + metaObj[name] = { ...meta, url } + await bot.update({ meta: JSON.stringify(metaObj) }) + await botResponse( + botName, + 'URL updated successfully', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } catch (error) { + sphinxLogger.error(`Error trying to update URL: ${error}`, logging.Bots) + await botResponse( + botName, + error.message || 'Error trying to updare URL', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } } export async function addApiKey( From 824dcd2ac45e77850e94744a01a0eb959baf09c4 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 16 Aug 2023 23:10:11 +0100 Subject: [PATCH 52/93] update: updated the api_key command to use name --- dist/src/builtin/ml.js | 3 +- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 33 ++++++++++++---- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/ml.ts | 12 +----- src/builtin/utill/ml.ts | 65 ++++++++++++++++++++++---------- 6 files changed, 75 insertions(+), 42 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 425364301..6ae21ca7b 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -52,8 +52,7 @@ function init() { yield (0, ml_1.addUrl)(exports.ML_BOTNAME, exports.ML_PREFIX, tribe, message, arr); return; case 'api_key': - const newApiKey = arr[2]; - yield (0, ml_1.addApiKey)(bot, meta, exports.ML_BOTNAME, exports.ML_PREFIX, tribe, cmd, message, newApiKey); + yield (0, ml_1.addApiKey)(exports.ML_BOTNAME, exports.ML_PREFIX, tribe, message, arr); return; case 'kind': const newKind = arr[2]; diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 129db2745..7d6a75d7d 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCAQmB;AACnB,4CAAuD;AAEvD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MA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CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA5GD,oBA4GC"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index 40d7f2c18..f6b50dabf 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -33,7 +33,7 @@ function addUrl(botName, botPrefix, tribe, messageObj, msgArr) { } metaObj[name] = Object.assign(Object.assign({}, meta), { url }); yield bot.update({ meta: JSON.stringify(metaObj) }); - yield (0, index_1.botResponse)(botName, 'URL updated successfully', botPrefix, tribe.id, messageObj, cmd); + yield (0, index_1.botResponse)(botName, `${name.toUpperCase()} URL updated successfully`, botPrefix, tribe.id, messageObj, cmd); return; } catch (error) { @@ -44,16 +44,33 @@ function addUrl(botName, botPrefix, tribe, messageObj, msgArr) { }); } exports.addUrl = addUrl; -function addApiKey(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newApiKey) { +function addApiKey(botName, botPrefix, tribe, messageObj, msgArr) { return __awaiter(this, void 0, void 0, function* () { - if (!newApiKey) { - yield (0, index_1.botResponse)(botName, 'Please provide a valid API KEY', botPrefix, tribe.id, messageObj, cmd); + const cmd = msgArr[1]; + const name = msgArr[2]; + const apiKey = msgArr[3]; + try { + if (!name || !apiKey) { + yield (0, index_1.botResponse)(botName, `Please provide a valid model ${name ? 'api_key' : 'name'}`, botPrefix, tribe.id, messageObj, cmd); + return; + } + const bot = yield (0, index_1.findBot)({ botPrefix, tribe }); + let metaObj = JSON.parse(bot.meta || `{}`); + const meta = metaObj[name]; + if (!meta) { + yield (0, index_1.botResponse)(botName, 'Model does not exist', botPrefix, tribe.id, messageObj, cmd); + return; + } + metaObj[name] = Object.assign(Object.assign({}, meta), { apiKey }); + yield bot.update({ meta: JSON.stringify(metaObj) }); + yield (0, index_1.botResponse)(botName, `${name.toUpperCase()} API KEY updated successfully`, botPrefix, tribe.id, messageObj, cmd); + return; + } + catch (error) { + logger_1.sphinxLogger.error(`Error trying to update API KEY: ${error}`, logger_1.logging.Bots); + yield (0, index_1.botResponse)(botName, error.message || `Error trying to updare ${name.toUpperCase()} API KEY`, botPrefix, tribe.id, messageObj, cmd); return; } - meta.apiKey = newApiKey; - yield bot.update({ meta: JSON.stringify(meta) }); - yield (0, index_1.botResponse)(botName, 'API KEY updated successfully', botPrefix, tribe.id, messageObj, cmd); - return; }); } exports.addApiKey = addApiKey; diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index a4c6af963..7cae8d521 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI;YACF,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE;gBACjB,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,EACvD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;gBACD,OAAM;aACP;YACD,MAAM,GAAG,GAAG,MAAM,IAAA,eAAO,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA;YAC/C,IAAI,OAAO,GAAa,IAAI,CAAC,KAAK,C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,CAAE,CAAA;YAC/B,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;YACnD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,8BAA8B,EAC9B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,6BAA6B,KAAK,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACtE,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,KAAK,CAAC,OAAO,IAAI,oCAAoC,EACrD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;IACH,CAAC;CAAA;AA5DD,4BA4DC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,OAAuB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,eAAU,CAAC;SACrB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM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builtin/ml.ts +++ b/src/builtin/ml.ts @@ -61,17 +61,7 @@ export function init() { await addUrl(ML_BOTNAME, ML_PREFIX, tribe, message, arr) return case 'api_key': - const newApiKey = arr[2] - await addApiKey( - bot, - meta, - ML_BOTNAME, - ML_PREFIX, - tribe, - cmd, - message, - newApiKey - ) + await addApiKey(ML_BOTNAME, ML_PREFIX, tribe, message, arr) return case 'kind': const newKind = arr[2] diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index 4d4afe5cd..b5cbf6f98 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -35,7 +35,7 @@ export async function addUrl( return } const bot = await findBot({ botPrefix, tribe }) - let metaObj: MlMeta[] = JSON.parse(bot.meta || `{}`) + let metaObj: { [key: string]: MlMeta } = JSON.parse(bot.meta || `{}`) const meta = metaObj[name] if (!meta) { await botResponse( @@ -52,7 +52,7 @@ export async function addUrl( await bot.update({ meta: JSON.stringify(metaObj) }) await botResponse( botName, - 'URL updated successfully', + `${name.toUpperCase()} URL updated successfully`, botPrefix, tribe.id, messageObj, @@ -74,19 +74,57 @@ export async function addUrl( } export async function addApiKey( - bot: ChatBotRecord, - meta: MlMeta, botName: string, botPrefix: string, tribe: ChatRecord, - cmd: string, messageObj: Sphinx.Message, - newApiKey: string + msgArr: string[] ) { - if (!newApiKey) { + const cmd = msgArr[1] + const name = msgArr[2] + const apiKey = msgArr[3] + try { + if (!name || !apiKey) { + await botResponse( + botName, + `Please provide a valid model ${name ? 'api_key' : 'name'}`, + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } + const bot = await findBot({ botPrefix, tribe }) + let metaObj: { [key: string]: MlMeta } = JSON.parse(bot.meta || `{}`) + const meta = metaObj[name] + if (!meta) { + await botResponse( + botName, + 'Model does not exist', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } + metaObj[name] = { ...meta, apiKey } + await bot.update({ meta: JSON.stringify(metaObj) }) await botResponse( botName, - 'Please provide a valid API KEY', + `${name.toUpperCase()} API KEY updated successfully`, + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } catch (error) { + sphinxLogger.error(`Error trying to update API KEY: ${error}`, logging.Bots) + await botResponse( + botName, + error.message || `Error trying to updare ${name.toUpperCase()} API KEY`, botPrefix, tribe.id, messageObj, @@ -94,17 +132,6 @@ export async function addApiKey( ) return } - meta.apiKey = newApiKey - await bot.update({ meta: JSON.stringify(meta) }) - await botResponse( - botName, - 'API KEY updated successfully', - botPrefix, - tribe.id, - messageObj, - cmd - ) - return } export async function addKind( From 061523811ec429aaabb5cd9f05465be74b1b1df9 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 17 Aug 2023 00:31:17 +0100 Subject: [PATCH 53/93] update: updated kind command to use model name --- dist/src/builtin/ml.js | 5 +- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 41 ++++++++++++---- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/ml.ts | 14 +----- src/builtin/utill/ml.ts | 82 +++++++++++++++++++++++--------- 6 files changed, 97 insertions(+), 49 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 6ae21ca7b..7b2b2d28f 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -55,11 +55,10 @@ function init() { yield (0, ml_1.addApiKey)(exports.ML_BOTNAME, exports.ML_PREFIX, tribe, message, arr); return; case 'kind': - const newKind = arr[2]; - yield (0, ml_1.addKind)(bot, meta, exports.ML_BOTNAME, exports.ML_PREFIX, tribe, cmd, message, newKind); + yield (0, ml_1.addKind)(exports.ML_BOTNAME, exports.ML_PREFIX, tribe, message, arr); return; case 'add': - yield (0, ml_1.addModel)(exports.ML_BOTNAME, exports.ML_PREFIX, tribe, arr, message); + yield (0, ml_1.addModel)(exports.ML_BOTNAME, exports.ML_PREFIX, tribe, message, arr); return; default: (0, ml_1.defaultCommand)(exports.ML_BOTNAME, exports.ML_PREFIX, message); diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 7d6a75d7d..831aaa545 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCAQmB;AACnB,4CAAuD;AAEvD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,oBAAW,CAAC,CAAA;IAE9B,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAO,OAAuB,EAAE,EAAE;;QAC7D,IAAI,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,GAAG,MAAK,iBAAS;YAAE,OAAM;QAC7C,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;QAC1E,IAAI;YACF,MAAM,KAAK,GAAG,CA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,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AAlGD,oBAkGC"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index f6b50dabf..e4a40a2b6 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -38,7 +38,7 @@ function addUrl(botName, botPrefix, tribe, messageObj, msgArr) { } catch (error) { logger_1.sphinxLogger.error(`Error trying to update URL: ${error}`, logger_1.logging.Bots); - yield (0, index_1.botResponse)(botName, error.message || 'Error trying to updare URL', botPrefix, tribe.id, messageObj, cmd); + yield (0, index_1.botResponse)(botName, error.message || 'Error trying to update URL', botPrefix, tribe.id, messageObj, cmd); return; } }); @@ -68,22 +68,43 @@ function addApiKey(botName, botPrefix, tribe, messageObj, msgArr) { } catch (error) { logger_1.sphinxLogger.error(`Error trying to update API KEY: ${error}`, logger_1.logging.Bots); - yield (0, index_1.botResponse)(botName, error.message || `Error trying to updare ${name.toUpperCase()} API KEY`, botPrefix, tribe.id, messageObj, cmd); + yield (0, index_1.botResponse)(botName, error.message || `Error trying to update ${name.toUpperCase()} API KEY`, botPrefix, tribe.id, messageObj, cmd); return; } }); } exports.addApiKey = addApiKey; -function addKind(bot, meta, botName, botPrefix, tribe, cmd, messageObj, newKind) { +function addKind(botName, botPrefix, tribe, messageObj, msgArray) { return __awaiter(this, void 0, void 0, function* () { - if (newKind !== 'text' && newKind !== 'image') { - yield (0, index_1.botResponse)(botName, 'Please provide a valid kind (text/image)', botPrefix, tribe.id, messageObj, cmd); + const cmd = msgArray[1]; + const name = msgArray[2]; + const kind = msgArray[3]; + try { + if (!name || !kind) { + yield (0, index_1.botResponse)(botName, `Please provide a valid model ${name ? 'kind' : 'name'}`, botPrefix, tribe.id, messageObj, cmd); + return; + } + if (kind !== 'text' && kind !== 'image') { + yield (0, index_1.botResponse)(botName, 'Please provide a valid kind (text/image)', botPrefix, tribe.id, messageObj, cmd); + return; + } + const bot = yield (0, index_1.findBot)({ botPrefix, tribe }); + let metaObj = JSON.parse(bot.meta || `{}`); + const meta = metaObj[name]; + if (!meta) { + yield (0, index_1.botResponse)(botName, 'Model does not exist', botPrefix, tribe.id, messageObj, cmd); + return; + } + metaObj[name] = Object.assign(Object.assign({}, meta), { kind }); + yield bot.update({ meta: JSON.stringify(metaObj) }); + yield (0, index_1.botResponse)(botName, `${name.toUpperCase()} kind updated to ${kind}`, botPrefix, tribe.id, messageObj, cmd); + return; + } + catch (error) { + logger_1.sphinxLogger.error(`Error trying to update kind: ${error}`, logger_1.logging.Bots); + yield (0, index_1.botResponse)(botName, error.message || `Error trying to update ${name.toUpperCase()} kind`, botPrefix, tribe.id, messageObj, cmd); return; } - meta.kind = newKind; - yield bot.update({ meta: JSON.stringify(meta) }); - yield (0, index_1.botResponse)(botName, `bot kind updated to ${newKind}`, botPrefix, tribe.id, messageObj, cmd); - return; }); } exports.addKind = addKind; @@ -109,7 +130,7 @@ function defaultCommand(botName, botPrefix, message) { message.channel.send({ embed }); } exports.defaultCommand = defaultCommand; -function addModel(botName, botPrefix, tribe, msgArr, messageObject) { +function addModel(botName, botPrefix, tribe, messageObject, msgArr) { return __awaiter(this, void 0, void 0, function* () { const cmd = msgArr[1]; const name = msgArr[2]; diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index 7cae8d521..19ba5f1b4 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sour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rB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI;YACF,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE;gBACjB,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,EACvD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;gBACD,OAAM;aACP;YACD,MAAM,GAAG,GAAG,MAAM,IAAA,eAAO,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA;YAC/C,IAAI,OAAO,GAA8B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAA;YACrE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;YAC1B,IAAI,CAAC,IAAI,EAAE;gBACT,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,sBAAsB,EACtB,SAAS,EACT,KAAK,CAAC,EAAE,EACR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SACP;IACH,CAAC;CAAA;AA5DD,4BA4DC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,OAAuB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,eAAU,CAAC;SACrB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 1689cd90d..0faad18ff 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -64,20 +64,10 @@ export function init() { await addApiKey(ML_BOTNAME, ML_PREFIX, tribe, message, arr) return case 'kind': - const newKind = arr[2] - await addKind( - bot, - meta, - ML_BOTNAME, - ML_PREFIX, - tribe, - cmd, - message, - newKind - ) + await addKind(ML_BOTNAME, ML_PREFIX, tribe, message, arr) return case 'add': - await addModel(ML_BOTNAME, ML_PREFIX, tribe, arr, message) + await addModel(ML_BOTNAME, ML_PREFIX, tribe, message, arr) return default: defaultCommand(ML_BOTNAME, ML_PREFIX, message) diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index b5cbf6f98..8bb804e2c 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -1,4 +1,4 @@ -import { ChatBotRecord, ChatRecord } from '../../models' +import { ChatRecord } from '../../models' import { botResponse, findBot } from './index' import * as Sphinx from 'sphinx-bot' import { ML_BOTNAME } from '../ml' @@ -63,7 +63,7 @@ export async function addUrl( sphinxLogger.error(`Error trying to update URL: ${error}`, logging.Bots) await botResponse( botName, - error.message || 'Error trying to updare URL', + error.message || 'Error trying to update URL', botPrefix, tribe.id, messageObj, @@ -124,7 +124,7 @@ export async function addApiKey( sphinxLogger.error(`Error trying to update API KEY: ${error}`, logging.Bots) await botResponse( botName, - error.message || `Error trying to updare ${name.toUpperCase()} API KEY`, + error.message || `Error trying to update ${name.toUpperCase()} API KEY`, botPrefix, tribe.id, messageObj, @@ -135,19 +135,68 @@ export async function addApiKey( } export async function addKind( - bot: ChatBotRecord, - meta: MlMeta, botName: string, botPrefix: string, tribe: ChatRecord, - cmd: string, messageObj: Sphinx.Message, - newKind: string + msgArray: string[] ) { - if (newKind !== 'text' && newKind !== 'image') { + const cmd = msgArray[1] + const name = msgArray[2] + const kind = msgArray[3] + try { + if (!name || !kind) { + await botResponse( + botName, + `Please provide a valid model ${name ? 'kind' : 'name'}`, + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } + if (kind !== 'text' && kind !== 'image') { + await botResponse( + botName, + 'Please provide a valid kind (text/image)', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } + const bot = await findBot({ botPrefix, tribe }) + let metaObj: { [key: string]: MlMeta } = JSON.parse(bot.meta || `{}`) + const meta = metaObj[name] + if (!meta) { + await botResponse( + botName, + 'Model does not exist', + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } + metaObj[name] = { ...meta, kind } + await bot.update({ meta: JSON.stringify(metaObj) }) await botResponse( botName, - 'Please provide a valid kind (text/image)', + `${name.toUpperCase()} kind updated to ${kind}`, + botPrefix, + tribe.id, + messageObj, + cmd + ) + return + } catch (error) { + sphinxLogger.error(`Error trying to update kind: ${error}`, logging.Bots) + await botResponse( + botName, + error.message || `Error trying to update ${name.toUpperCase()} kind`, botPrefix, tribe.id, messageObj, @@ -155,17 +204,6 @@ export async function addKind( ) return } - meta.kind = newKind - await bot.update({ meta: JSON.stringify(meta) }) - await botResponse( - botName, - `bot kind updated to ${newKind}`, - botPrefix, - tribe.id, - messageObj, - cmd - ) - return } export function defaultCommand( @@ -198,8 +236,8 @@ export async function addModel( botName: string, botPrefix: string, tribe: ChatRecord, - msgArr: string[], - messageObject: Sphinx.Message + messageObject: Sphinx.Message, + msgArr: string[] ) { const cmd = msgArr[1] const name = msgArr[2] From 9078ac5f0478c9fb4c223035c0fa907f714fc28e Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 17 Aug 2023 00:50:38 +0100 Subject: [PATCH 54/93] updated the helper function for default comands --- dist/src/builtin/utill/ml.js | 6 +++--- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/utill/ml.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index e4a40a2b6..ccbc96054 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -115,15 +115,15 @@ function defaultCommand(botName, botPrefix, message) { .addFields([ { name: `Add URL to ${botName}`, - value: `${botPrefix} url {URL}`, + value: `${botPrefix} url {MODEL_NAME} {URL}`, }, { name: `Add API_KEY to ${botName}`, - value: `${botPrefix} url {API_KEY}`, + value: `${botPrefix} api_key {MODEL_NAME} {API_KEY}`, }, { name: `Set content type`, - value: `${botPrefix} kind {text/image}`, + value: `${botPrefix} kind {MODEL_NAME} {text/image}`, }, ]) .setOnlyOwner(true); diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index 19ba5f1b4..33d5bc884 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACtB,MAAM,G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AAE,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA;YAC3E,OAAO,CAAC,IAAI,CAAC,qBAAQ,QAAQ,CAAE,CAAA;YAC/B,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;YACnD,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,8BAA8B,EAC9B,SAAS,EACT,KAAK,CAAC,EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,6BAA6B,KAAK,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;YACtE,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,KAAK,CAAC,OAAO,IAAI,oCAAoC,EACrD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,aAAa,EACb,GAAG,CACJ,CAAA;YACD,OAAM;SACP;IACH,CAAC;CAAA;AA5DD,4BA4DC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,OAAuB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,eAAU,CAAC;SACrB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAi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ill/ml.ts b/src/builtin/utill/ml.ts index 8bb804e2c..a5f1f6e19 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -217,15 +217,15 @@ export function defaultCommand( .addFields([ { name: `Add URL to ${botName}`, - value: `${botPrefix} url {URL}`, + value: `${botPrefix} url {MODEL_NAME} {URL}`, }, { name: `Add API_KEY to ${botName}`, - value: `${botPrefix} url {API_KEY}`, + value: `${botPrefix} api_key {MODEL_NAME} {API_KEY}`, }, { name: `Set content type`, - value: `${botPrefix} kind {text/image}`, + value: `${botPrefix} kind {MODEL_NAME} {text/image}`, }, ]) .setOnlyOwner(true) From 2f6fd1f9226b3916ce817550c33dc4e3dd97571d Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 17 Aug 2023 18:02:35 +0100 Subject: [PATCH 55/93] update: ensured users enter correct models commands --- dist/src/builtin/ml.js | 43 ++++++++++++++++++++++++++++++----- dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 46 ++++++++++++++++++++++++++++++++------ 3 files changed, 77 insertions(+), 14 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 7b2b2d28f..90882fdc0 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -39,11 +39,6 @@ function init() { const tribe = (yield models_1.models.Chat.findOne({ where: { uuid: message.channel.id }, })); - const bot = yield (0, utill_1.findBot)({ botPrefix: exports.ML_PREFIX, tribe }); - let meta = JSON.parse(bot.meta || `[]`); - meta.kind = meta.kind || 'text'; - const url = meta.url; - const api_key = meta.apiKey; const arr = (message.content && message.content.split(' ')) || []; if (isAdmin && arr[0] === exports.ML_PREFIX) { const cmd = arr[1]; @@ -65,6 +60,42 @@ function init() { return; } } + const bot = yield (0, utill_1.findBot)({ botPrefix: exports.ML_PREFIX, tribe }); + let metaObj = JSON.parse(bot.meta || `{}`); + const modelsArr = Object.keys(metaObj); + if (modelsArr.length === 0) { + (0, ml_1.mlBotResponse)('No model added yet!', message); + return; + } + let meta; + let content = ''; + if (modelsArr.length === 1) { + meta = metaObj[modelsArr[0]]; + if (message.content.startsWith(`@${modelsArr[0]}`)) { + content = message.content.substring(modelsArr[0].length + 1); + } + else { + content = message.content; + } + } + else { + let modelName = ''; + if (message.content.startsWith('@')) { + modelName = message.content.substring(1, message.content.indexOf(' ')); + content = message.content.substring(modelName.length + 1); + } + else { + (0, ml_1.mlBotResponse)('Specify model name by typing the @ sysmbol followed by model name immediately, without space', message); + return; + } + meta = metaObj[modelName]; + if (!meta) { + (0, ml_1.mlBotResponse)('Please provide a valid model name', message); + return; + } + } + const url = meta.url; + const api_key = meta.apiKey; if (!url || !api_key) { (0, ml_1.mlBotResponse)('not configured!', message); return; @@ -76,7 +107,7 @@ function init() { const r = yield (0, node_fetch_1.default)(url, { method: 'POST', body: JSON.stringify({ - message: message.content, + message: content.trim(), webhook: `${host_name}/ml`, }), headers: { diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 831aaa545..cf8e1ed49 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCAQmB;AACnB,4CAAuD;AAEvD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;A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YAAY,EAAE;qBACpC,SAAS,CAAC,kBAAU,CAAC;qBACrB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;gBAClD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;oBACxB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;iBAC1B;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;oBACzB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;iBACpB;gBACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AAlID,oBAkIC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 0faad18ff..27cb2d6b4 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -45,12 +45,6 @@ export function init() { where: { uuid: message.channel.id }, })) as ChatRecord - const bot: ChatBotRecord = await findBot({ botPrefix: ML_PREFIX, tribe }) - - let meta: MlMeta = JSON.parse(bot.meta || `[]`) - meta.kind = meta.kind || 'text' - const url = meta.url - const api_key = meta.apiKey const arr = (message.content && message.content.split(' ')) || [] if (isAdmin && arr[0] === ML_PREFIX) { @@ -74,6 +68,44 @@ export function init() { return } } + const bot: ChatBotRecord = await findBot({ botPrefix: ML_PREFIX, tribe }) + + let metaObj: { [key: string]: MlMeta } = JSON.parse(bot.meta || `{}`) + const modelsArr = Object.keys(metaObj) + if (modelsArr.length === 0) { + mlBotResponse('No model added yet!', message) + return + } + let meta: MlMeta + let content = '' + if (modelsArr.length === 1) { + meta = metaObj[modelsArr[0]] + if (message.content.startsWith(`@${modelsArr[0]}`)) { + content = message.content.substring(modelsArr[0].length + 1) + } else { + content = message.content + } + } else { + let modelName = '' + if (message.content.startsWith('@')) { + modelName = message.content.substring(1, message.content.indexOf(' ')) + content = message.content.substring(modelName.length + 1) + } else { + mlBotResponse( + 'Specify model name by typing the @ sysmbol followed by model name immediately, without space', + message + ) + return + } + meta = metaObj[modelName] + if (!meta) { + mlBotResponse('Please provide a valid model name', message) + return + } + } + const url = meta.url + const api_key = meta.apiKey + if (!url || !api_key) { mlBotResponse('not configured!', message) return @@ -87,7 +119,7 @@ export function init() { const r = await fetch(url, { method: 'POST', body: JSON.stringify({ - message: message.content, + message: content.trim(), webhook: `${host_name}/ml`, }), headers: { From 96895b2aa0297f04c9fb6d481dad35744a1d771d Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 17 Aug 2023 20:47:12 +0100 Subject: [PATCH 56/93] update: updated test to adapt to new change --- dist/src/builtin/mother.js | 2 +- dist/src/builtin/mother.js.map | 2 +- dist/src/tests/controllers/mlBot.test.js | 44 +++++++++---- dist/src/tests/controllers/mlBot.test.js.map | 2 +- src/builtin/mother.ts | 2 +- src/tests/configs/nodes.json | 67 ++++++++++++-------- src/tests/controllers/mlBot.test.ts | 58 +++++++++++++---- 7 files changed, 118 insertions(+), 59 deletions(-) diff --git a/dist/src/builtin/mother.js b/dist/src/builtin/mother.js index d61048567..0cea32e2d 100644 --- a/dist/src/builtin/mother.js +++ b/dist/src/builtin/mother.js @@ -65,7 +65,7 @@ const builtInHiddenCmd = { sentiment: ['threshold', 'timer', 'url'], jarvis: ['link', 'hide'], spam_gone: ['add', 'list', 'remove'], - [`${ml_1.ML_PREFIX.substring(1)}`]: ['url', 'api_key', 'kind'], + [`${ml_1.ML_PREFIX.substring(1)}`]: ['url', 'api_key', 'kind', 'add'], }; const builtInBotNames = { welcome: 'WelcomeBot', diff --git a/dist/src/builtin/mother.js.map b/dist/src/builtin/mother.js.map index 5e860e3ed..5200ebf46 100644 --- a/dist/src/builtin/mother.js.map +++ b/dist/src/builtin/mother.js.map @@ -1 +1 @@ -{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,qCAAoC;AACpC,kDAAmD;AACnD,8CAA4D;AAC5D,sCAA8C;AAC9C,2CAA8B;AAC9B,4CAAoC;AACpC,4CAA4C;AAC5C,4CAA0D;AAC1D,4CAA8C;AAC9C,+BAAsD;AACtD,6BAA4C;AAE5C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,WAAW,GAAG;IAClB,SAAS;IACT,SAAS;IACT,KAAK;IACL,OAAO;IACP,eAAe;IACf,MAAM;IACN,WAAW;IACX,QAAQ;IACR,WAAW;IACX,cAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACvB,CAAA;AAED,yBAAyB;AACzB,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE;QACP,mBAAS,CAAC,aAAa,CAAC,OAAO;QAC/B,mBAAS,CAAC,aAAa,CAAC,UAAU;KACnC;IACD,KAAK,EAAE;QACL,mBAAS,CAAC,aAAa,CAAC,OAAO;QAC/B,mBAAS,CAAC,aAAa,CAAC,KAAK;QAC7B,mBAAS,CAAC,aAAa,CAAC,cAAc;KACvC;IACD,IAAI,EAAE,CAAC,mBAAS,CAAC,aAAa,CAAC,UAAU,EAAE,mBAAS,CAAC,aAAa,CAAC,OAAO,CAAC;IAC3E,MAAM,EAAE;QACN,mBAAS,CAAC,aAAa,CAAC,OAAO;QAC/B,mBA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,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,YAAY,EAAE;gBACjC,OAAO,CAAC,CAAA;aACT;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;CAAA;AAED,SAAe,aAAa,CAAC,IAAgB,EAAE,OAAe;;QAC5D,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACvC,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,qCAAoC;AACpC,kDAAmD;AACnD,8CAA4D;AAC5D,sCAA8C;AAC9C,2CAA8B;AAC9B,4CAAoC;AACpC,4CAA4C;AAC5C,4CAA0D;AAC1D,4CAA8C;AAC9C,+BAAsD;AACtD,6BAA4C;AAE5C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,WAAW,GAAG;IAClB,SAAS;IACT,SAAS;IACT,KAAK;IACL,OAAO;IACP,eAAe;IACf,MAAM;IACN,WAAW;IACX,QAAQ;IACR,WAAW;IACX,cAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACvB,CAAA;AAED,yBAAyB;AACzB,MAAM,kBAAkB,G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C,EAAE,CAAA;SACjC;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,EAAE,CAAA;SACV;IACH,CAAC;CAAA;AACD,SAAe,YAAY,CAAC,IAAY;;QACtC,IAAI;YACF,IAAI,QAAQ,GAAG,OAAO,CAAA;YACtB,IAAI,MAAM,CAAC,eAAe;gBAAE,QAAQ,GAAG,MAAM,CAAA;YAC7C,MAAM,CAAC,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,QAAQ,MAAM,MAAM,CAAC,WAAW,QAAQ,IAAI,EAAE,CAAC,CAAA;YACxE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;YACxB,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,YAAY,EAAE;gBACjC,OAAO,CAAC,CAAA;aACT;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;CAAA;AAED,SAAe,aAAa,CAAC,IAAgB,EAAE,OAAe;;QAC5D,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACvC,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/dist/src/tests/controllers/mlBot.test.js b/dist/src/tests/controllers/mlBot.test.js index 2334d5ddd..fa7efb728 100644 --- a/dist/src/tests/controllers/mlBot.test.js +++ b/dist/src/tests/controllers/mlBot.test.js @@ -49,17 +49,23 @@ function mlBot(t, index1, index2, index3) { t.truthy(botReply, 'MotherBot should reply'); botAlias = 'MlBot'; //http://ml-bot-sphinx-server:3500/text - const url = 'http://ml-bot-sphinx-server:3500/text'; + const host = 'http://localhost:3500'; + const url = `${host}/text`; + const model1 = 'gpt'; + //Add Model + const addModel = `/ml add ${model1}`; + yield (0, msg_1.sendTribeMessage)(t, alice, tribe, addModel); + yield (0, helpers_1.sleep)(1000); //Alice Set Text URL - const urlCommand = `/ml url ${url}`; + const urlCommand = `/ml url ${model1} ${url}`; yield (0, msg_1.sendTribeMessage)(t, alice, tribe, urlCommand); yield (0, helpers_1.sleep)(20); - const botReply2 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 1); + const botReply2 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 2); t.truthy(botReply2, 'MlBot should reply'); //Alice set API_KEY - const api_key = '/ml api_key qwerty'; + const api_key = `/ml api_key ${model1} qwerty`; const apiKeyMsg = yield (0, msg_1.sendTribeMessage)(t, alice, tribe, api_key); - const botReply3 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 2); + const botReply3 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 3); t.truthy(botReply3, 'MlBot should reply'); const checkNode1 = yield (0, get_1.shouldNotGetNewMsgs)(t, bob, apiKeyMsg.uuid); t.true(checkNode1, 'BOB SHOULD NOT SEE THE API_KEY TRIBE COMMAND'); @@ -88,21 +94,31 @@ function mlBot(t, index1, index2, index3) { const checkNode4 = yield (0, get_1.shouldNotGetNewMsgs)(t, bob, virtualNode1Message.uuid); t.true(checkNode4, 'BOB SHOULD NOT SEE VIRTUALNODE1 Message'); //Alice change Tribe kind to image - const imageKind = '/ml kind image'; + const imageKind = `/ml kind ${model1} image`; yield (0, msg_1.sendTribeMessage)(t, alice, tribe, imageKind); - const botReply6 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 5); + const botReply6 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 6); t.truthy(botReply6, 'MlBot should reply'); - const imageUrl = 'http://ml-bot-sphinx-server:3500/image'; - //Alice change Tribe kind to image - const imageUrlMsg = `/ml url ${imageUrl}`; + const model2 = 'image_gpt'; + const imageUrl = `${host}/image`; + //Add new Model + const newModel = `/ml add ${model2} ${imageUrl}`; + yield (0, msg_1.sendTribeMessage)(t, alice, tribe, newModel); + yield (0, helpers_1.sleep)(1000); + //Alice update new model api_key + const imageUrlMsg = `/ml api_key ${model2} twesting`; yield (0, msg_1.sendTribeMessage)(t, alice, tribe, imageUrlMsg); - const botReply7 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 6); + const botReply7 = yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 8); t.truthy(botReply7, 'MlBot should reply'); + yield (0, helpers_1.sleep)(1000); + //Alice change new model kind to image + const imageUrlKind = `/ml kind ${model2} image`; + yield (0, msg_1.sendTribeMessage)(t, alice, tribe, imageUrlKind); + yield (0, helpers_1.sleep)(1000); //Alice sends Message in the tribe const text6 = (0, helpers_1.randomText)(); - const aliceMsg = yield (0, msg_1.sendTribeMessage)(t, alice, tribe, text6); + const aliceMsg = yield (0, msg_1.sendTribeMessage)(t, alice, tribe, `@${model2} ${text6}`); yield (0, helpers_1.sleep)(8000); - const botReply8 = (yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 7)); + const botReply8 = (yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 10)); const botResponse3 = (0, msg_1.decryptMessage)(alice, botReply8); t.true(botResponse3 === botImageResponse); //Bob Node Should not See Alice Message @@ -113,7 +129,7 @@ function mlBot(t, index1, index2, index3) { t.true(checkNode6, 'VIRTUALNODE1 SHOULD NOT SEE ALICE Message'); //VirtualNode1 send message in tribe const text9 = (0, helpers_1.randomText)(); - const virtualNodeImageMsg = yield (0, msg_1.sendTribeMessage)(t, virtualNode1, tribe, text9); + const virtualNodeImageMsg = yield (0, msg_1.sendTribeMessage)(t, virtualNode1, tribe, `@${model2} ${text9}`); yield (0, helpers_1.sleep)(8000); const botReply9 = (yield (0, get_1.getCheckBotMsg)(t, virtualNode1, botAlias, tribe, 2)); const botResponse4 = (0, msg_1.decryptMessage)(virtualNode1, botReply9); diff --git a/dist/src/tests/controllers/mlBot.test.js.map b/dist/src/tests/controllers/mlBot.test.js.map index bd2028ae0..a39919476 100644 --- a/dist/src/tests/controllers/mlBot.test.js.map +++ b/dist/src/tests/controllers/mlBot.test.js.map @@ -1 +1 @@ -{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAoD;AACpD,sCAAsD;AACtD,wCAAsD;AACtD,sCAA+D;AAC/D,oCAA4B;AAC5B,sCAAkE;AAGlE;;EAEE;AAEF,IAAA,aAAI,EAAC,oHAAoH,EAAE,CAAO,CAAC,EAAE,EAAE;IACrI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AACzB,CAAC,CAAA,CAAC,CAAA;AAEF,SAAsB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;QACnD,IAAI,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACzB,IAAI,GAAG,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACvB,IAAI,YAAY,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QAChC,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,gCAAgC,CAAC,CAAA;QAExD,OAAO,CAAC,GAAG,CACT,yCAAyC,KAAK,CAAC,KAAK,QAAQ,GAAG,CAAC,KAAK,QAAQ,YAAY,CAAC,KAAK,EAAE,CAClG,CAAA;QAED,uBAAuB;QACvB,IAAI,KAAK,GAAG,MAAM,IAAA,kBAAW,EAAC,CAAC,EAAE,KAAK,CAAC,CAAA;QACvC,CAAC,CAAC,MAAM,CAAC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EAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;QAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAA;QAEvC,2BAA2B;QAC3B,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QACpD,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAjND,sBAiNC"} \ No newline at end of file diff --git a/src/builtin/mother.ts b/src/builtin/mother.ts index 671a93e12..58252e380 100644 --- a/src/builtin/mother.ts +++ b/src/builtin/mother.ts @@ -59,7 +59,7 @@ const builtInHiddenCmd = { sentiment: ['threshold', 'timer', 'url'], jarvis: ['link', 'hide'], spam_gone: ['add', 'list', 'remove'], - [`${ML_PREFIX.substring(1)}`]: ['url', 'api_key', 'kind'], + [`${ML_PREFIX.substring(1)}`]: ['url', 'api_key', 'kind', 'add'], } const builtInBotNames = { diff --git a/src/tests/configs/nodes.json b/src/tests/configs/nodes.json index 6fa370bd5..580fe1ae4 100644 --- a/src/tests/configs/nodes.json +++ b/src/tests/configs/nodes.json @@ -4,11 +4,11 @@ "pubkey": "03a394d0ebf0d003124ab130c6b12b8b990a50a30a464354800a51981ba745bb07", "ip": "http://alice.sphinx:3001", "external_ip": "http://localhost:3001", - "authToken": "qcasKC0xQYxJsNxtIKeZ", - "transportToken": "MIIBCgKCAQEAsayTwt2A1H18sE5FinGFFVK8oEaAAA10H5sslqRpwH72JyW1g+Eq\nloSXMdVsWquqYxtrcS6sWWtA8KHoxEgATsqvFU2+fThWup39u+nE9ssP48vv5ymr\nn+kWsNYAx00UB9w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ZaQ1BhYTNRbGVmVDJvai8vdDBMeXhBcG0vMmRPZThzdTQ2Y1kvZUs3TUMvV2JLUEhKbVFGc09BbkYyZzJOeGM5WmpJV1Nlb290aWFwd2o5dUVQTlM4NWtuVGZvVndqbS8vRDBnZjcyRm9ZT09ZQ3Y4MkxLR0hRZTFmRzFQUkVRL1VKQnUvUnhEenN6SlVzeDcwSk92R2Y2dkZZQnNLQW5xWVZjeElEZXBDb2JGUjNPNTNtMTJjNHV6Ukp0az0=", "pin": "111111" }, { @@ -16,11 +16,11 @@ "pubkey": "02a38857848aca6b32ebcc3c85d07ee41354988f4f1e0b4e6ccd255eee6ed75b8d", "ip": "http://bob.sphinx:3002", "external_ip": "http://localhost:3002", - "authToken": "BkUr7s7pWZBDcFY54P0n", - "transportToken": "MIIBCgKCAQEA3AzecNYn3FvCFetCN+eAZ+s2iqPxTOUfV32n+YXxzF7xsacdpwIp\njFqIUHATCDyT8O+muCcnfpuYYUYNHnGcgpv60MhWi0S7Nzd+5ryHmoyP8W0uvEoB\nTHlSPr0VgwxQHEwW9Ypw3iubK0LVgkpqnEoiscbQ7vJ7T51J+tZICMUSqk+q7x3Z\n3844TUvz9N3PwQXaEom88zloT5eBqlE+2dkUU0u79frG7bE07wd7ylCIeo0s9IY4\nsei/lrNHHbn7eXo4UfVVQRW1uXjOcNyQld2IjeJblwey8YkokeHHLb3h8EEixeG+\nEbDHP5pnEqgsWlt1hcAKqssPhTcyerJHQQIDAQAB", - "contact_key": "MIIBCgKCAQEA1lkbeDrNVlmvQSlNxAhWaTk2GF8uKsNuzeKBAsua1xl0stSqOyWSLKe5Ek4d4zvbMateyKlO22TFatt9B89BHnXR+64pkFwysqAubO6poSsDhEzg9Nkn3kk3yTtCS8ZaghZvzUxY/5dv9IkS3u3c240jH4MV59xrXOTNGaAXoqqi2Fk6x8U9UON14EHl+rBYo8x8zVjoNiyk7tjq3IK71qXBra8GGvyZWAnG/tzkdp35VeoTkKqc37AW/FlKB4RyJv2967HUV7qf9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wTW0wQ0o0SzFoUmxHWktGZDZndmozVFEyZ3l5V2VPa1JZb3E3NkVNMjM4QTJLWGRJVm5namhLZkN2dDgwTS9QaW5GbTlGZFVhN0tJTUtRL0NWRVZQR3Q3RXBZSTg4NGxENVBOYmt5OUFody9naHUrTGE1TFptaUl1bDY3YjNBZUtwZHZjR1ZyNzhLQVpteTBPc0lKWUtYUUhyVHhBYzY4Z0VMaG1mcWlocm1aaHIxZHdlb1RPVm95bmJCS3JFNXRLc3M4anBMUHcwWWZ4dDlLL1Y3VEJrTFZ1SCs0MjhKNndMbWg1MkRac3UwU01oWUN1OWIwcVFUNXFSeUo3OVgzRHBGMERaM3VmZVJsN3diNWdlWHRNVnpZZ1Q1RWEydjM3dFJlMTJNbGNKWU5IeUNzSWdMNVQvYnVJNzdNajNOSk5lYUlPT2UybFp1QVhuZEJIRW5VajBXTjRxcTdOcHQyL2NsY0Yyd1RUSUpvSnZ4ZXRSMDRHNDV4ZGV2VnZKQmJzaURhOVMrNjRqa2M4RTRQZitDWHRxMUYvOG1uZkNrZW50VjhUSHE1VFl6cGF4M01oMHd4eGFBa0dIMEMyNUV1TWkxVVYwQ2pJWWtsSVBGUzVpa3ZHdnZGazh6WkRkRGNVS3l4alF3K2xjM2U4ZzhBUUJuemlXVWJvSjVRblM1VVVQTGpMb0hZSko2L3dleW1mZmNRdUZvRE11eXpNNWxaLzZROWtxWFV5akpmNWJLZFo4YnVZS3Z0V1JCang5cXk4Z2dNWU1taWVML2ZNNDV0dnRQMmw4QW1KOD0=", "pin": "111111" }, { @@ -28,11 +28,11 @@ "pubkey": "0364c05cbcbb9612036cc66297445a88bcfc21941fd816e17a56b54b0b52ff02b9", "ip": "http://carol.sphinx:3003", "external_ip": "http://localhost:3003", - "authToken": "SCy1ZKzscIm6/nI09T1n", - "transportToken": "MIIBCgKCAQEA5n/T5ym/QLZEiShIGnHq2KOvf4YzfkHlIOULE1fIxwBi5LsvmTY2\nZ81h/EMAqeojJTyAk25L//UKwESqnTQ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hKUitpSXMyaFd2NUp3ZEpNZngzM2hrL2pFT3FrbU54c0FPVFFxSHRSUThaanNaYzZqT3dNaU52THpDM0ZPMTJnQVZQQ2VKTlVXcDBYZ0NRQm9PQXNNMGtUSTNud3oxdkwwMHlKUzNvWVFZQ2xrSWQ0VHRNRU9kRS9tSktkSnZJTnNTMEdFVEhRNkdIWDlPUE8rZnY3YVR0TDNYSGRHUEJ4ekhjZUVxTFllRlhKTHNodUU3MkVmbVYzVWQ3eWRGVyt4MTNrcjltdz0=", "pin": "111111" }, { @@ -42,24 +42,37 @@ "external_ip": "http://localhost:3004", "proxy_ip": "http://proxy.sphinx:5050", "admin_token": "r46bnf8ibrhbb424heba", - "authToken": "tdgUwB5KXSYEa3TohyrT", - "transportToken": "MIIBCgKCAQEA2Zrbg9vEdzbv3GRM5+IqFegYVv7Ekqz24RH1tbqjMzOY81dMmhZK\nYSjihiJDTaCziXN3bs/VAy0LHop9SVzqUw5SBT5C9nieD04sCQlUgmyUJhPBGXFS\nmeRAM4muROQW5JijqniVxe+Tkgewo/reMAGpUdJOb/VtnWJYuw0ZO6vKGzgG+p15\n7/FpIyo2raaH+xHQ1wJUeMPkacwlVl45xAX4sc/igx1XRlSGHOe8aJWOunFJzty9\nPFnoEPcvfRe5KbOY1eDgHOhQUEcCDAuSiDuZvRu2sf3MN745RDaohER/cHKjvd0j\nmMUgr+0kL8bsrn/gZ6FIzYTHAeRfkx+67wIDAQAB", - "contact_key": "MIIBCgKCAQEA03DDw7Hl3Fceewh1DrwuhPrQssU910KP4MwO5wLcrsrmcbB1aBHI9iYaC/akg81iBK4OGB2yV+sZrsPemCYfvCfK/cJPdmNqgYTQ9PK3CxkvgqxYtj/Vp1DHN72UIZsoGCAKHSsMeuX5b0lx3ONMzl9c2nRt3PGIPXrHmS4O4Lt7bB627r8Cqv9PLJiLUn1VY0ukHyBw+NpAMcfHhKy3fh+yA250XFCk+WUjvl5pgvBbyLzDuMw1QjovaadOVyokc26G3Z2uGNZ5izm5k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w1aUEvTi9CSTBkYkdpb25IenhjTWFrRk5YQ1NGcy8wNnFOd3hzMU1tWT0=", + "authToken": "G6OaAIhl+CHta7ltKmJC", + "transportToken": "MIIBCgKCAQEAooPAuBkokTQjkCuje595SahO/mNOHFcXyognRO6L2dasKED11X6D\nERnqRWXlOATbmHoWbVn+8ZoHHFWhzD4eTBs6XkywIGcnYB1iEU/UL4g+rAOQE+Pt\nmcv0d1qd8hcBpE8RQZomgZ0tFrj5+14MerUqhxSQBWAdWLyWa9LolZfRu924L45u\nopBwM+TdxlmCqi0OySl/Q1TM9Z8UnyQTKIf/7EJ9F4ETvWJ9YiksIgDejMKPVPJt\n5OLrmvhGs8kIsyvjwjkdlLfOl2gAklR9FdA6nygjHo0SzaRqfEa8JSv7eMuMROjA\nCZPy48fdy7ms9ZSHdSsFEeFsL69+bnVICwIDAQAB", + "contact_key": "MIIBCgKCAQEA0NMz+pczCYOUmO8N9zwG8R7p2fU/LhSe0kONh5mcRql8zBwCoD18PVDpF8ZXo3OasB79WNJQ/TQD8Rcw0mwDXof9rkVlB+F0R+qamDL1/TwwAw1wiql7uI4NICQy1MmTLfnYDOHe+YAhaCimJcZyNr6ksl2184vIlN4BWINnRe7a7/dndmO6BhtkWkA6uzkBIEMFtRu9yIqCC3kpJj3YMKATe/gqhVKL0FhAdTEBrC/In51COqgax2LF7ADh4LtoIjijQQfYwPv1AVW0XnF1sKPxB2fvZ+5DL5nC9t1WrHKGzPU7FovQ6xPJQgy73eqte1jurgRdTIcJUUt0eTuwxwIDAQAB", + "privkey": "MIIEogIBAAKCAQEA0NMz+pczCYOUmO8N9zwG8R7p2fU/LhSe0kONh5mcRql8zBwCoD18PVDpF8ZXo3OasB79WNJQ/TQD8Rcw0mwDXof9rkVlB+F0R+qamDL1/TwwAw1wiql7uI4NICQy1MmTLfnYDOHe+YAhaCimJcZyNr6ksl2184vIlN4BWINnRe7a7/dndmO6BhtkWkA6uzkBIEMFtRu9yIqCC3kpJj3YMKATe/gqhVKL0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pBVzUyQWZNTVBPRGYvZ2NtZnA2QlBvUFJ6aXNBZm91dzBsTVQvanJKZHlaVmdJVFZzRS9WQ09YbTJzcjJLcVNRS0xlWWhkNGFyS3dIbXBBNWpma01RWjVQVkMrTy8ydDN3dnpoWHZQbTdPYzVOemtaaTZKNWRSc2p6dGJXclFyLzlLYWhNUVBMRXFsVXJJOWFwall3dXptck9KaHp6dUswd3JhT0FCeW1MbjRlTEprVWQvVEJVR3p2K1pISjZEeEFVVkYzU2dqQ3RxaEJDOWNlZVV4a204SFpOcnRyamZpWUg1dkxESWlOcldMKzVMUXBPRUQ4a3EvU09ldTlWRWhiU2UzTzdMbEQwNXhleExTcTZESW5rd0tFVXgvYUVqRVRDUjZ1cFlGVTdBMVNsclQyNFBMVjljajA4YklQV0g2amVYb050Z3pJa0owMlhlS3FLbXoxRnNlZ3lTVFlCVkRaVk4zWmc4ZE5NT3dVcVBNK2huQlNycHNNb3E2WEs2TEd0b1oveW5qc1R3TElyZ1dadnk5ZFZZaVpOYW1zQmU1UVdybFdSYmZ5OG1tNEpmMjJSVk9tN2N0Tmc0Y0hxUjN6OVU3QzNRNk00Q2hGMGtpdUYzK2tYUUIvV3NPTVF4Y0RvWTVIcUcxUUVSdjc0Q0RHeEFsTGIzNnUveVBGVEFTL3RpOTJUOW5WNHFBN3pOSU9HVVFJYmVOT3ZGNlZLbTZ0Z2NPTHVyQ1RyTThyYjQxcGJYT2JaekhDMy9hdzI0UT0=", "pin": "111111" }, { - "pubkey": "02cf1835552fcc10ee8bae58f669d22d596663e2ef12ff2b01ad4b231ce6ba1de2", - "routeHint": "030841d1519f19c68e80efc5ef5af3460ca4bfa17486fda9baca878b9ef255358f:2199023386625", + "pubkey": "02c770adb674dd5fb22c913e6c80d441b73e3f5266f10e46e31440d3dc6e0fea67", + "routeHint": "030841d1519f19c68e80efc5ef5af3460ca4bfa17486fda9baca878b9ef255358f:2199023452161", "alias": "virtualNode0", "ip": "http://host.docker.internal:3004", "external_ip": "http://localhost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hNMkpZdUU3dmFZS2JGQTZweVFKRVV1M0NYajFWcXJJQ2FyS2JvSjJhT3J2UVhmTm5xMkFzM2NLeGtZVFJjQUErRzhtUXE1RXJTNE0zeDBWam44WE5pUndoUSt6WHlETlFwWFRyMDBZZWx2dU5aK25MMFhtZzZKSS9lQWNNN25Ma0tkbUUxK1VGOTRQVkN4RmdwRERVYy9vVkFudVJESG95aWtpZm1RcTBlSDM1MStNQURsS0FzOENyaG9Bc2Vjamx1NVBsdUZvVXJIOE9vR2lybEsybENQL3lwZWE3VFQ2aEI5d2NXZDZZYldSclkra0haZERpYTNqdVVJdEMwY3NqMlBRRkI4bTlsSVRlcHdNUE10K1RuZ1pPbG5iei96L2I0cz0=", + "pin": "111111" + }, + { + "pubkey": "032a8584180847b52aca8b9fb54b2b80b07f22e58cef812f82780242eefbe83cab", + "routeHint": "030841d1519f19c68e80efc5ef5af3460ca4bfa17486fda9baca878b9ef255358f:2199023386625", + "alias": "virtualNode1", + "ip": "http://host.docker.internal:3004", + "external_ip": "http://localhost:3004", + "authToken": "SLeaO/kn0h+L8Yvs6Shl", + "transportToken": "MIIBCgKCAQEAooPAuBkokTQjkCuje595SahO/mNOHFcXyognRO6L2dasKED11X6D\nERnqRWXlOATbmHoWbVn+8ZoHHFWhzD4eTBs6XkywIGcnYB1iEU/UL4g+rAOQE+Pt\nmcv0d1qd8hcBpE8RQZomgZ0tFrj5+14MerUqhxSQBWAdWLyWa9LolZfRu924L45u\nopBwM+TdxlmCqi0OySl/Q1TM9Z8UnyQTKIf/7EJ9F4ETvWJ9YiksIgDejMKPVPJt\n5OLrmvhGs8kIsyvjwjkdlLfOl2gAklR9FdA6nygjHo0SzaRqfEa8JSv7eMuMROjA\nCZPy48fdy7ms9ZSHdSsFEeFsL69+bnVICwIDAQAB", + "contact_key": "MIIBCgKCAQEApRoSC8CE+/3Uc+IsTCK/5BjMRHqsGIBZBwBfFOqRUT7Jtqvn1Yr1s35W6e2ovnQS97zXZlxdUGQSKY6Ge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JWRzF3NVA2ZmJOVzBWR0JHN0p2UFhsVFVFUS9SR09yL1RwVW15VXByak9mQndHMzBYak54NVczZWZzYTE0QzBlUnZHbDRiT3VkS1MzRkd2c0MzR0E4S3h5aDU4VDJpK25tUjU3ZFFYTmU2K01DSlZEaTRaeGd3YVJDUk43UzFPMGVZUE1PQUt5c2VtYVNKa0F1QXF1YkQ5OHNIWkVCcW1IUTVvS1d1QlR5bnlXdnlJeDlLUUF6aE54REw4Vkg5RGtMQWtEST0=", "pin": "111111" } ] diff --git a/src/tests/controllers/mlBot.test.ts b/src/tests/controllers/mlBot.test.ts index c9e73862c..861663054 100644 --- a/src/tests/controllers/mlBot.test.ts +++ b/src/tests/controllers/mlBot.test.ts @@ -49,22 +49,31 @@ export async function mlBot(t, index1, index2, index3) { botAlias = 'MlBot' //http://ml-bot-sphinx-server:3500/text - const url = 'http://ml-bot-sphinx-server:3500/text' + const host = 'http://localhost:3500' + const url = `${host}/text` + + const model1 = 'gpt' + + //Add Model + const addModel = `/ml add ${model1}` + await sendTribeMessage(t, alice, tribe, addModel) + + await sleep(1000) //Alice Set Text URL - const urlCommand = `/ml url ${url}` + const urlCommand = `/ml url ${model1} ${url}` await sendTribeMessage(t, alice, tribe, urlCommand) await sleep(20) - const botReply2 = await getCheckBotMsg(t, alice, botAlias, tribe, 1) + const botReply2 = await getCheckBotMsg(t, alice, botAlias, tribe, 2) t.truthy(botReply2, 'MlBot should reply') //Alice set API_KEY - const api_key = '/ml api_key qwerty' + const api_key = `/ml api_key ${model1} qwerty` const apiKeyMsg = await sendTribeMessage(t, alice, tribe, api_key) - const botReply3 = await getCheckBotMsg(t, alice, botAlias, tribe, 2) + const botReply3 = await getCheckBotMsg(t, alice, botAlias, tribe, 3) t.truthy(botReply3, 'MlBot should reply') const checkNode1 = await shouldNotGetNewMsgs(t, bob, apiKeyMsg.uuid) @@ -120,24 +129,45 @@ export async function mlBot(t, index1, index2, index3) { t.true(checkNode4, 'BOB SHOULD NOT SEE VIRTUALNODE1 Message') //Alice change Tribe kind to image - const imageKind = '/ml kind image' + const imageKind = `/ml kind ${model1} image` await sendTribeMessage(t, alice, tribe, imageKind) - const botReply6 = await getCheckBotMsg(t, alice, botAlias, tribe, 5) + const botReply6 = await getCheckBotMsg(t, alice, botAlias, tribe, 6) t.truthy(botReply6, 'MlBot should reply') - const imageUrl = 'http://ml-bot-sphinx-server:3500/image' + const model2 = 'image_gpt' - //Alice change Tribe kind to image - const imageUrlMsg = `/ml url ${imageUrl}` + const imageUrl = `${host}/image` + + //Add new Model + const newModel = `/ml add ${model2} ${imageUrl}` + await sendTribeMessage(t, alice, tribe, newModel) + + await sleep(1000) + + //Alice update new model api_key + const imageUrlMsg = `/ml api_key ${model2} twesting` await sendTribeMessage(t, alice, tribe, imageUrlMsg) - const botReply7 = await getCheckBotMsg(t, alice, botAlias, tribe, 6) + const botReply7 = await getCheckBotMsg(t, alice, botAlias, tribe, 8) t.truthy(botReply7, 'MlBot should reply') + await sleep(1000) + + //Alice change new model kind to image + const imageUrlKind = `/ml kind ${model2} image` + await sendTribeMessage(t, alice, tribe, imageUrlKind) + + await sleep(1000) + //Alice sends Message in the tribe const text6 = randomText() - const aliceMsg = await sendTribeMessage(t, alice, tribe, text6) + const aliceMsg = await sendTribeMessage( + t, + alice, + tribe, + `@${model2} ${text6}` + ) await sleep(8000) @@ -146,7 +176,7 @@ export async function mlBot(t, index1, index2, index3) { alice, botAlias, tribe, - 7 + 10 )) as Message const botResponse3 = decryptMessage(alice, botReply8) t.true(botResponse3 === botImageResponse) @@ -165,7 +195,7 @@ export async function mlBot(t, index1, index2, index3) { t, virtualNode1, tribe, - text9 + `@${model2} ${text9}` ) await sleep(8000) From a1c74786c1297f3c646b13c94180ab7f09cc0b4b Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 17 Aug 2023 21:05:13 +0100 Subject: [PATCH 57/93] update: changed url to internal docker url --- dist/src/tests/controllers/mlBot.test.js | 2 +- dist/src/tests/controllers/mlBot.test.js.map | 2 +- src/tests/controllers/mlBot.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/src/tests/controllers/mlBot.test.js b/dist/src/tests/controllers/mlBot.test.js index fa7efb728..b9233fbf4 100644 --- a/dist/src/tests/controllers/mlBot.test.js +++ b/dist/src/tests/controllers/mlBot.test.js @@ -49,7 +49,7 @@ function mlBot(t, index1, index2, index3) { t.truthy(botReply, 'MotherBot should reply'); botAlias = 'MlBot'; //http://ml-bot-sphinx-server:3500/text - const host = 'http://localhost:3500'; + const host = 'http://ml-bot-sphinx-server:3500'; const url = `${host}/text`; const model1 = 'gpt'; //Add Model diff --git a/dist/src/tests/controllers/mlBot.test.js.map b/dist/src/tests/controllers/mlBot.test.js.map index a39919476..e93eecf10 100644 --- a/dist/src/tests/controllers/mlBot.test.js.map +++ b/dist/src/tests/controllers/mlBot.test.js.map @@ -1 +1 @@ -{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAoD;AACpD,sCAAsD;AACtD,wCAAsD;AACtD,sCAA+D;AAC/D,oCAA4B;AAC5B,sCAAkE;AAGlE;;EAEE;AAEF,IAAA,aAAI,EAAC,oHAAoH,EAAE,CAAO,CAAC,EAAE,EAAE;IACrI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AACzB,CAAC,CAAA,CAAC,CAAA;AAEF,SAAsB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;QACnD,IAAI,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACzB,IAAI,GAAG,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACvB,IAAI,YAAY,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QAChC,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,gCAAgC,C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,IAAI,MAAM,IAAI,KAAK,EAAE,CACtB,CAAA;QACD,MAAM,IAAA,eAAK,EAAC,IAAI,CAAC,CAAA;QAEjB,MAAM,SAAS,GAAG,CAAC,MAAM,IAAA,oBAAc,EACrC,CAAC,EACD,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,CAAC,CACF,CAAY,CAAA;QACb,MAAM,YAAY,GAAG,IAAA,oBAAc,EAAC,YAAY,EAAE,SAAS,CAAC,CAAA;QAC5D,CAAC,CAAC,IAAI,CAAC,YAAY,KAAK,gBAAgB,CAAC,CAAA;QAEzC,6CAA6C;QAC7C,MAAM,UAAU,GAAG,MAAM,IAAA,yBAAmB,EAAC,CAAC,EAAE,GAAG,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAA;QAC9E,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,wCAAwC,CAAC,CAAA;QAE5D,kBAAkB;QAClB,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;QAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAA;QAEvC,2BAA2B;QAC3B,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QACpD,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAjND,sBAiNC"} \ No newline at end of file +{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAoD;AACpD,sCAAsD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C,CAAA;QAEvC,2BAA2B;QAC3B,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QACpD,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAjND,sBAiNC"} \ No newline at end of file diff --git a/src/tests/controllers/mlBot.test.ts b/src/tests/controllers/mlBot.test.ts index 861663054..ed1510642 100644 --- a/src/tests/controllers/mlBot.test.ts +++ b/src/tests/controllers/mlBot.test.ts @@ -49,7 +49,7 @@ export async function mlBot(t, index1, index2, index3) { botAlias = 'MlBot' //http://ml-bot-sphinx-server:3500/text - const host = 'http://localhost:3500' + const host = 'http://ml-bot-sphinx-server:3500' const url = `${host}/text` const model1 = 'gpt' From e76498f209cbcd8b5ed03ebed2b873de52d7da49 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 17 Aug 2023 22:05:25 +0100 Subject: [PATCH 58/93] update: removed branch pointing to stack --- .github/workflows/cln_proxy_integration_test.yml | 2 +- .github/workflows/integration_test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index ba8726ff5..96f0e5de4 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone -b feat/ml-bot-server https://github.com/stakwork/sphinx-stack.git stack + git clone https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index bd7ca20a5..f0f668728 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone -b feat/ml-bot-server https://github.com/stakwork/sphinx-stack.git stack + git clone https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | From 148f1d972f196df943101c534fbe4f2afd85f7f5 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 22 Aug 2023 23:24:27 +0100 Subject: [PATCH 59/93] feat: get message attachment in built-in bot --- dist/src/builtin/index.js | 3 ++- dist/src/builtin/index.js.map | 2 +- dist/src/builtin/ml.js | 10 +++++++++- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/mother.js | 3 ++- dist/src/builtin/mother.js.map | 2 +- dist/src/builtin/utill/ml.js | 30 ++++++++++++++++++++++++++++-- dist/src/builtin/utill/ml.js.map | 2 +- dist/src/controllers/bots.js | 6 +++++- dist/src/controllers/bots.js.map | 2 +- dist/src/utils/msg.js | 13 +++++++++++++ dist/src/utils/msg.js.map | 2 +- src/builtin/ml.ts | 13 +++++++++++++ src/builtin/utill/ml.ts | 31 +++++++++++++++++++++++++++++++ src/controllers/bots.ts | 2 ++ src/utils/msg.ts | 12 ++++++++++++ testing/stack/alice.json | 2 +- testing/stack/bob.json | 2 +- 18 files changed, 125 insertions(+), 14 deletions(-) diff --git a/dist/src/builtin/index.js b/dist/src/builtin/index.js index 997db88dc..b41359cf6 100644 --- a/dist/src/builtin/index.js +++ b/dist/src/builtin/index.js @@ -11,7 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); exports.buildBotPayload = exports.builtinBotEmit = exports.init = void 0; // import * as SphinxBot from '../../../sphinx-bot' -const SphinxBot = require("sphinx-bot"); +// import * as SphinxBot from 'sphinx-bot' +const SphinxBot = require("sphinx-bot-joy"); const MotherBot = require("./mother"); const WelcomeBot = require("./welcome"); const LoopBot = require("./loop"); diff --git a/dist/src/builtin/index.js.map b/dist/src/builtin/index.js.map index 85cbc5f3b..e76fb2277 100644 --- a/dist/src/builtin/index.js.map +++ b/dist/src/builtin/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAmD;AACnD,wCAAuC;AACvC,sCAAqC;AACrC,wCAAuC;AACvC,kCAAiC;AACjC,oCAAmC;AACnC,oDAAmD;AACnD,kCAAiC;AACjC,4CAA2C;AAC3C,sCAAqC;AACrC,0CAAyC;AACzC,8BAA6B;AAE7B,gCAA+B;AAC/B,8CAAqD;AAsBtB,gGAtBtB,sBAAe,OAsBsB;AApB9C,SAAe,IAAI;;QACjB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,UAAU,CAAC,IAAI,EAAE,CAAA;QACjB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,MAAM,CAAC,IAAI,EAAE,CAAA;QACb,QAAQ,CAAC,IAAI,EAAE,CAAA;QACf,gBAAgB,CAAC,IAAI,EAAE,CAAA;QACvB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,YAAY,CAAC,IAAI,EAAE,CAAA;QACnB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,WAAW,CAAC,IAAI,EAAE,CAAA;QAClB,KAAK,CAAC,IAAI,EAAE,CAAA;IACd,CAAC;CAAA;AAQQ,oBAAI;AANb,SAAS,cAAc,CAAC,GAAW,EAAE,SAAkB;IACrD,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,IAAA,sBAAe,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;IAC7D,CAAC,EAAE,IAAI,CAAC,CAAA;AACV,CAAC;AAEc,wCAAc"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAmD;AACnD,0CAA0C;AAC1C,4CAA2C;AAC3C,sCAAqC;AACrC,wCAAuC;AACvC,kCAAiC;AACjC,oCAAmC;AACnC,oDAAmD;AACnD,kCAAiC;AACjC,4CAA2C;AAC3C,sCAAqC;AACrC,0CAAyC;AACzC,8BAA6B;AAE7B,gCAA+B;AAC/B,8CAAqD;AAsBtB,gGAtBtB,sBAAe,OAsBsB;AApB9C,SAAe,IAAI;;QACjB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,UAAU,CAAC,IAAI,EAAE,CAAA;QACjB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,MAAM,CAAC,IAAI,EAAE,CAAA;QACb,QAAQ,CAAC,IAAI,EAAE,CAAA;QACf,gBAAgB,CAAC,IAAI,EAAE,CAAA;QACvB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,YAAY,CAAC,IAAI,EAAE,CAAA;QACnB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,WAAW,CAAC,IAAI,EAAE,CAAA;QAClB,KAAK,CAAC,IAAI,EAAE,CAAA;IACd,CAAC;CAAA;AAQQ,oBAAI;AANb,SAAS,cAAc,CAAC,GAAW,EAAE,SAAkB;IACrD,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,IAAA,sBAAe,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;IAC7D,CAAC,EAAE,IAAI,CAAC,CAAA;AACV,CAAC;AAEc,wCAAc"} \ No newline at end of file diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 90882fdc0..334d93196 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -10,7 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = exports.CALLBACKS = exports.ML_BOTNAME = exports.ML_PREFIX = void 0; -const Sphinx = require("sphinx-bot"); +// import * as Sphinx from 'sphinx-bot' +const Sphinx = require("sphinx-bot-joy"); const botapi_1 = require("../controllers/botapi"); const models_1 = require("../models"); const utill_1 = require("./utill"); @@ -18,6 +19,7 @@ const config_1 = require("../utils/config"); const node_fetch_1 = require("node-fetch"); const ml_1 = require("./utill/ml"); const logger_1 = require("../utils/logger"); +const constants_1 = require("../constants"); const config = (0, config_1.loadConfig)(); const msg_types = Sphinx.MSG_TYPE; let initted = false; @@ -60,6 +62,11 @@ function init() { return; } } + if (message.type === constants_1.default.message_types.attachment) { + const blob = yield (0, ml_1.getAttachmentBlob)(message.media_token, message.media_key, message.media_type, tribe); + console.log('Image Blob', blob); + return; + } const bot = yield (0, utill_1.findBot)({ botPrefix: exports.ML_PREFIX, tribe }); let metaObj = JSON.parse(bot.meta || `{}`); const modelsArr = Object.keys(metaObj); @@ -143,6 +150,7 @@ function init() { }, 5 * 60 * 1000); } catch (e) { + console.log(e); logger_1.sphinxLogger.error(`ML CALL FAILED: ${e}`, logger_1.logging.Bots); } })); diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index cf8e1ed49..c5a215cd1 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCAQmB;AACnB,4CAAuD;AAEvD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAA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newline at end of file diff --git a/dist/src/builtin/mother.js b/dist/src/builtin/mother.js index 0cea32e2d..171a26028 100644 --- a/dist/src/builtin/mother.js +++ b/dist/src/builtin/mother.js @@ -12,7 +12,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; // import * as SphinxBot from '../../../sphinx-bot' -const Sphinx = require("sphinx-bot"); +// import * as Sphinx from 'sphinx-bot' +const Sphinx = require("sphinx-bot-joy"); const botapi_1 = require("../controllers/botapi"); const bots_1 = require("../controllers/bots"); const models_1 = require("../models"); diff --git a/dist/src/builtin/mother.js.map b/dist/src/builtin/mother.js.map index 5200ebf46..abfe9941a 100644 --- a/dist/src/builtin/mother.js.map +++ b/dist/src/builtin/mother.js.map @@ -1 +1 @@ -{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,qCAAoC;AACpC,kDAAmD;AACnD,8CAA4D;AAC5D,sCAA8C;AAC9C,2CAA8B;AAC9B,4CAAoC;AACpC,4CAA4C;AAC5C,4CAA0D;AAC1D,4CAA8C;AAC9C,+BAAsD;AACtD,6BAA4C;AAE5C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,WAAW,GAAG;IAClB,SAAS;IACT,SAAS;IACT,KAAK;IACL,OAAO;IACP,eAAe;IACf,MAAM;IACN,WAAW;IACX,QAAQ;IACR,WAAW;IACX,cAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CACvB,CAAA;AAED,yBAAyB;AACzB,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE;QACP,mBAAS,CAAC,aAAa,CAAC,OAAO;QAC/B,mBAAS,CAAC,aAAa,CAAC,UAAU;KACnC;IACD,KAAK,EAAE;QACL,mBAAS,CAAC,a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I,QAAQ,GAAG,OAAO,CAAA;YACtB,IAAI,MAAM,CAAC,eAAe;gBAAE,QAAQ,GAAG,MAAM,CAAA;YAC7C,MAAM,CAAC,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,QAAQ,MAAM,MAAM,CAAC,WAAW,QAAQ,IAAI,EAAE,CAAC,CAAA;YACxE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;YACxB,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,YAAY,EAAE;gBACjC,OAAO,CAAC,CAAA;aACT;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;CAAA;AAED,SAAe,aAAa,CAAC,IAAgB,EAAE,OAAe;;QAC5D,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACvC,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,uCAAuC;AACvC,yCAAwC;AACxC,kDAAmD;AACnD,8CAA4D;AAC5D,sCAA8C;AAC9C,2CAA8B;AAC9B,4CAAoC;AACpC,4CAA4C;AAC5C,4CAA0D;AAC1D,4CAA8C;AAC9C,+BAAsD;AACtD,6BAA4C;AAE5C,MAAM,SAAS,GAAG,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AAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index ccbc96054..d6844208a 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -9,11 +9,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.mlBotResponse = exports.addModel = exports.defaultCommand = exports.addKind = exports.addApiKey = exports.addUrl = void 0; +exports.getAttachmentBlob = exports.mlBotResponse = exports.addModel = exports.defaultCommand = exports.addKind = exports.addApiKey = exports.addUrl = void 0; const index_1 = require("./index"); -const Sphinx = require("sphinx-bot"); +// import * as Sphinx from 'sphinx-bot' +const Sphinx = require("sphinx-bot-joy"); const ml_1 = require("../ml"); const logger_1 = require("../../utils/logger"); +const ldat_1 = require("../../utils/ldat"); +const node_fetch_1 = require("node-fetch"); +const meme = require("../../utils/meme"); +const RNCryptor = require("jscryptor-3"); function addUrl(botName, botPrefix, tribe, messageObj, msgArr) { return __awaiter(this, void 0, void 0, function* () { const cmd = msgArr[1]; @@ -169,4 +174,25 @@ function mlBotResponse(msg, message) { message.channel.send({ embed }); } exports.mlBotResponse = mlBotResponse; +function getAttachmentBlob(mediaToken, mediaKey, mediaType, tribe) { + return __awaiter(this, void 0, void 0, function* () { + if (!mediaToken || !mediaKey) + return; + const ownerPubkey = tribe.ownerPubkey; + const terms = (0, ldat_1.parseLDAT)(mediaToken); + if (!terms.host) + return; + const token = yield meme.lazyToken(ownerPubkey, terms.host); + let protocol = 'https'; + if (terms.host.includes('localhost')) + protocol = 'http'; + const r = yield (0, node_fetch_1.default)(`${protocol}://${terms.host}/file/${mediaToken}`, { + headers: { Authorization: `Bearer ${token}` }, + }); + const buf = yield r.buffer(); + const imgBuf = RNCryptor.Decrypt(buf.toString('base64'), mediaKey); + return imgBuf; + }); +} +exports.getAttachmentBlob = getAttachmentBlob; //# sourceMappingURL=ml.js.map \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index 33d5bc884..e447e274a 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAU1D,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI;YACF,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE;gBACjB,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,EACvD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;gBACD,OAAM;aACP;YACD,MAAM,GAAG,GAAG,MAAM,IAAA,eAAO,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA;YAC/C,IAAI,OAAO,GAA8B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAA;YACrE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;YAC1B,IAAI,CAAC,IAAI,EAAE;gBACT,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,sBAAsB,EACtB,SAAS,EACT,KAAK,CAAC,EAAE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D,OAAM;SACP;IACH,CAAC;CAAA;AA5DD,4BA4DC;AAED,SAAgB,aAAa,CAAC,GAAW,EAAE,OAAuB;IAChE,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;SACpC,SAAS,CAAC,eAAU,CAAC;SACrB,cAAc,CAAC,GAAG,CAAC;SACnB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;IAClD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;AACjC,CAAC;AAND,sCAMC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,uCAAuC;AACvC,yCAAwC;AACxC,8BAAkC;AAClC,+CAA0D;AAC1D,2CAA4C;AAC5C,2CAA8B;AAC9B,yCAAwC;AACxC,yCAAwC;AAUxC,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI;YACF,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE;gBACjB,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,EACvD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;gBACD,OAAM;aACP;YACD,MAAM,GAAG,GAAG,MAAM,IAAA,eAAO,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA;YAC/C,IAAI,O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AAC,IAAI,SAAS,UAAU,EAAE,EAAE;YACtE,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE;SAC9C,CAAC,CAAA;QAEF,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,MAAM,EAAE,CAAA;QAE5B,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAA;QAClE,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAzBD,8CAyBC"} \ No newline at end of file diff --git a/dist/src/controllers/bots.js b/dist/src/controllers/bots.js index cbc77f135..13a0a729a 100644 --- a/dist/src/controllers/bots.js +++ b/dist/src/controllers/bots.js @@ -12,7 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.getBagdeChatBot = exports.addPatToGitBot = exports.receiveBotRes = exports.buildBotPayload = exports.postToBotServer = exports.receiveBotCmd = exports.receiveBotInstall = exports.botKeysend = exports.keysendBotCmd = exports.keysendBotInstall = exports.installBotAsTribeAdmin = exports.deleteBot = exports.createBot = exports.getBots = void 0; const crypto = require("crypto"); const node_fetch_1 = require("node-fetch"); -const SphinxBot = require("sphinx-bot"); +// import * as SphinxBot from 'sphinx-bot' +const SphinxBot = require("sphinx-bot-joy"); const short = require("short-uuid"); const socket = require("../utils/socket"); const constants_1 = require("../constants"); @@ -478,6 +479,7 @@ exports.postToBotServer = postToBotServer; * @returns {SphinxBot.Message} The created SphinxBot message. */ function buildBotPayload(msg, botPrefix) { + console.log(msg.message); const chat_uuid = msg.chat && msg.chat.uuid; const m = { id: msg.message.uuid, @@ -491,6 +493,8 @@ function buildBotPayload(msg, botPrefix) { amount: msg.message.amount, type: msg.type, media_key: msg.message.mediaKey, + media_token: msg.message.mediaToken, + media_type: msg.message.mediaType, member: { id: msg.sender.id ? msg.sender.id + '' : '0', nickname: msg.sender.alias, diff --git a/dist/src/controllers/bots.js.map b/dist/src/controllers/bots.js.map index 266435cd6..6fec47324 100644 --- a/dist/src/controllers/bots.js.map +++ b/dist/src/controllers/bots.js.map @@ -1 +1 @@ -{"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../src/controllers/bots.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAgC;AAChC,2CAA8B;AAC9B,wCAAuC;AACvC,oCAAmC;AACnC,0CAAyC;AAEzC,4CAAoC;AACpC,4CAAuD;AACvD,sCAAqC;AACrC,sCAA+C;AAC/C,2CAA0C;AAC1C,sCAA0E;AAC1E,0CAAyC;AAEzC,wCAAgD;AAChD,qCAAoC;AACpC,wCAA+C;AAC/C,qCAA8C;AAE9C;;;;;;MAMM;AACC,MAAM,OAAO,GAAG,CAAO,GAAQ,EAAE,GAAQ,EAAiB,EAAE;IACjE,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAW,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IACnC,IAAI;QACF,MAAM,IAAI,GAAU,CAAC,MAAM,eAAM,CAAC,GAAG,CAAC,OAAO,CAAC;YAC5C,KAAK,EAAE,EAAE,MAAM,EAAE;SAClB,CAAC,CAAU,CAAA;QACZ,IAAA,aAAO,EAAC,GAAG,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;SAC9C,CAAC,CAAA;KACH;IAAC,OAAO,CAAC,EAAE;QACV,IAAA,aAAO,EAAC,GAAG,EAAE,SAAS,CAAC,CAAA;KACxB;AACH,CAAC,CAAA,CAAA;AAbY,QAAA,OAAO,WAanB;AAED;;;;;;;;;;;MAWM;AACC,MAAM,SAAS,GAAG,CAAO,GAAQ,EAAE,GAAQ,EAAiB,EAAE;IACnE,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,IAAA,aAAO,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,GAAG,EAAE,SAAS,CAAC,CAAA;KACxB;AACH,CAAC,CAAA,CAAA;AAbY,QAAA,cAAc,kBAa1B;AAEM,MAAM,eAAe,GAAG,CAAO,GAAQ,EAAE,GAAQ,EAAiB,EAAE;IACzE,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAA;IAChC,IAAI,CAAC,MAAM;QAAE,OAAM;IACnB,MAAM,MAAM,GAAW,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IACnC,IAAI;QACF,MAAM,YAAY,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YAChD,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE;SAC/C,CAAC,CAAA;QACF,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,YAAY,CAAC,CAAA;KAClC;IAAC,OAAO,KAAK,EAAE;QACd,qBAAY,CAAC,KAAK,CAAC,CAAC,iCAAiC,EAAE,KAAK,CAAC,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;QAC5E,IAAA,aAAO,EAAC,GAAG,EAAE,8BAA8B,CAAC,CAAA;KAC7C;AACH,CAAC,CAAA,CAAA;AAdY,QAAA,eAAe,mBAc3B"} \ No newline at end of file diff --git a/dist/src/utils/msg.js b/dist/src/utils/msg.js index e4688f093..3073b7573 100644 --- a/dist/src/utils/msg.js +++ b/dist/src/utils/msg.js @@ -119,7 +119,9 @@ function finishTermsAndReceipt(full, destkey, senderPubkey) { // this is only for tribes // DECRYPT EITHER STRING OR FIRST VAL IN OBJ function decryptMessage(full, chat) { + var _a, _b; return __awaiter(this, void 0, void 0, function* () { + console.log('Actuall message in decrypt function', full); if (!chat.groupPrivateKey) return full; const m = full && full.message; @@ -146,6 +148,17 @@ function decryptMessage(full, chat) { const decMediaKey = rsa.decrypt(chat.groupPrivateKey, mediaKey); obj.mediaKey = decMediaKey; } + if (m.mediaTerms) { + let mediaToken = yield (0, ldat_1.tokenFromTerms)({ + host: m.mediaTerms.host, + muid: m.mediaTerms.muid, + ttl: m.mediaTerms.ttl, + meta: m.mediaTerms.meta, + pubkey: (_a = full.sender) === null || _a === void 0 ? void 0 : _a.pub_key, + ownerPubkey: (_b = full.sender) === null || _b === void 0 ? void 0 : _b.pub_key, + }); + obj.mediaToken = mediaToken; + } // console.log("OBJ FILLED",fillmsg(full, obj)) return fillmsg(full, obj); }); diff --git a/dist/src/utils/msg.js.map b/dist/src/utils/msg.js.map index 416acc0c6..916d94c69 100644 --- a/dist/src/utils/msg.js.map +++ b/dist/src/utils/msg.js.map @@ -1 +1 @@ -{"version":3,"file":"msg.js","sourceRoot":"","sources":["../../../src/utils/msg.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,4CAAoC;AAEpC,oCAAmC;AAEnC,4CAAuD;AACvD,iCAAuC;AAEvC,SAAS,eAAe,CAAC,IAAkB,EAAE,SAAS,EAAE,OAAgB;IACtE,MAAM,CAAC,GAAG,IAAI,IAAI,IAAI,CAAC,OAAO,CAAA;IAC9B,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;QAAE,OAAO,IAAW,CAAA;IACzC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,KAAK,QAAQ,CAAC;QAAE,OAAO,IAAW,CAAA;IACxD,IAAI,OAAO,EAAE;QACX,6EAA6E;QAC7E,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YACrB,OAAO,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;SACrD;KACF;IACD,OAAO,OAAO,CAAC,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,GAAG,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AC,KAAK,EAAE;gBAC1C,MAAM,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC;oBACrB,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAG,MAAM;oBAC1C,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,CAAC;iBACpC,CAAC,CAAA,CAAA;aACH;iBAAM;gBACL,MAAM,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC;oBACrB,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAG,MAAM;iBAC3C,CAAC,CAAA,CAAA;aACH;SACF;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAChB,kGAAkG,KAAK,EAAE,EACzG,gBAAO,CAAC,OAAO,CAChB,CAAA;SACF;IACH,CAAC;CAAA;AAMC,sDAAqB"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 27cb2d6b4..3c0463210 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -12,8 +12,10 @@ import { defaultCommand, mlBotResponse, addModel, + getAttachmentBlob, } from './utill/ml' import { sphinxLogger, logging } from '../utils/logger' +import constants from '../constants' const config = loadConfig() @@ -68,6 +70,16 @@ export function init() { return } } + if (message.type === constants.message_types.attachment) { + const blob = await getAttachmentBlob( + message.media_token!, + message.media_key!, + message.media_type!, + tribe + ) + console.log('Image Blob', blob) + return + } const bot: ChatBotRecord = await findBot({ botPrefix: ML_PREFIX, tribe }) let metaObj: { [key: string]: MlMeta } = JSON.parse(bot.meta || `{}`) @@ -157,6 +169,7 @@ export function init() { delete CALLBACKS[process_id] }, 5 * 60 * 1000) } catch (e) { + console.log(e) sphinxLogger.error(`ML CALL FAILED: ${e}`, logging.Bots) } }) diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index a5f1f6e19..f74a4c88b 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -3,6 +3,10 @@ import { botResponse, findBot } from './index' import * as Sphinx from 'sphinx-bot' import { ML_BOTNAME } from '../ml' import { sphinxLogger, logging } from '../../utils/logger' +import { parseLDAT } from '../../utils/ldat' +import fetch from 'node-fetch' +import * as meme from '../../utils/meme' +import * as RNCryptor from 'jscryptor-3' type ContentKind = 'text' | 'image' export interface MlMeta { @@ -301,3 +305,30 @@ export function mlBotResponse(msg: string, message: Sphinx.Message) { .setOnlyUser(parseInt(message.member.id || '0')) message.channel.send({ embed }) } + +export async function getAttachmentBlob( + mediaToken: string, + mediaKey: string, + mediaType: string, + tribe: ChatRecord +) { + if (!mediaToken || !mediaKey) return + + const ownerPubkey = tribe.ownerPubkey + + const terms = parseLDAT(mediaToken) + if (!terms.host) return + + const token = await meme.lazyToken(ownerPubkey, terms.host) + + let protocol = 'https' + if (terms.host.includes('localhost')) protocol = 'http' + const r = await fetch(`${protocol}://${terms.host}/file/${mediaToken}`, { + headers: { Authorization: `Bearer ${token}` }, + }) + + const buf = await r.buffer() + + const imgBuf = RNCryptor.Decrypt(buf.toString('base64'), mediaKey) + return imgBuf +} diff --git a/src/controllers/bots.ts b/src/controllers/bots.ts index eae75abe7..726b39f46 100644 --- a/src/controllers/bots.ts +++ b/src/controllers/bots.ts @@ -514,6 +514,8 @@ export function buildBotPayload( amount: msg.message.amount, type: msg.type, media_key: msg.message.mediaKey, + media_token: msg.message.mediaToken, + media_type: msg.message.mediaType, member: { id: msg.sender.id ? msg.sender.id + '' : '0', nickname: msg.sender.alias, diff --git a/src/utils/msg.ts b/src/utils/msg.ts index 9df67476c..ba53a8320 100644 --- a/src/utils/msg.ts +++ b/src/utils/msg.ts @@ -129,6 +129,7 @@ async function decryptMessage( full: Partial, chat: Partial ): Promise { + console.log('Actuall message in decrypt function', full) if (!chat.groupPrivateKey) return full as Msg const m = full && full.message if (!m) return full as Msg @@ -154,6 +155,17 @@ async function decryptMessage( const decMediaKey = rsa.decrypt(chat.groupPrivateKey, mediaKey) obj.mediaKey = decMediaKey } + if (m.mediaTerms) { + let mediaToken = await tokenFromTerms({ + host: m.mediaTerms.host, + muid: m.mediaTerms.muid, + ttl: m.mediaTerms.ttl, + meta: m.mediaTerms.meta, + pubkey: full.sender?.pub_key, + ownerPubkey: full.sender?.pub_key, + }) + obj.mediaToken = mediaToken + } // console.log("OBJ FILLED",fillmsg(full, obj)) return fillmsg(full, obj) diff --git a/testing/stack/alice.json b/testing/stack/alice.json index 9f1af4483..7a5487c96 100644 --- a/testing/stack/alice.json +++ b/testing/stack/alice.json @@ -7,7 +7,7 @@ "macaroon_location": "/Users/oluwatobibamidele/Desktop/work/sphinx/sphinx-stack/lnd/alice/.lnd/data/chain/bitcoin/regtest/admin.macaroon", "node_http_protocol": "http", "node_http_port": "3001", - "media_host": "localhost:5555", + "media_host": "memes.sphinx.chat", "tribes_host": "localhost:13000", "tribes_mqtt_port": "1883", "tribes_insecure": true, diff --git a/testing/stack/bob.json b/testing/stack/bob.json index fb9ff3253..eeffc5199 100644 --- a/testing/stack/bob.json +++ b/testing/stack/bob.json @@ -7,7 +7,7 @@ "macaroon_location": "/Users/oluwatobibamidele/Desktop/work/sphinx/sphinx-stack/lnd/bob/.lnd/data/chain/bitcoin/regtest/admin.macaroon", "node_http_protocol": "http", "node_http_port": "3002", - "media_host": "localhost:5555", + "media_host": "memes.sphinx.chat", "tribes_host": "localhost:13000", "tribes_mqtt_port": "1883", "tribes_insecure": true, From a9def3b32049f7c3799761904c1d3e313eb20945 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 22 Aug 2023 23:26:01 +0100 Subject: [PATCH 60/93] updated sphinx-bot --- dist/src/builtin/index.js | 3 +-- dist/src/builtin/index.js.map | 2 +- dist/src/builtin/ml.js | 3 +-- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/mother.js | 3 +-- dist/src/builtin/mother.js.map | 2 +- dist/src/builtin/utill/ml.js | 3 +-- dist/src/builtin/utill/ml.js.map | 2 +- dist/src/controllers/bots.js | 4 +--- dist/src/controllers/bots.js.map | 2 +- package-lock.json | 29 ++++++++++++++--------------- package.json | 2 +- 12 files changed, 25 insertions(+), 32 deletions(-) diff --git a/dist/src/builtin/index.js b/dist/src/builtin/index.js index b41359cf6..997db88dc 100644 --- a/dist/src/builtin/index.js +++ b/dist/src/builtin/index.js @@ -11,8 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); exports.buildBotPayload = exports.builtinBotEmit = exports.init = void 0; // import * as SphinxBot from '../../../sphinx-bot' -// import * as SphinxBot from 'sphinx-bot' -const SphinxBot = require("sphinx-bot-joy"); +const SphinxBot = require("sphinx-bot"); const MotherBot = require("./mother"); const WelcomeBot = require("./welcome"); const LoopBot = require("./loop"); diff --git a/dist/src/builtin/index.js.map b/dist/src/builtin/index.js.map index e76fb2277..85cbc5f3b 100644 --- a/dist/src/builtin/index.js.map +++ b/dist/src/builtin/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAmD;AACnD,0CAA0C;AAC1C,4CAA2C;AAC3C,sCAAqC;AACrC,wCAAuC;AACvC,kCAAiC;AACjC,oCAAmC;AACnC,oDAAmD;AACnD,kCAAiC;AACjC,4CAA2C;AAC3C,sCAAqC;AACrC,0CAAyC;AACzC,8BAA6B;AAE7B,gCAA+B;AAC/B,8CAAqD;AAsBtB,gGAtBtB,sBAAe,OAsBsB;AApB9C,SAAe,IAAI;;QACjB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,UAAU,CAAC,IAAI,EAAE,CAAA;QACjB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,MAAM,CAAC,IAAI,EAAE,CAAA;QACb,QAAQ,CAAC,IAAI,EAAE,CAAA;QACf,gBAAgB,CAAC,IAAI,EAAE,CAAA;QACvB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,YAAY,CAAC,IAAI,EAAE,CAAA;QACnB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,WAAW,CAAC,IAAI,EAAE,CAAA;QAClB,KAAK,CAAC,IAAI,EAAE,CAAA;IACd,CAAC;CAAA;AAQQ,oBAAI;AANb,SAAS,cAAc,CAAC,GAAW,EAAE,SAAkB;IACrD,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,IAAA,sBAAe,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;IAC7D,CAAC,EAAE,IAAI,CAAC,CAAA;AACV,CAAC;AAEc,wCAAc"} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/builtin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAmD;AACnD,wCAAuC;AACvC,sCAAqC;AACrC,wCAAuC;AACvC,kCAAiC;AACjC,oCAAmC;AACnC,oDAAmD;AACnD,kCAAiC;AACjC,4CAA2C;AAC3C,sCAAqC;AACrC,0CAAyC;AACzC,8BAA6B;AAE7B,gCAA+B;AAC/B,8CAAqD;AAsBtB,gGAtBtB,sBAAe,OAsBsB;AApB9C,SAAe,IAAI;;QACjB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,UAAU,CAAC,IAAI,EAAE,CAAA;QACjB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,MAAM,CAAC,IAAI,EAAE,CAAA;QACb,QAAQ,CAAC,IAAI,EAAE,CAAA;QACf,gBAAgB,CAAC,IAAI,EAAE,CAAA;QACvB,OAAO,CAAC,IAAI,EAAE,CAAA;QACd,YAAY,CAAC,IAAI,EAAE,CAAA;QACnB,SAAS,CAAC,IAAI,EAAE,CAAA;QAChB,WAAW,CAAC,IAAI,EAAE,CAAA;QAClB,KAAK,CAAC,IAAI,EAAE,CAAA;IACd,CAAC;CAAA;AAQQ,oBAAI;AANb,SAAS,cAAc,CAAC,GAAW,EAAE,SAAkB;IACrD,UAAU,CAAC,GAAG,EAAE;QACd,SAAS,CAAC,KAAK,CAAC,SAAS,EAAE,IAAA,sBAAe,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC,CAAA;IAC7D,CAAC,EAAE,IAAI,CAAC,CAAA;AACV,CAAC;AAEc,wCAAc"} \ No newline at end of file diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 334d93196..d4e3e4508 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -10,8 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = exports.CALLBACKS = exports.ML_BOTNAME = exports.ML_PREFIX = void 0; -// import * as Sphinx from 'sphinx-bot' -const Sphinx = require("sphinx-bot-joy"); +const Sphinx = require("sphinx-bot"); const botapi_1 = require("../controllers/botapi"); const models_1 = require("../models"); const utill_1 = require("./utill"); diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index c5a215cd1..5ef05c064 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAuC;AACvC,yCAAwC;AACxC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCASmB;AACnB,4CAAuD;AACvD,4CAAoC;AAEpC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK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C,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA7ID,oBA6IC"} \ No newline at end of file diff --git a/dist/src/builtin/mother.js b/dist/src/builtin/mother.js index 171a26028..0cea32e2d 100644 --- a/dist/src/builtin/mother.js +++ b/dist/src/builtin/mother.js @@ -12,8 +12,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; // import * as SphinxBot from '../../../sphinx-bot' -// import * as Sphinx from 'sphinx-bot' -const Sphinx = require("sphinx-bot-joy"); +const Sphinx = require("sphinx-bot"); const botapi_1 = require("../controllers/botapi"); const bots_1 = require("../controllers/bots"); const models_1 = require("../models"); diff --git a/dist/src/builtin/mother.js.map b/dist/src/builtin/mother.js.map index abfe9941a..5200ebf46 100644 --- a/dist/src/builtin/mother.js.map +++ b/dist/src/builtin/mother.js.map @@ -1 +1 @@ -{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;AAEd,mDAAmD;AACnD,uCAAuC;AACvC,yCAAwC;AACxC,kDAAmD;AACnD,8CAA4D;AAC5D,sCAA8C;AAC9C,2CAA8B;AAC9B,4CAAoC;AACpC,4CAA4C;AAC5C,4CAA0D;AAC1D,4CAA8C;AAC9C,+BAAsD;AACtD,6BAA4C;AAE5C,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,WAAW,GAAG;IAClB,SAAS;IACT,SAAS;IACT,KAAK;IACL,OAAO;IACP,eAAe;IACf,MAAM;IACN,WAAW;IACX,QAAQ;IAC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E,CAAA;YACxB,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;SACjC;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,EAAE,CAAA;SACV;IACH,CAAC;CAAA;AACD,SAAe,YAAY,CAAC,IAAY;;QACtC,IAAI;YACF,IAAI,QAAQ,GAAG,OAAO,CAAA;YACtB,IAAI,MAAM,CAAC,eAAe;gBAAE,QAAQ,GAAG,MAAM,CAAA;YAC7C,MAAM,CAAC,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,QAAQ,MAAM,MAAM,CAAC,WAAW,QAAQ,IAAI,EAAE,CAAC,CAAA;YACxE,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;YACxB,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,YAAY,EAAE;gBACjC,OAAO,CAAC,CAAA;aACT;YACD,OAAO,IAAI,CAAA;SACZ;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,IAAI,CAAA;SACZ;IACH,CAAC;CAAA;AAED,SAAe,aAAa,CAAC,IAAgB,EAAE,OAAe;;QAC5D,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACvC,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"mother.js","sourceRoot":"","sources":["../../../src/builtin/mother.ts"],"names":[],"mappings":";AAAA,cAA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AO,CAAC;gBACvC,KAAK,EAAE;oBACL,MAAM,EAAE,IAAI,CAAC,EAAE;oBACf,SAAS,EAAE,GAAG,GAAG,OAAO;oBACxB,MAAM,EAAE,IAAI,CAAC,MAAM;iBACpB;aACF,CAAC,CAAA;YACF,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,gCAAgC,KAAK,EAAE,CAAC,CAAA;YAC3D,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index d6844208a..73fe6e76b 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -11,8 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge Object.defineProperty(exports, "__esModule", { value: true }); exports.getAttachmentBlob = exports.mlBotResponse = exports.addModel = exports.defaultCommand = exports.addKind = exports.addApiKey = exports.addUrl = void 0; const index_1 = require("./index"); -// import * as Sphinx from 'sphinx-bot' -const Sphinx = require("sphinx-bot-joy"); +const Sphinx = require("sphinx-bot"); const ml_1 = require("../ml"); const logger_1 = require("../../utils/logger"); const ldat_1 = require("../../utils/ldat"); diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index e447e274a..4eb6d839a 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,uCAAuC;AACvC,yCAAwC;AACxC,8BAAkC;AAClC,+CAA0D;AAC1D,2CAA4C;AAC5C,2CAA8B;AAC9B,yCAAwC;AACxC,yCAAwC;AAUxC,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;Q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pC,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QAErC,MAAM,KAAK,GAAG,IAAA,gBAAS,EAAC,UAAU,CAAC,CAAA;QACnC,IAAI,CAAC,KAAK,CAAC,IAAI;YAAE,OAAM;QAEvB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;QAE3D,IAAI,QAAQ,GAAG,OAAO,CAAA;QACtB,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC;YAAE,QAAQ,GAAG,MAAM,CAAA;QACvD,MAAM,CAAC,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,QAAQ,MAAM,KAAK,CAAC,IAAI,SAAS,UAAU,EAAE,EAAE;YACtE,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE;SAC9C,CAAC,CAAA;QAEF,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,MAAM,EAAE,CAAA;QAE5B,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAA;QAClE,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAzBD,8CAyBC"} \ No newline at end of file diff --git a/dist/src/controllers/bots.js b/dist/src/controllers/bots.js index 13a0a729a..d59dafd8b 100644 --- a/dist/src/controllers/bots.js +++ b/dist/src/controllers/bots.js @@ -12,8 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.getBagdeChatBot = exports.addPatToGitBot = exports.receiveBotRes = exports.buildBotPayload = exports.postToBotServer = exports.receiveBotCmd = exports.receiveBotInstall = exports.botKeysend = exports.keysendBotCmd = exports.keysendBotInstall = exports.installBotAsTribeAdmin = exports.deleteBot = exports.createBot = exports.getBots = void 0; const crypto = require("crypto"); const node_fetch_1 = require("node-fetch"); -// import * as SphinxBot from 'sphinx-bot' -const SphinxBot = require("sphinx-bot-joy"); +const SphinxBot = require("sphinx-bot"); const short = require("short-uuid"); const socket = require("../utils/socket"); const constants_1 = require("../constants"); @@ -479,7 +478,6 @@ exports.postToBotServer = postToBotServer; * @returns {SphinxBot.Message} The created SphinxBot message. */ function buildBotPayload(msg, botPrefix) { - console.log(msg.message); const chat_uuid = msg.chat && msg.chat.uuid; const m = { id: msg.message.uuid, diff --git a/dist/src/controllers/bots.js.map b/dist/src/controllers/bots.js.map index 6fec47324..34501b1cb 100644 --- a/dist/src/controllers/bots.js.map +++ b/dist/src/controllers/bots.js.map @@ -1 +1 @@ -{"version":3,"file":"bots.js","sourceRoot":"","sources":["../../../src/controllers/bots.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAgC;AAChC,2CAA8B;AAC9B,0CAA0C;AAC1C,4CAA2C;AAC3C,oCAAmC;AACnC,0CAAyC;AAEzC,4CAAoC;AACpC,4CAAuD;AACvD,sCAAqC;AACrC,sCAA+C;AAC/C,2CAA0C;AAC1C,sCAA0E;AAC1E,0CAAyC;AAEzC,wCAAgD;AAChD,qCAAoC;AACpC,wCAA+C;AAC/C,qCAA8C;AAE9C;;;;;;MAMM;AACC,MAAM,OAAO,GAAG,CAAO,GAAQ,EAAE,GAAQ,EAAiB,EAAE;IACjE,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAW,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IACnC,IAAI;QACF,MAAM,IAAI,GAAU,CAAC,MAAM,eAAM,CAAC,GAAG,CAAC,OAAO,CAAC;YAC5C,KAAK,EAAE,EAAE,MAAM,EAAE;SAClB,CAAC,CAAU,CAAA;QACZ,IAAA,aAAO,EAAC,GAAG,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,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AA,CAAA;AAdY,QAAA,eAAe,mBAc3B"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 75b55b7af..81b84d33f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "license": "ISC", "dependencies": { "@boltz/bolt11": "^1.2.7", - "@grpc/grpc-js": "^1.8.7", + "@grpc/grpc-js": "1.8.7", "@grpc/proto-loader": "0.7.4", "@octokit/webhooks-types": "^5.2.0", "@scout_apm/scout-apm": "^0.1.10", @@ -72,7 +72,7 @@ "short-uuid": "^3.1.1", "sjcl": "^1.0.8", "socket.io": "^4.4.1", - "sphinx-bot": "^0.2.41", + "sphinx-bot": "^0.2.42", "sqlite3": "5.0.11", "tail": "^2.0.3", "ts-jest": "^28.0.8", @@ -822,10 +822,9 @@ "optional": true }, "node_modules/@grpc/grpc-js": { - "version": "1.8.18", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.18.tgz", - "integrity": "sha512-2uWPtxhsXmVgd8WzDhfamSjHpZDXfMjMDciY6VRTq4Sn7rFzazyf0LLDa0oav+61UHIoEZb4KKaAV6S7NuJFbQ==", - "license": "Apache-2.0", + "version": "1.8.7", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.7.tgz", + "integrity": "sha512-dRAWjRFN1Zy9mzPNLkFFIWT8T6C9euwluzCHZUKuhC+Bk3MayNPcpgDRyG+sg+n2sitEUySKxUynirVpu9ItKw==", "dependencies": { "@grpc/proto-loader": "^0.7.0", "@types/node": ">=12.12.47" @@ -15421,9 +15420,9 @@ "license": "CC0-1.0" }, "node_modules/sphinx-bot": { - "version": "0.2.41", - "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.41.tgz", - "integrity": "sha512-OYDitqmSE4D3gzHjHsctn/eswJ8OnyL68J4hw+qG6Y9Okae+AnBuBYn1frzEtKghjIjxyqyZJLoNqlN0GU0H5w==", + "version": "0.2.42", + "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.42.tgz", + "integrity": "sha512-EHN5Gj9PfbB6CisHqdAz7rTRzN6oJAjSHR0G5D9gr3IpyWEEC7RYFWJjlJVvS5YvUs+JqP+8O1pZr2Y5tp4wWw==", "dependencies": { "@types/cors": "^2.8.7", "@types/express": "^4.17.8", @@ -18054,9 +18053,9 @@ "optional": true }, "@grpc/grpc-js": { - "version": "1.8.18", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.18.tgz", - "integrity": "sha512-2uWPtxhsXmVgd8WzDhfamSjHpZDXfMjMDciY6VRTq4Sn7rFzazyf0LLDa0oav+61UHIoEZb4KKaAV6S7NuJFbQ==", + "version": "1.8.7", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.8.7.tgz", + "integrity": "sha512-dRAWjRFN1Zy9mzPNLkFFIWT8T6C9euwluzCHZUKuhC+Bk3MayNPcpgDRyG+sg+n2sitEUySKxUynirVpu9ItKw==", "requires": { "@grpc/proto-loader": "^0.7.0", "@types/node": ">=12.12.47" @@ -28764,9 +28763,9 @@ "dev": true }, "sphinx-bot": { - "version": "0.2.41", - "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.41.tgz", - "integrity": "sha512-OYDitqmSE4D3gzHjHsctn/eswJ8OnyL68J4hw+qG6Y9Okae+AnBuBYn1frzEtKghjIjxyqyZJLoNqlN0GU0H5w==", + "version": "0.2.42", + "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.2.42.tgz", + "integrity": "sha512-EHN5Gj9PfbB6CisHqdAz7rTRzN6oJAjSHR0G5D9gr3IpyWEEC7RYFWJjlJVvS5YvUs+JqP+8O1pZr2Y5tp4wWw==", "requires": { "@types/cors": "^2.8.7", "@types/express": "^4.17.8", diff --git a/package.json b/package.json index 5b81bc6c3..9f19f0f56 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "short-uuid": "^3.1.1", "sjcl": "^1.0.8", "socket.io": "^4.4.1", - "sphinx-bot": "^0.2.41", + "sphinx-bot": "^0.2.42", "sqlite3": "5.0.11", "tail": "^2.0.3", "ts-jest": "^28.0.8", From 5f3552694777b26873e9e1bad28fd364bf70500a Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 23 Aug 2023 18:23:59 +0100 Subject: [PATCH 61/93] update: finalized image bot --- dist/src/builtin/ml.js | 25 ++++++++++++++++++++----- dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 26 +++++++++++++++++++++----- testing/stack/alice.json | 2 +- 4 files changed, 43 insertions(+), 12 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index d4e3e4508..c30bd833b 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -61,10 +61,10 @@ function init() { return; } } + let imageBase64 = ''; if (message.type === constants_1.default.message_types.attachment) { const blob = yield (0, ml_1.getAttachmentBlob)(message.media_token, message.media_key, message.media_type, tribe); - console.log('Image Blob', blob); - return; + imageBase64 = blob.toString('base64'); } const bot = yield (0, utill_1.findBot)({ botPrefix: exports.ML_PREFIX, tribe }); let metaObj = JSON.parse(bot.meta || `{}`); @@ -77,7 +77,10 @@ function init() { let content = ''; if (modelsArr.length === 1) { meta = metaObj[modelsArr[0]]; - if (message.content.startsWith(`@${modelsArr[0]}`)) { + if (message.type === constants_1.default.message_types.attachment) { + content = imageBase64; + } + else if (message.content.startsWith(`@${modelsArr[0]}`)) { content = message.content.substring(modelsArr[0].length + 1); } else { @@ -87,13 +90,24 @@ function init() { else { let modelName = ''; if (message.content.startsWith('@')) { - modelName = message.content.substring(1, message.content.indexOf(' ')); - content = message.content.substring(modelName.length + 1); + modelName = message.content.substring(1, message.content.indexOf(' ') > 0 + ? message.content.indexOf(' ') + : 100); + if (message.type === constants_1.default.message_types.attachment) { + content = imageBase64; + } + else { + content = message.content.substring(modelName.length + 1); + } } else { (0, ml_1.mlBotResponse)('Specify model name by typing the @ sysmbol followed by model name immediately, without space', message); return; } + if (!content) { + (0, ml_1.mlBotResponse)('Please provide content', message); + return; + } meta = metaObj[modelName]; if (!meta) { (0, ml_1.mlBotResponse)('Please provide a valid model name', message); @@ -122,6 +136,7 @@ function init() { }, }); const j = yield r.json(); + console.log('Response from image endpoint', j); if (!j.body) { (0, ml_1.mlBotResponse)('failed to process message (no body)', message); return; diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 5ef05c064..993f9567e 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCASmB;AACnB,4CAAuD;AACvD,4CAAoC;AAEpC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,oBAAW,CAAC,CAAA;IAE9B,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAO,OAAuB,EAAE,EAAE;;QAC7D,I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,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA7JD,oBA6JC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 3c0463210..f8de2b8e8 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -70,6 +70,7 @@ export function init() { return } } + let imageBase64 = '' if (message.type === constants.message_types.attachment) { const blob = await getAttachmentBlob( message.media_token!, @@ -77,8 +78,7 @@ export function init() { message.media_type!, tribe ) - console.log('Image Blob', blob) - return + imageBase64 = blob.toString('base64') } const bot: ChatBotRecord = await findBot({ botPrefix: ML_PREFIX, tribe }) @@ -92,7 +92,9 @@ export function init() { let content = '' if (modelsArr.length === 1) { meta = metaObj[modelsArr[0]] - if (message.content.startsWith(`@${modelsArr[0]}`)) { + if (message.type === constants.message_types.attachment) { + content = imageBase64 + } else if (message.content.startsWith(`@${modelsArr[0]}`)) { content = message.content.substring(modelsArr[0].length + 1) } else { content = message.content @@ -100,8 +102,17 @@ export function init() { } else { let modelName = '' if (message.content.startsWith('@')) { - modelName = message.content.substring(1, message.content.indexOf(' ')) - content = message.content.substring(modelName.length + 1) + modelName = message.content.substring( + 1, + message.content.indexOf(' ') > 0 + ? message.content.indexOf(' ') + : 100 + ) + if (message.type === constants.message_types.attachment) { + content = imageBase64 + } else { + content = message.content.substring(modelName.length + 1) + } } else { mlBotResponse( 'Specify model name by typing the @ sysmbol followed by model name immediately, without space', @@ -109,6 +120,10 @@ export function init() { ) return } + if (!content) { + mlBotResponse('Please provide content', message) + return + } meta = metaObj[modelName] if (!meta) { mlBotResponse('Please provide a valid model name', message) @@ -140,6 +155,7 @@ export function init() { }, }) const j = await r.json() + console.log('Response from image endpoint', j) if (!j.body) { mlBotResponse('failed to process message (no body)', message) diff --git a/testing/stack/alice.json b/testing/stack/alice.json index 7a5487c96..c5277d571 100644 --- a/testing/stack/alice.json +++ b/testing/stack/alice.json @@ -13,6 +13,6 @@ "tribes_insecure": true, "public_url": "127.0.0.1:3001", "connect_ui": true, - "host_name": "http://localhost:3001" + "host_name": "https://3377-105-112-235-209.ngrok-free.app" } } From 9379415a06c5d72da753d1fd2f421e3395a51a33 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 23 Aug 2023 18:34:06 +0100 Subject: [PATCH 62/93] update: ensured attachments are only viewed by tribe admin and sender for ml-bot --- dist/src/network/send.js | 2 +- dist/src/network/send.js.map | 2 +- src/network/send.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/src/network/send.js b/dist/src/network/send.js index fef6482bc..a1d0c42dd 100644 --- a/dist/src/network/send.js +++ b/dist/src/network/send.js @@ -93,7 +93,7 @@ function sendMessage({ type, chat, message, sender, amount, success, failure, sk logger_1.sphinxLogger.info(`[Network] => isBotMsg`, logger_1.logging.Network); // return // DO NOT FORWARD TO TRIBE, forwarded to bot instead? } - if (msg.type === 0) { + if (msg.type === 0 || msg.type === constants_1.default.message_types.attachment) { const hiddenCmd = yield interceptTribeMsgForHiddenCmds(msg, tenant); justMe = hiddenCmd ? hiddenCmd : justMe; } diff --git a/dist/src/network/send.js.map b/dist/src/network/send.js.map index 083a30e8a..233b547b5 100644 --- a/dist/src/network/send.js.map +++ b/dist/src/network/send.js.map @@ -1 +1 @@ -{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sC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C,IAAI,CAAC,8BAA8B,CAAC,CAAA;SAClD;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,0BAA0B,KAAK,EAAE,EAAE,gBAAO,CAAC,OAAO,CAAC,CAAA;SACvE;IACH,CAAC;CAAA;AAED,SAAe,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;;QACpE,MAAM,eAAe,GAAG,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YACpD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE;SAC1C,CAAC,CAAkB,CAAA;QACpB,IAAI,eAAe,CAAC,MAAM,KAAK,MAAM,EAAE;YACrC,MAAM,cAAc,CAAC;gBACnB,MAAM;gBACN,eAAe;gBACf,WAAW,EAAE,GAAG;gBAChB,KAAK;gBACL,MAAM;gBACN,MAAM;aACP,CAAC,CAAA;SACH;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCASkB;AAClB,yCAAwC;AACxC,wCAAgD;AAChD,sCAIqB;AACrB,0CAAyC;AACzC,gEAAyE;AACzE,4CAAoC;AACpC,4CAAuD;AACvD,4CAA4C;AAC5C,wDAAoD;AACpD,0CAA4D;AAE5D,yCAAwC;AACxC,uCAAkE;AAClE,sCAAyC;AAEzC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AA+B3B;;;;;;;;;;;;;;;;GAgBG;AACH,SAAsB,WAAW,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,MAAM,EACN,MAAM,EACN,OAAO,EACP,OAAO,EACP,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,iBAAiB,GACC;;QAClB,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM;YAAE,O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AC1C,CAAC,CAAkB,CAAA;QACpB,IAAI,eAAe,CAAC,MAAM,KAAK,MAAM,EAAE;YACrC,MAAM,cAAc,CAAC;gBACnB,MAAM;gBACN,eAAe;gBACf,WAAW,EAAE,GAAG;gBAChB,KAAK;gBACL,MAAM;gBACN,MAAM;aACP,CAAC,CAAA;SACH;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/src/network/send.ts b/src/network/send.ts index 2053d909c..2b18cdcfa 100644 --- a/src/network/send.ts +++ b/src/network/send.ts @@ -149,7 +149,7 @@ export async function sendMessage({ sphinxLogger.info(`[Network] => isBotMsg`, logging.Network) // return // DO NOT FORWARD TO TRIBE, forwarded to bot instead? } - if (msg.type === 0) { + if (msg.type === 0 || msg.type === constants.message_types.attachment) { const hiddenCmd = await interceptTribeMsgForHiddenCmds(msg, tenant) justMe = hiddenCmd ? hiddenCmd : justMe } From 7ab722931bd820b871fef6d466e830c55656e083 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 23 Aug 2023 18:34:56 +0100 Subject: [PATCH 63/93] update: removed logs in decrypt message function for tribe --- dist/src/utils/msg.js | 1 - dist/src/utils/msg.js.map | 2 +- src/utils/msg.ts | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dist/src/utils/msg.js b/dist/src/utils/msg.js index 3073b7573..1f8208cf3 100644 --- a/dist/src/utils/msg.js +++ b/dist/src/utils/msg.js @@ -121,7 +121,6 @@ function finishTermsAndReceipt(full, destkey, senderPubkey) { function decryptMessage(full, chat) { var _a, _b; return __awaiter(this, void 0, void 0, function* () { - console.log('Actuall message in decrypt function', full); if (!chat.groupPrivateKey) return full; const m = full && full.message; diff --git a/dist/src/utils/msg.js.map b/dist/src/utils/msg.js.map index 916d94c69..445a797e2 100644 --- a/dist/src/utils/msg.js.map +++ b/dist/src/utils/msg.js.map @@ -1 +1 @@ -{"version":3,"file":"msg.js","sourceRoot":"","sources":["../../../src/utils/msg.ts"],"names":[],"mappings":";;;;;;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AAE,QAAQ,CAAC,WAAW,GAAG,MAAM;oBAC1C,UAAU,EAAE,QAAQ,CAAC,UAAU,GAAG,CAAC;iBACpC,CAAC,CAAA,CAAA;aACH;iBAAM;gBACL,MAAM,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC;oBACrB,WAAW,EAAE,QAAQ,CAAC,WAAW,GAAG,MAAM;iBAC3C,CAAC,CAAA,CAAA;aACH;SACF;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAChB,kGAAkG,KAAK,EAAE,EACzG,gBAAO,CAAC,OAAO,CAChB,CAAA;SACF;IACH,CAAC;CAAA;AAMC,sDAAqB"} \ No newline at end of file diff --git a/src/utils/msg.ts b/src/utils/msg.ts index ba53a8320..ad2bcd1af 100644 --- a/src/utils/msg.ts +++ b/src/utils/msg.ts @@ -129,7 +129,6 @@ async function decryptMessage( full: Partial, chat: Partial ): Promise { - console.log('Actuall message in decrypt function', full) if (!chat.groupPrivateKey) return full as Msg const m = full && full.message if (!m) return full as Msg From 01c50705a79a2f75ec73fbc1a7939deaf315de2c Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 23 Aug 2023 19:52:17 +0100 Subject: [PATCH 64/93] fix: fixed empty message content for the ml-bot --- dist/src/builtin/ml.js | 2 +- dist/src/builtin/ml.js.map | 2 +- dist/src/network/send.js | 2 +- dist/src/network/send.js.map | 2 +- src/builtin/ml.ts | 2 +- src/network/send.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index c30bd833b..dd6cb62e6 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -89,7 +89,7 @@ function init() { } else { let modelName = ''; - if (message.content.startsWith('@')) { + if (message.content && message.content.startsWith('@')) { modelName = message.content.substring(1, message.content.indexOf(' ') > 0 ? message.content.indexOf(' ') : 100); diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 993f9567e..2830c3f4a 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCASmB;AACnB,4CAAuD;AACvD,4CAAoC;AAEpC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,oBAAW,CAAC,CAAA;IAE9B,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAO,OAAuB,EAAE,EAAE;;QAC7D,IAAI,CAAA,MAAA,OAAO,CAAC,MAAM,0CAAE,GAAG,MAAK,iBAAS;YAAE,OAAM;QAC7C,MAAM,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,CAAA;QAC1E,IAAI;YACF,MAAM,KAAK,GAAG,CAA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CAAC,CAAA;gBAClD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;oBACxB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;iBAC1B;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;oBACzB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;iBACpB;gBACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA7JD,oBA6JC"} \ No newline at end of file diff --git a/dist/src/network/send.js b/dist/src/network/send.js index a1d0c42dd..4cc3c4635 100644 --- a/dist/src/network/send.js +++ b/dist/src/network/send.js @@ -433,7 +433,7 @@ function interceptTribeMsgForHiddenCmds(msg, tenant) { where: { tenant, chatId: newChat.id }, })); const content = msg.message.content; - const splitedContent = content.split(' '); + const splitedContent = (content && content.split(' ')) || []; for (let i = 0; i < bots.length; i++) { const bot = bots[i]; const isHidden = bot.botPrefix === splitedContent[0] && diff --git a/dist/src/network/send.js.map b/dist/src/network/send.js.map index 233b547b5..dd6811e6b 100644 --- a/dist/src/network/send.js.map +++ b/dist/src/network/send.js.map @@ -1 +1 @@ -{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCASkB;AA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,YAAY,EAAE,QAAQ;aACvB,CAAC,CAAA;YACF,qBAAY,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAA;SAClD;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,0BAA0B,KAAK,EAAE,EAAE,gBAAO,CAAC,OAAO,CAAC,CAAA;SACvE;IACH,CAAC;CAAA;AAED,SAAe,gBAAgB,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;;QACpE,MAAM,eAAe,GAAG,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;YACpD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE;SAC1C,CAAC,CAAkB,CAAA;QACpB,IAAI,eAAe,CAAC,MAAM,KAAK,MAAM,EAAE;YACrC,MAAM,cAAc,CAAC;gBACnB,MAAM;gBACN,eAAe;gBACf,WAAW,EAAE,GAAG;gBAChB,KAAK;gBACL,MAAM;gBACN,MAAM;aACP,CAAC,CAAA;SACH;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../src/network/send.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCASkB;AAClB,yCAAwC;AACxC,wCAAgD;AAChD,sCAIqB;AACrB,0CAAyC;AACzC,gEAAyE;AACzE,4CAAoC;AACpC,4CAAuD;AACvD,4CAA4C;AAC5C,wDAAoD;AACpD,0CAA4D;AAE5D,yCAAwC;AACxC,uCAAkE;AAClE,sCAAyC;AAEzC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AA+B3B;;;;;;;;;;;;;;;;GAgBG;AACH,SAAsB,WAAW,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,OAAO,EACP,MAAM,EACN,MAAM,EACN,OAAO,EACP,OAAO,EACP,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,iBAAiB,G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CAAC;YACpD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,IAAI,EAAE;SAC1C,CAAC,CAAkB,CAAA;QACpB,IAAI,eAAe,CAAC,MAAM,KAAK,MAAM,EAAE;YACrC,MAAM,cAAc,CAAC;gBACnB,MAAM;gBACN,eAAe;gBACf,WAAW,EAAE,GAAG;gBAChB,KAAK;gBACL,MAAM;gBACN,MAAM;aACP,CAAC,CAAA;SACH;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index f8de2b8e8..6886f51b4 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -101,7 +101,7 @@ export function init() { } } else { let modelName = '' - if (message.content.startsWith('@')) { + if (message.content && message.content.startsWith('@')) { modelName = message.content.substring( 1, message.content.indexOf(' ') > 0 diff --git a/src/network/send.ts b/src/network/send.ts index 2b18cdcfa..3b54b0abf 100644 --- a/src/network/send.ts +++ b/src/network/send.ts @@ -557,7 +557,7 @@ async function interceptTribeMsgForHiddenCmds( })) as ChatBotRecord[] const content = msg.message.content as string - const splitedContent = content.split(' ') + const splitedContent = (content && content.split(' ')) || [] for (let i = 0; i < bots.length; i++) { const bot = bots[i] From a61be51f2dc20fd08a3adcece44cd0c86c90c1fa Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 23 Aug 2023 21:34:56 +0100 Subject: [PATCH 65/93] update: updated the ml-bot to support base64 images and content --- dist/src/builtin/ml.js | 59 +++++++++++++++++++++----------------- dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 58 ++++++++++++++++++++----------------- 3 files changed, 65 insertions(+), 54 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index dd6cb62e6..be4d34dda 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -77,10 +77,7 @@ function init() { let content = ''; if (modelsArr.length === 1) { meta = metaObj[modelsArr[0]]; - if (message.type === constants_1.default.message_types.attachment) { - content = imageBase64; - } - else if (message.content.startsWith(`@${modelsArr[0]}`)) { + if (message.content.startsWith(`@${modelsArr[0]}`)) { content = message.content.substring(modelsArr[0].length + 1); } else { @@ -93,21 +90,12 @@ function init() { modelName = message.content.substring(1, message.content.indexOf(' ') > 0 ? message.content.indexOf(' ') : 100); - if (message.type === constants_1.default.message_types.attachment) { - content = imageBase64; - } - else { - content = message.content.substring(modelName.length + 1); - } + content = message.content.substring(modelName.length + 1); } else { (0, ml_1.mlBotResponse)('Specify model name by typing the @ sysmbol followed by model name immediately, without space', message); return; } - if (!content) { - (0, ml_1.mlBotResponse)('Please provide content', message); - return; - } meta = metaObj[modelName]; if (!meta) { (0, ml_1.mlBotResponse)('Please provide a valid model name', message); @@ -124,19 +112,36 @@ function init() { if (!host_name.startsWith('http')) { host_name = `https://${host_name}`; } - const r = yield (0, node_fetch_1.default)(url, { - method: 'POST', - body: JSON.stringify({ - message: content.trim(), - webhook: `${host_name}/ml`, - }), - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - }); - const j = yield r.json(); - console.log('Response from image endpoint', j); + let j; + if (message.type === constants_1.default.message_types.attachment) { + const r = yield (0, node_fetch_1.default)(url, { + method: 'POST', + body: JSON.stringify({ + message: content.trim(), + image64: imageBase64, + webhook: `${host_name}/ml`, + }), + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }); + j = yield r.json(); + } + else { + const r = yield (0, node_fetch_1.default)(url, { + method: 'POST', + body: JSON.stringify({ + message: content.trim(), + webhook: `${host_name}/ml`, + }), + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }); + j = yield r.json(); + } if (!j.body) { (0, ml_1.mlBotResponse)('failed to process message (no body)', message); return; diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 2830c3f4a..72727fc02 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"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GAAG,CAAC,CAAC,CAAA;gBAClD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;oBACxB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;iBAC1B;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;oBACzB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;iBACpB;gBACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AAnKD,oBAmKC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 6886f51b4..d7199a55d 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -92,9 +92,7 @@ export function init() { let content = '' if (modelsArr.length === 1) { meta = metaObj[modelsArr[0]] - if (message.type === constants.message_types.attachment) { - content = imageBase64 - } else if (message.content.startsWith(`@${modelsArr[0]}`)) { + if (message.content.startsWith(`@${modelsArr[0]}`)) { content = message.content.substring(modelsArr[0].length + 1) } else { content = message.content @@ -108,11 +106,7 @@ export function init() { ? message.content.indexOf(' ') : 100 ) - if (message.type === constants.message_types.attachment) { - content = imageBase64 - } else { - content = message.content.substring(modelName.length + 1) - } + content = message.content.substring(modelName.length + 1) } else { mlBotResponse( 'Specify model name by typing the @ sysmbol followed by model name immediately, without space', @@ -120,10 +114,7 @@ export function init() { ) return } - if (!content) { - mlBotResponse('Please provide content', message) - return - } + meta = metaObj[modelName] if (!meta) { mlBotResponse('Please provide a valid model name', message) @@ -142,20 +133,35 @@ export function init() { if (!host_name.startsWith('http')) { host_name = `https://${host_name}` } - - const r = await fetch(url, { - method: 'POST', - body: JSON.stringify({ - message: content.trim(), - webhook: `${host_name}/ml`, - }), - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - }) - const j = await r.json() - console.log('Response from image endpoint', j) + let j + if (message.type === constants.message_types.attachment) { + const r = await fetch(url, { + method: 'POST', + body: JSON.stringify({ + message: content.trim(), + image64: imageBase64, + webhook: `${host_name}/ml`, + }), + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }) + j = await r.json() + } else { + const r = await fetch(url, { + method: 'POST', + body: JSON.stringify({ + message: content.trim(), + webhook: `${host_name}/ml`, + }), + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }) + j = await r.json() + } if (!j.body) { mlBotResponse('failed to process message (no body)', message) From 6287c34b1ce6ed84998f45ad0d3242beaecf64cd Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 23 Aug 2023 22:46:49 +0100 Subject: [PATCH 66/93] update: changed cln-integration for stack --- .github/workflows/cln_proxy_integration_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 96f0e5de4..9c05bcee0 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone https://github.com/stakwork/sphinx-stack.git stack + git clone -b update/cln-config https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | From cba58bb36ff6b9ce1100ae6c5010863f643f555a Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 24 Aug 2023 15:02:21 +0100 Subject: [PATCH 67/93] update: remove cln-config stack branch --- .github/workflows/cln_proxy_integration_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 9c05bcee0..96f0e5de4 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone -b update/cln-config https://github.com/stakwork/sphinx-stack.git stack + git clone https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | From 51870277623b9500eae90aeca3f8e0501ad1531c Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 24 Aug 2023 17:24:28 +0100 Subject: [PATCH 68/93] update: added cln update branch --- .github/workflows/cln_proxy_integration_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 96f0e5de4..9c05bcee0 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone https://github.com/stakwork/sphinx-stack.git stack + git clone -b update/cln-config https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | From 11bb28a8e368a6370d439811035e9d571fa39b2c Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 24 Aug 2023 22:22:49 +0100 Subject: [PATCH 69/93] update: removed stack branch --- .../workflows/cln_proxy_integration_test.yml | 2 +- src/tests/configs/nodes.json | 70 +++++++++---------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 9c05bcee0..96f0e5de4 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone -b update/cln-config https://github.com/stakwork/sphinx-stack.git stack + git clone https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | diff --git a/src/tests/configs/nodes.json b/src/tests/configs/nodes.json index 580fe1ae4..90f854830 100644 --- a/src/tests/configs/nodes.json +++ b/src/tests/configs/nodes.json @@ -4,11 +4,11 @@ "pubkey": "03a394d0ebf0d003124ab130c6b12b8b990a50a30a464354800a51981ba745bb07", "ip": "http://alice.sphinx:3001", "external_ip": "http://localhost:3001", - "authToken": "4CowQnkTC3XRbvQqRdCc", - "transportToken": "MIIBCgKCAQEAqhnxh3o4R3lpxrXLUa4iZJAzV0vNPa4fiDgHp+Z43DgfAS239+yv\nP6lhYAt+Wu2NdKAkRBE8EKdCCP3Y+NHPerQf0gaDD5VnvCG1780fOBSIcoAcUzMs\nwanHNjFpXxehNSS2GnE6zhava/sxVIb9v1nqvhq+dbqMyjhjpbeord125L8QoM7E\nKJdlbydezYIIQAd1FXUuY4wPXO2z1680zOgvmA6UEzWFjoDwMPcO55119V1ZgFD5\n2TC4kVsxq7N5jK1TONBuvq+WwjDV85eh1WWyFZZOEZFYVQ7L6hB0pC25V9S1vbp/\nS6fUBoCZeOGskrgsMa1sbF58Qwf/ZqpFMwIDAQAB", - "contact_key": "MIIBCgKCAQEAusfvpMgHfdPHzD633pLhfr3qYckiMSTuXm4NhHtTGx9j82W8DFeQXPUxrrXPwOL9/PAn08WGr6ah1GO1CNv75I2xxPoRvZa0Ebs7vR1VfWTaQCpXyh7Q6D3yXxxJ+t5cPWHzboq9KJHGW0CIOXz4QUwyqx+KXS1y65FzDD2W1BDZxGIO9cqAvGvkhe2K06yx2RVi+3Upf+5kR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TFVjSmVVZlJtTlA4YXhxTUZvZTZ6eHNKR2d3ME1ub1hlZkZwSlpYL1BQT2M3TmhQY3pYbFJud0h0ZGdRMWVUTFZ1dHB6REEvaFh5OTVrOGQwM1VmZmQ0QjloTGx5Qm15aFNCR3NFSDBQTXc5QlZJeTkvenBvbnhqYmtreVl6T1pGRldFY25lczNvMW02b3dHSytXQ29sWGRQanVNZnJSR3RZbEwxUWlZRzE0dXpnajNTRllPTmxLN0dxWWc1RjIwZFgrTnFxM2lyVVpIVTFNcjNaK3RhOEsvUTI0N0hHU01sYUxnRzI5SmtQWWhDNDJQNExsSEZhalBBOHRoaExnQ2pqTFA1NEwzd0NVQlF3dXZnUTh3cngyYXdQbmxHSTE0dkFHUUtuYXJEZk0weklLdlBoY3RqS0IwcDRVMUVCTExGeGdJc3piKzhxVkNoSy9BY1VkSG1Sci9MRkVha1JPS1VYWnJsVk5HMklHTnY1R2NpK291RU9GbkJVZmkvTG9NVGtiQjRVMUNrNHg0QkpWWWw0Y1RyS0NGdUxibGlrSGUzUVpGUTMxVWtGTy9wR0JhSVBERXVvWUtuK2pnUmVZdzlnT2JKQnJ1T3loNTM0U2RHRGx0aW9vVEp5TGc2QllVQ1FSM3FqZHhlZnFtTjh4N0dUQlBFd2k5cmlRWkcwT2tTSG5VdlJpYi9BZlJPa0FMdW9DM2lDQVl0cWExZWNsWFk3MEJ4Sk1mZEhMcXY1RFZpcGVVYmtTcElCV0Z0WkFESkRidmdrcng0U3JvTGNsQ1JTc01lbHJMT245VzVTU1hYTjFWNHJ5MWNLWENNSmE1SmJkaTF0UTh1eFhmc2tEMUw3ZTArSGJGbnRpNDc3OTcxMmdFVT0=", "pin": "111111" }, { @@ -16,11 +16,11 @@ "pubkey": "02a38857848aca6b32ebcc3c85d07ee41354988f4f1e0b4e6ccd255eee6ed75b8d", "ip": "http://bob.sphinx:3002", "external_ip": "http://localhost:3002", - "authToken": "juhN/i0W9LbfLDz7/Gf7", - "transportToken": "MIIBCgKCAQEAw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ZNEZ1dlV5RjV6WHdiSjNuU2YwL0VFM3ZhRisxTWJ5ai9aY21mVUNHYVZtN1ZCUDIvclMvYVMrM1FvaWtvaG9BQ3ViSllIS2FIVW1EcnNKVEZQK3BPSjJHQXpNU3ZKOCtBSExxMDQxeTZQaUZGWTFJVTFGU2JFQzhYQVMweCtLL0N6R3lteU5DbkZhYWVKS1BEZkJxaVI4ZVcyeEFQY1JXd1o5eDhLYlNCbWhtdTkzaHR0ZDkrZEM5Tk9RS2s4OW8wSmVZSEhibExuaDVaVUc4V3RicDNQMzBPTkk3VUFkYUFBUkZVbVZERnVnNGZxNVR3M1o5YlNZUWFBK2IydWRaaS9UVkpQZHBPa2MwNnI2WnFoTDdwa3E2d1I5WDIwWUF6L0dGcG54ST0=", "pin": "111111" }, { @@ -28,51 +28,51 @@ "pubkey": "0364c05cbcbb9612036cc66297445a88bcfc21941fd816e17a56b54b0b52ff02b9", "ip": "http://carol.sphinx:3003", "external_ip": "http://localhost:3003", - "authToken": "UbO77cjm7Peg59oT124s", - "transportToken": "MIIBCgKCAQEA4UP1X3HhARf0CtZ4bBLlPWjHFbI3NDStDFzTLLAXah84Dy82eA9u\n4lRSj238jXbbTFmL5+oUGUMBySd9qK27iNLuCm9YwLDJ4leWDcLrlDZaPQDHTp4v\nqshogUW3BtOIwPTBDcnHmgC3kTWnliPQwhXMeU0oHJwoVORN5s1CLC0Uvosw+SdA\nJPsqdMH+ZtJP+deKG4iIG3w7l5/LWQTqhAUhCMLTUukJlbMcGS67C7MqiUeCFJ/F\niu8+IKpWq0TVV5CXQNPDttSqfdijTsSYjofd0OgpGmH0dDy6yi9QM+Bb03mS1g+J\nTJSXj7jPNsZjISMOyue/Vne3qT6uqnkOTQIDAQAB", - "contact_key": "MIIBCgKCAQEAv7IrzfQgGkE1AQBUKyZFox5WF0yB3Ql28vexXTEUUuAhD/1DG01Q4cd/aBcPmRpOqiELy1tntPRIMON9eCDevGuv3wV8FR502RtsngFI+hhfM8kFD+Q2J42B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JcTd2NXVYc0FwdlcwdExGTm5LeTZnMzRUSWliUHYzRGR6cnBPOUZCSXFGc2RNVjR4Q3U5V0FrRnJVYWRhbkxPSXdaUGYyTmxSUUJtZkVVeWEyT1hZN09CbVVrdWFmK216N050SGFPMjcrRjdTRjFXQmVzcHd4NjJaYU5YMlhFbFg1cnhiNVhzVEErOGNvL3J2SFQ2QmdMODVjb0p4am1rdUYwQ0RjcTdFUWpwMlA5QnpkL3V4dFdZcWVXRFRwclRHY2NnUmlLanpSSW1XbUVnVjFVa0tWb3lzc2UvOWluLzM1a09TWkhvdGdnR0FISkg1U3pPcTMwVmRUZzVsdG8xbnNLVVZZcHhTQWNQYmZhNGJlNjk2MUIxVlRIK3ZMSEFuYXFGbTZiV2NFT3lXaUJVcEh6ZFRkUGpsem1NcFN5dlRJc0dLRDVkOWdmS2xFQzdOclJlV3VTQTJRU0tITGM1b1lSQ05qcENlelpGWHNUOVp2R09tOC9lK1BjTzZZTHYwNGttWUFSRHN0YWFJTnRwNXRpeHplL1pPVzI0TzFrSVI1NFltcHJCa3lGcnBxTEU0RFlRRmtVb0hZWFN2K2ljZkIvNzBlR2VheGUyMUVoYkZITmRLcW91dDlMWUJnS0tYUkQydzM3aGZtQ0pHczNQN0VOYkp1T3hEVmpTb3RwMTFtc3FZeDI2YXRsM0h1eitEbnp0NGxXdFJ1M2RUNTVCbkFXeWEyZ2tzQjJHTzZoT25YSG5QWWlzUEZvR0Jmc001NlFDR21IVHBaRWFhbWVkeEpQU0pYRDFZQVJOcHhRR0hqRGROMjlWME03WFNjZFR1aGJ3QVE5YnV1MnZRckttbUFhVGtyYjFLclk0UnFMdjRpU0p6QjduK2REZVR4Tmo4RkQyZUREcW5FcUJNZThsMHVLWT0=", "pin": "111111" }, { "alias": "dave", - "pubkey": "030841d1519f19c68e80efc5ef5af3460ca4bfa17486fda9baca878b9ef255358f", + "pubkey": "037ec785c6004d512ebaeb0020f81a2bcdb6fccc9539f7b891f704289ebc65a4e3", "ip": "http://host.docker.internal:3004", "external_ip": "http://localhost:3004", "proxy_ip": "http://proxy.sphinx:5050", "admin_token": "r46bnf8ibrhbb424heba", - "authToken": "G6OaAIhl+CHta7ltKmJC", - "transportToken": "MIIBCgKCAQEAooPAuBkokTQjkCuje595SahO/mNOHFcXyognRO6L2dasKED11X6D\nERnqRWXlOATbmHoWbVn+8ZoHHFWhzD4eTBs6XkywIGcnYB1iEU/UL4g+rAOQE+Pt\nmcv0d1qd8hcBpE8RQZomgZ0tFrj5+14MerUqhxSQBWAdWLyWa9LolZfRu924L45u\nopBwM+TdxlmCqi0OySl/Q1TM9Z8UnyQTKIf/7EJ9F4ETvWJ9YiksIgDejMKPVPJt\n5OLrmvhGs8kIsyvjwjkdlLfOl2gAklR9FdA6nygjHo0SzaRqfEa8JSv7eMuMROjA\nCZPy48fdy7ms9ZSHdSsFEeFsL69+bnVICwIDAQAB", - "contact_key": "MIIBCgKCAQEA0NMz+pczCYOUmO8N9zwG8R7p2fU/LhSe0kONh5mcRql8zBwCoD18PVDpF8ZXo3OasB79WNJQ/TQD8Rcw0mwDXof9rkVlB+F0R+qamDL1/TwwAw1wiql7uI4NICQy1MmTLfnYDOHe+YAhaCimJcZyNr6ksl2184vIlN4BWINnRe7a7/dndmO6BhtkWkA6uzkBIEMFtRu9yIqCC3kpJj3YMKATe/gqhVKL0FhAdTEBrC/In51COqgax2LF7ADh4LtoIjijQQfYwPv1AVW0XnF1sKPxB2fvZ+5DL5nC9t1WrHKGzPU7FovQ6xPJQgy73eqte1jurgRdTIcJUUt0eTuwxwIDAQAB", - "privkey": "MIIEogIBAAKCAQEA0NMz+pczCYOUmO8N9zwG8R7p2fU/LhSe0kONh5mcRql8zBwCoD18PVDpF8ZXo3OasB79WNJQ/TQD8Rcw0mwDXof9rkVlB+F0R+qamDL1/TwwAw1wiql7uI4NICQy1MmTLfnYDOHe+YAhaCimJcZyNr6ksl2184vIlN4BWINnRe7a7/dndmO6BhtkWkA6uzkBIEMFtRu9yIqCC3kpJj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z21qSnZCcGtHN2I0V00wbGdtMW5PUlpWUWVGMFA0YTJpOXNBWVVpMDdOZTZjeDNGU2hHTmJzWkVCNm03VzR2YkI1RllyNGpCRER0TTVpU0FhRStzMS9rdGRZNmRMbVFPbStVQWdJUHlwWThNTmo0MEJMa3NFRUVFYjc5SmVocloxbm5VQ21JcndkMzhkTDNCTC90TllMdWMzNm54eGg3ZnFkV1hyOC8wc3l1UUE3cHpxVkg0amFTZW9OV1F1ZkRoSXR1cFJ0N0p2WExnSTR5Mm01ZU1YbDUzSVArRGViNHRJWmx1MjM4SWJlbjlQaW14aG42a3pha3dhQUgxTUM5VHZwWHZpK0JjSEJwUTM5dlRjSzVNdm10RGZoR2xDVzMyWlNaTE5DMWVWVm9RaDBqL3kxbFNPd1hpQVlHeWxUOFFvcEhnNkV5WDB5Z1NDdGQyL1pwMktxNGdRSUlCa1RzK2YwaWtOOHh5OXpVL1ppSFBRZz0=", "pin": "111111" }, { - "pubkey": "02c770adb674dd5fb22c913e6c80d441b73e3f5266f10e46e31440d3dc6e0fea67", - "routeHint": "030841d1519f19c68e80efc5ef5af3460ca4bfa17486fda9baca878b9ef255358f:2199023452161", + "pubkey": "02132660a55668156cf1c2be27f8fb2a4a9b388d3fa2fdf3ba4677545c41c323a3", + "routeHint": "037ec785c6004d512ebaeb0020f81a2bcdb6fccc9539f7b891f704289ebc65a4e3:2199023386625", "alias": "virtualNode0", "ip": "http://host.docker.internal:3004", "external_ip": "http://localhost:3004", - "authToken": "HelxYyNTtDVN7cQHso7u", - "transportToken": "MIIBCgKCAQEAooPAuBkokTQjkCuje595SahO/mNOHFcXyognRO6L2dasKED11X6D\nERnqRWXlOATbmHoWbVn+8ZoHHFWhzD4eTBs6XkywIGcnYB1iEU/UL4g+rAOQE+Pt\nmcv0d1qd8hcBpE8RQZomgZ0tFrj5+14MerUqhxSQBWAdWLyWa9LolZfRu924L45u\nopBwM+TdxlmCqi0OySl/Q1TM9Z8UnyQTKIf/7EJ9F4ETvWJ9Y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dEJEV3phY0Y2TW1xR3cvN1ZJMXQ1T1g2L2VCMW5xelBRTkcveE44NVVlUjc2T3c1OTU4RnoycnVWRW9mQkx4Q3ppYXhaRkVId3FvbFUydzNhdjFvekxZN3dKOHJLNGJ5d3pjQm1YWT0=", "pin": "111111" }, { - "pubkey": "032a8584180847b52aca8b9fb54b2b80b07f22e58cef812f82780242eefbe83cab", - "routeHint": "030841d1519f19c68e80efc5ef5af3460ca4bfa17486fda9baca878b9ef255358f:2199023386625", + "pubkey": "0382314dab08270ee1afbfa60f8aafc31c17e4cfa56b67e34d936788a1004db8a5", + "routeHint": "037ec785c6004d512ebaeb0020f81a2bcdb6fccc9539f7b891f704289ebc65a4e3:2199023452161", "alias": "virtualNode1", "ip": "http://host.docker.internal:3004", "external_ip": "http://localhost:3004", - "authToken": "SLeaO/kn0h+L8Yvs6Shl", - "transportToken": "MIIBCgKCAQEAooPAuBkokTQjkCuje595SahO/mNOHFcXyognRO6L2dasKED11X6D\nERnqRWXlOATbmHoWbVn+8ZoHHFWhzD4eTBs6XkywIGcnYB1iEU/UL4g+rAOQE+Pt\nmcv0d1qd8hcBpE8RQZomgZ0tFrj5+14MerUqhxSQBWAdWLyWa9LolZfRu924L45u\nopBwM+TdxlmCqi0OySl/Q1TM9Z8UnyQTKIf/7EJ9F4ETvWJ9YiksIgDejMKPVPJt\n5OLrmvhGs8kIsyvjwjkdlLfOl2gAklR9FdA6nygjHo0SzaRqfEa8JSv7eMuMROjA\nCZPy48fdy7ms9ZSHdSsFEeFsL69+bnVICwIDAQAB", - "contact_key": "MIIBCgKCAQEApRoSC8CE+/3Uc+IsTCK/5BjMRHqsGIBZBwBfFOqRUT7Jtqvn1Yr1s35W6e2ovnQS97zXZlxdUGQSKY6Ge8PUunJQ1g+8HLxaORxMdEinq1rheApQCobOtxvf+baZzwy2C52z1wqzu9WG0Bzf3LeDQOM0Glw/Q5yFdu0lDiR+wabDFqpBn0VWSlIUqtg3B4yBGSz9FUBj8JyEC5KPTa319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5OVFaQ3NodEs5dFBvanpsSnByYU9INVNuMHdsLzhoNEd2clo2ZjNsb0hzbXpxS1I4dXpYMVQxck9QK05ud05sT29YbkU2S1pMRnBJVWtXQmN6WG5vaVErb3hxYWJTNnNHaHdXcWo1emMwZEJvbUFJMHNWdEYwbEM3ZmM0QjFtbWV4UzNBbmtqSFZYNHNQblptK2MrcE5SclFjZ0ZUdDdidCtzNHBGRGlKeE5IYW5NK0w2MUg2WGJYMlY4cjc1ZnREc2FJZS9RN2hKOUExZHFVcXV5ek1sOEZwcm1FYjhhQ0ZPSVFNUlJ4bUJVSlBuNmdsc2dqbG5uWXExV3FPaEFEUStXWUNEV2xqeGFBZnNpMUFWVDFUc3dWbzlkNUpCbFpFWDNLanByRllKd252c3Z1RlFwVHJTd2tveWR6RnRMRlA1ZmxqTnlhTWcxdW9OL0dPbXdOTDY4ZlRrc1Q2ckduSTRVN3piaFJTam9HRUtzZ0VCdHphMjRVUnZYMjMvN1k3WENXUG5NSnZrdEY0OGE5MG1nZk9hRTg3bmk1UzJ1ZE9iTTBkVEFQT3N5LzhNTXU3dk03QlovYmJENC9oSUM1SnpaTVRnUG4rcENOY01aS05PV1BzbUNNZ3BBRXd5bGEweVAzQXNYak04QUtsZXNmamp6S05lZ0tQeGNNWFRjeEVDTWpIUFIyU0s2M0FGK095bENrY2NVdlJHdDRPNDBIOEgzTjdJUVhyeGRqK1JxZ0NvTm9UVGJnSWFOYVhyWmdsWXZGdk1sUmNVZDEyVm13bTFSbjZDemJDYUZBU2ZwcG5ZMWphbnJKVVcvMDc0NTZHUG9aOXVZWUpoalhUa1FqMk4xd1pUSVVOWStKR0NZcVRiYnFFcz0=", "pin": "111111" } ] From 070da4a1717e21e20ce909c6961f8b5fb265b909 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 24 Aug 2023 23:53:02 +0100 Subject: [PATCH 70/93] updated: updated bot response --- dist/src/tests/controllers/mlBot.test.js | 2 +- dist/src/tests/controllers/mlBot.test.js.map | 2 +- src/tests/controllers/mlBot.test.ts | 2 +- testing/stack/alice.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/src/tests/controllers/mlBot.test.js b/dist/src/tests/controllers/mlBot.test.js index b9233fbf4..52fd123c9 100644 --- a/dist/src/tests/controllers/mlBot.test.js +++ b/dist/src/tests/controllers/mlBot.test.js @@ -75,7 +75,7 @@ function mlBot(t, index1, index2, index3) { const text4 = (0, helpers_1.randomText)(); const bobMessage = yield (0, msg_1.sendTribeMessage)(t, bob, tribe, text4); const botTextResponse = '
This is a response from test ml-bot server built in sphinx-stack
'; - const botImageResponse = '
'; + const botImageResponse = '
'; yield (0, helpers_1.sleep)(8000); const botReply4 = (yield (0, get_1.getCheckBotMsg)(t, bob, botAlias, tribe, 1)); const botResponse = (0, msg_1.decryptMessage)(bob, botReply4); diff --git a/dist/src/tests/controllers/mlBot.test.js.map b/dist/src/tests/controllers/mlBot.test.js.map index e93eecf10..bb1a4b3da 100644 --- a/dist/src/tests/controllers/mlBot.test.js.map +++ b/dist/src/tests/controllers/mlBot.test.js.map @@ -1 +1 @@ -{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAoD;AACpD,sCAAsD;AACtD,wCAAsD;AACtD,sCAA+D;AAC/D,oCAA4B;AAC5B,sCAAkE;AAGlE;;EAEE;AAEF,IAAA,aAAI,EAAC,oHAAoH,EAAE,CAAO,CAAC,EAAE,EAAE;IACrI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AACzB,CAAC,CAAA,CAAC,CAAA;AAEF,SAAsB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;QACnD,IAAI,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACzB,IAAI,GAAG,GAAG,eAAK,C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,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;QAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAA;QAEvC,2BAA2B;QAC3B,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QACpD,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAjND,sBAiNC"} \ No newline at end of file diff --git a/src/tests/controllers/mlBot.test.ts b/src/tests/controllers/mlBot.test.ts index ed1510642..b4b34459c 100644 --- a/src/tests/controllers/mlBot.test.ts +++ b/src/tests/controllers/mlBot.test.ts @@ -89,7 +89,7 @@ export async function mlBot(t, index1, index2, index3) { const botTextResponse = '
This is a response from test ml-bot server built in sphinx-stack
' const botImageResponse = - '
' + '
' await sleep(8000) const botReply4 = (await getCheckBotMsg( t, diff --git a/testing/stack/alice.json b/testing/stack/alice.json index c5277d571..7a5487c96 100644 --- a/testing/stack/alice.json +++ b/testing/stack/alice.json @@ -13,6 +13,6 @@ "tribes_insecure": true, "public_url": "127.0.0.1:3001", "connect_ui": true, - "host_name": "https://3377-105-112-235-209.ngrok-free.app" + "host_name": "http://localhost:3001" } } From 94216d2ef5f78b5f3100ae2ba01199522588ed16 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Sat, 26 Aug 2023 00:25:37 +0100 Subject: [PATCH 71/93] update: send attachemmnt in test --- dist/src/builtin/ml.js | 6 ++++++ dist/src/builtin/ml.js.map | 2 +- dist/src/tests/controllers/mlBot.test.js | 6 ++++-- dist/src/tests/controllers/mlBot.test.js.map | 2 +- dist/src/tests/utils/msg/sendImage.js | 14 ++++++++++++-- dist/src/tests/utils/msg/sendImage.js.map | 2 +- src/builtin/ml.ts | 6 ++++++ src/tests/controllers/mlBot.test.ts | 12 +++++++++--- src/tests/utils/msg/sendImage.ts | 15 +++++++++++++-- testing/stack/dave-cln.json | 2 +- 10 files changed, 54 insertions(+), 13 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index be4d34dda..d850d374f 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -62,6 +62,12 @@ function init() { } } let imageBase64 = ''; + // let imageUrl = '' + if (message.reply_id) { + //Look for original message + //Decrypt message + //Check if message has img tag + } if (message.type === constants_1.default.message_types.attachment) { const blob = yield (0, ml_1.getAttachmentBlob)(message.media_token, message.media_key, message.media_type, tribe); imageBase64 = blob.toString('base64'); diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 72727fc02..3d10e4aba 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCASmB;AACnB,4CAAuD;AACvD,4CAAoC;AAEpC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QA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AS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AAzKD,oBAyKC"} \ No newline at end of file diff --git a/dist/src/tests/controllers/mlBot.test.js b/dist/src/tests/controllers/mlBot.test.js index 52fd123c9..b075ccdd7 100644 --- a/dist/src/tests/controllers/mlBot.test.js +++ b/dist/src/tests/controllers/mlBot.test.js @@ -17,6 +17,7 @@ const save_1 = require("../utils/save"); const msg_1 = require("../utils/msg"); const nodes_1 = require("../nodes"); const get_1 = require("../utils/get"); +const base64images_1 = require("../utils/base64images"); /* npx ava src/tests/controllers/mlBot.test.ts --verbose --serial --timeout=2m */ @@ -129,13 +130,14 @@ function mlBot(t, index1, index2, index3) { t.true(checkNode6, 'VIRTUALNODE1 SHOULD NOT SEE ALICE Message'); //VirtualNode1 send message in tribe const text9 = (0, helpers_1.randomText)(); - const virtualNodeImageMsg = yield (0, msg_1.sendTribeMessage)(t, virtualNode1, tribe, `@${model2} ${text9}`); + const imageSent = yield (0, msg_1.sendImage)(t, virtualNode1, alice, base64images_1.greenSquare, tribe, 0, '', `@${model2} ${text9}`); + t.true(!!imageSent, 'message should have been sent'); yield (0, helpers_1.sleep)(8000); const botReply9 = (yield (0, get_1.getCheckBotMsg)(t, virtualNode1, botAlias, tribe, 2)); const botResponse4 = (0, msg_1.decryptMessage)(virtualNode1, botReply9); t.true(botResponse4 === botImageResponse); //Bob Node Should not See VirtualNode Message - const checkNode7 = yield (0, get_1.shouldNotGetNewMsgs)(t, bob, virtualNodeImageMsg.uuid); + const checkNode7 = yield (0, get_1.shouldNotGetNewMsgs)(t, bob, imageSent.uuid); t.true(checkNode7, 'BOB SHOULD NOT SEE VirtualNode Message'); //BOB LEAVES TRIBE let left2 = yield (0, del_1.leaveTribe)(t, bob, tribe); diff --git a/dist/src/tests/controllers/mlBot.test.js.map b/dist/src/tests/controllers/mlBot.test.js.map index bb1a4b3da..9dce8bad8 100644 --- a/dist/src/tests/controllers/mlBot.test.js.map +++ b/dist/src/tests/controllers/mlBot.test.js.map @@ -1 +1 @@ -{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAoD;AACpD,sCAAsD;AACtD,wCAAsD;AACtD,sCAA+D;AAC/D,oCAA4B;AAC5B,sCAAkE;AAGlE;;EAEE;AAEF,IAAA,aAAI,EAAC,oHAAoH,EAAE,CAAO,CAAC,EAAE,EAAE;IACrI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AACzB,CAAC,CAAA,CAAC,CAAA;AAEF,SAAsB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;QACnD,IAAI,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACzB,IAAI,GAAG,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACvB,IAAI,YAAY,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QAChC,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,gCAAgC,CAAC,CAAA;QAExD,OAAO,CAAC,GAAG,CACT,yCAAyC,KAAK,CAAC,KAAK,QAAQ,GAAG,CAAC,KAAK,QAAQ,YAAY,CAAC,KAAK,EAAE,CAClG,CAAA;QAED,uBAAuB;QACvB,IAAI,KAAK,GAAG,MAAM,IAAA,kBAAW,EAAC,CA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CACF,CAAY,CAAA;QACb,MAAM,YAAY,GAAG,IAAA,oBAAc,EAAC,YAAY,EAAE,SAAS,CAAC,CAAA;QAC5D,CAAC,CAAC,IAAI,CAAC,YAAY,KAAK,gBAAgB,CAAC,CAAA;QAEzC,6CAA6C;QAC7C,MAAM,UAAU,GAAG,MAAM,IAAA,yBAAmB,EAAC,CAAC,EAAE,GAAG,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAA;QAC9E,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,wCAAwC,CAAC,CAAA;QAE5D,kBAAkB;QAClB,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;QAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAA;QAEvC,2BAA2B;QAC3B,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QACpD,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAjND,sBAiNC"} \ No newline at end of file +{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAoD;AACpD,sCAAsD;AACtD,wCAAsD;AACtD,sCAA0E;AAC1E,oCAA4B;AAC5B,sCAAkE;AAElE,wDAAmD;AAEnD;;EAEE;AAEF,IAAA,aAAI,EAAC,oHAAoH,EAAE,CAAO,CAAC,EAAE,EAAE;IACrI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAA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C,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QACpD,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAtND,sBAsNC"} \ No newline at end of file diff --git a/dist/src/tests/utils/msg/sendImage.js b/dist/src/tests/utils/msg/sendImage.js index f4a77e0df..6eabca528 100644 --- a/dist/src/tests/utils/msg/sendImage.js +++ b/dist/src/tests/utils/msg/sendImage.js @@ -19,7 +19,8 @@ const helpers_1 = require("../helpers"); const get_1 = require("../get"); const helpers_2 = require("../helpers"); const config_1 = require("../../config"); -function sendImage(t, node1, node2, image, tribe, price, thread_uuid) { +const rsa = require("../../../crypto/rsa"); +function sendImage(t, node1, node2, image, tribe, price, thread_uuid, text) { return __awaiter(this, void 0, void 0, function* () { //NODE1 SENDS AN IMAGE TO NODE2 var token = yield (0, helpers_2.getToken)(t, node1); @@ -28,6 +29,14 @@ function sendImage(t, node1, node2, image, tribe, price, thread_uuid) { let typ = 'image/jpg'; let filename = 'Image.jpg'; let isPublic = false; + let encryptedText = ''; + let remoteText = ''; + if (text) { + encryptedText = rsa.encrypt(node1.contact_key, text); + } + if (tribe && text) { + remoteText = rsa.encrypt(tribe.group_key, text); + } const upload = yield (0, meme_1.uploadMeme)(fileBase64, typ, host, token, filename, isPublic); t.true(typeof upload === 'object', 'meme should have been uploaded'); t.true(typeof upload.media_key === 'string', 'upload should have media key'); @@ -75,10 +84,11 @@ function sendImage(t, node1, node2, image, tribe, price, thread_uuid) { muid: upload.muid, media_key_map: mediaKeyMap, media_type: 'image/jpg', - text: '', + text: encryptedText || '', amount: 0, price: 0 || price, thread_uuid, + remote_text_map: { chat: remoteText } || '', }; //send message from node1 to node2 const img = yield http.post(node1.external_ip + '/attachment', (0, helpers_2.makeArgs)(node1, i)); diff --git a/dist/src/tests/utils/msg/sendImage.js.map b/dist/src/tests/utils/msg/sendImage.js.map index 091669748..50d2169d1 100644 --- a/dist/src/tests/utils/msg/sendImage.js.map +++ b/dist/src/tests/utils/msg/sendImage.js.map @@ -1 +1 @@ -{"version":3,"file":"sendImage.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/sendImage.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA8B;AAC9B,iCAAgC;AAChC,yCAAwC;AACxC,gDAAkD;AAClD,8CAAuD;AACvD,wCAAkC;AAClC,gCAOe;AACf,wCAA0E;AAG1E,yCAAqC;AAIrC,SAAsB,SAAS,CAC7B,CAA4B,EAC5B,KAAiB,EACjB,KAAiB,EACjB,KAAa,EACb,KAAmB,EACnB,KAAc,EACd,WAAoB;;QAEpB,+BAA+B;QAE/B,IAAI,KAAK,GAAG,MAAM,IAAA,kBAAQ,EAAC,CAAC,EAAE,KAAK,CAAC,CAAA;QACpC,IAAI,IAAI,GAAG,eAAM,CAAC,QAAQ,CAAA;QAC1B,IAAI,UAAU,GAAG,wBAAwB,GAAG,KAAK,CAAA;QACjD,IAAI,GAAG,GAAG,WAAW,CAAA;QACrB,IAAI,QAAQ,GAAG,WAAW,CAAA;QAC1B,IAAI,QAAQ,GAAG,KAAK,CAAA;QAEpB,MAAM,MAAM,GAAG,MAAM,IAAA,iBAAU,EAC7B,UAAU,EACV,GAAG,EACH,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,CACT,CAAA;QACD,CAAC,CAAC,IAAI,CAAC,OAAO,MAAM,KAAK,QAAQ,EAAE,gCAAgC,CAAC,CAAA;QACpE,CAAC,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC,SAAS,KAAK,QAAQ,EAAE,8BAA8B,CAAC,CAAA;QAC5E,CAAC,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC,IAAI,KAAK,QA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E,EAAE;YAC7C,MAAM,EAAE,KAAK;SACd,CAAC,CAAA;QAEF,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,KAAK,QAAQ,EAAE,mBAAmB,CAAC,CAAA;QACrD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAA;QAChC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAA;QAE5C,uDAAuD;QACvD,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC,CAAA;QAEvE,qCAAqC;QACrC,8BAA8B;QAC9B,8BAA8B;QAC9B,4DAA4D;QAC5D,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAK,EAAE,qBAAqB,CAAC,CAAA;QAE/D,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AA9LD,8BA8LC"} \ No newline at end of file +{"version":3,"file":"sendImage.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/sendImage.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA8B;AAC9B,iCAAgC;AAChC,yCAAwC;AACxC,gDAAkD;AAClD,8CAAuD;AACvD,wCAAkC;AAClC,gCAOe;AACf,wCAA0E;AAG1E,yCAAqC;AACrC,2CAA0C;AAI1C,SAAsB,SAAS,CAC7B,CAA4B,EAC5B,KAAiB,EACjB,KAAiB,EACjB,KAAa,EACb,KAAmB,EACnB,KAAc,EACd,WAAoB,EACpB,IAAa;;QAEb,+BAA+B;QAE/B,IAAI,KAAK,GAAG,MAAM,IAAA,kBAAQ,EAAC,CAAC,EAAE,KAAK,CAAC,CAAA;QACpC,IAAI,IAAI,GAAG,eAAM,CAAC,QAAQ,CAAA;QAC1B,IAAI,UAAU,GAAG,wBAAwB,GAAG,KAAK,CAAA;QACjD,IAAI,GAAG,GAAG,WAAW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A;QAEvE,qCAAqC;QACrC,8BAA8B;QAC9B,8BAA8B;QAC9B,4DAA4D;QAC5D,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAK,EAAE,qBAAqB,CAAC,CAAA;QAE/D,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAxMD,8BAwMC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index d7199a55d..725b45d1e 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -71,6 +71,12 @@ export function init() { } } let imageBase64 = '' + // let imageUrl = '' + if (message.reply_id) { + //Look for original message + //Decrypt message + //Check if message has img tag + } if (message.type === constants.message_types.attachment) { const blob = await getAttachmentBlob( message.media_token!, diff --git a/src/tests/controllers/mlBot.test.ts b/src/tests/controllers/mlBot.test.ts index b4b34459c..45b629f1b 100644 --- a/src/tests/controllers/mlBot.test.ts +++ b/src/tests/controllers/mlBot.test.ts @@ -2,10 +2,11 @@ import test from 'ava' import { randomText, sleep } from '../utils/helpers' import { deleteTribe, leaveTribe } from '../utils/del' import { createTribe, joinTribe } from '../utils/save' -import { sendTribeMessage, decryptMessage } from '../utils/msg' +import { sendTribeMessage, decryptMessage, sendImage } from '../utils/msg' import nodes from '../nodes' import { getCheckBotMsg, shouldNotGetNewMsgs } from '../utils/get' import { Message } from '../types' +import { greenSquare } from '../utils/base64images' /* npx ava src/tests/controllers/mlBot.test.ts --verbose --serial --timeout=2m @@ -191,12 +192,17 @@ export async function mlBot(t, index1, index2, index3) { //VirtualNode1 send message in tribe const text9 = randomText() - const virtualNodeImageMsg = await sendTribeMessage( + const imageSent = await sendImage( t, virtualNode1, + alice, + greenSquare, tribe, + 0, + '', `@${model2} ${text9}` ) + t.true(!!imageSent, 'message should have been sent') await sleep(8000) const botReply9 = (await getCheckBotMsg( @@ -210,7 +216,7 @@ export async function mlBot(t, index1, index2, index3) { t.true(botResponse4 === botImageResponse) //Bob Node Should not See VirtualNode Message - const checkNode7 = await shouldNotGetNewMsgs(t, bob, virtualNodeImageMsg.uuid) + const checkNode7 = await shouldNotGetNewMsgs(t, bob, imageSent.uuid) t.true(checkNode7, 'BOB SHOULD NOT SEE VirtualNode Message') //BOB LEAVES TRIBE diff --git a/src/tests/utils/msg/sendImage.ts b/src/tests/utils/msg/sendImage.ts index 5eb9ba713..3e3651e77 100644 --- a/src/tests/utils/msg/sendImage.ts +++ b/src/tests/utils/msg/sendImage.ts @@ -17,6 +17,7 @@ import { arraysEqual, getToken, makeArgs, memeProtocol } from '../helpers' import { NodeConfig } from '../../types' import { Contact, Chat } from '../../types' import { config } from '../../config' +import * as rsa from '../../../crypto/rsa' interface Context {} @@ -27,7 +28,8 @@ export async function sendImage( image: string, tribe?: Chat | null, price?: Number, - thread_uuid?: string + thread_uuid?: string, + text?: string ) { //NODE1 SENDS AN IMAGE TO NODE2 @@ -37,6 +39,14 @@ export async function sendImage( let typ = 'image/jpg' let filename = 'Image.jpg' let isPublic = false + let encryptedText = '' + let remoteText = '' + if (text) { + encryptedText = rsa.encrypt(node1.contact_key, text) + } + if (tribe && text) { + remoteText = rsa.encrypt(tribe.group_key, text) + } const upload = await uploadMeme( fileBase64, @@ -93,10 +103,11 @@ export async function sendImage( muid: upload.muid, media_key_map: mediaKeyMap, media_type: 'image/jpg', - text: '', + text: encryptedText || '', amount: 0, price: 0 || price, thread_uuid, + remote_text_map: { chat: remoteText } || '', } //send message from node1 to node2 diff --git a/testing/stack/dave-cln.json b/testing/stack/dave-cln.json index aaa6e8888..6b430aaa8 100644 --- a/testing/stack/dave-cln.json +++ b/testing/stack/dave-cln.json @@ -22,7 +22,7 @@ "tribes_mqtt_port": "1883", "tribes_insecure": true, "public_url": "127.0.0.1:3004", - "media_host": "localhost:5555", + "media_host": "memes.sphinx.chat", "connect_ui": true, "logging_level": "debug", "mqtt_host": "127.0.0.1", From edc38408ef1a0b46b98865ecb103c3fae3288de8 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 28 Aug 2023 13:49:29 +0100 Subject: [PATCH 72/93] added display logs --- .github/workflows/cln_proxy_integration_test.yml | 6 ++++++ .github/workflows/integration_test.yml | 6 ++++++ testing/stack/alice.json | 2 +- testing/stack/bob.json | 2 +- testing/stack/dave-cln.json | 2 +- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 96f0e5de4..912a73488 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -107,3 +107,9 @@ jobs: - name: Run tests working-directory: ./relay run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m + continue-on-error: true + - name: Display Logs + run: | + docker logs alice.sphinx + docker logs bob.sphinx + docker logs dave.sphinx diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index f0f668728..8737bbcfc 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -107,3 +107,9 @@ jobs: - name: Run tests working-directory: ./relay run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m + continue-on-error: true + - name: Display Logs + run: | + docker logs alice.sphinx + docker logs bob.sphinx + docker logs dave.sphinx diff --git a/testing/stack/alice.json b/testing/stack/alice.json index 7a5487c96..9f1af4483 100644 --- a/testing/stack/alice.json +++ b/testing/stack/alice.json @@ -7,7 +7,7 @@ "macaroon_location": "/Users/oluwatobibamidele/Desktop/work/sphinx/sphinx-stack/lnd/alice/.lnd/data/chain/bitcoin/regtest/admin.macaroon", "node_http_protocol": "http", "node_http_port": "3001", - "media_host": "memes.sphinx.chat", + "media_host": "localhost:5555", "tribes_host": "localhost:13000", "tribes_mqtt_port": "1883", "tribes_insecure": true, diff --git a/testing/stack/bob.json b/testing/stack/bob.json index eeffc5199..fb9ff3253 100644 --- a/testing/stack/bob.json +++ b/testing/stack/bob.json @@ -7,7 +7,7 @@ "macaroon_location": "/Users/oluwatobibamidele/Desktop/work/sphinx/sphinx-stack/lnd/bob/.lnd/data/chain/bitcoin/regtest/admin.macaroon", "node_http_protocol": "http", "node_http_port": "3002", - "media_host": "memes.sphinx.chat", + "media_host": "localhost:5555", "tribes_host": "localhost:13000", "tribes_mqtt_port": "1883", "tribes_insecure": true, diff --git a/testing/stack/dave-cln.json b/testing/stack/dave-cln.json index 6b430aaa8..aaa6e8888 100644 --- a/testing/stack/dave-cln.json +++ b/testing/stack/dave-cln.json @@ -22,7 +22,7 @@ "tribes_mqtt_port": "1883", "tribes_insecure": true, "public_url": "127.0.0.1:3004", - "media_host": "memes.sphinx.chat", + "media_host": "localhost:5555", "connect_ui": true, "logging_level": "debug", "mqtt_host": "127.0.0.1", From 3cce9db7783095c8e248ea5f84e624e69090b232 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 28 Aug 2023 14:57:55 +0100 Subject: [PATCH 73/93] update: changed meme host to internal server --- dist/src/tests/config.js | 2 +- dist/src/tests/config.js.map | 2 +- dist/src/tests/utils/msg/sendImage.js | 2 +- dist/src/tests/utils/msg/sendImage.js.map | 2 +- src/tests/config.ts | 2 +- src/tests/utils/msg/sendImage.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/src/tests/config.js b/dist/src/tests/config.js index c9c406185..aef653310 100644 --- a/dist/src/tests/config.js +++ b/dist/src/tests/config.js @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.config = void 0; exports.config = { iterate: true, - memeHost: 'localhost:5555', + memeHost: 'meme.sphinx:5555', tribeHost: 'localhost:13000', tribeHostInternal: 'tribes.sphinx:13000', allowedFee: 4, diff --git a/dist/src/tests/config.js.map b/dist/src/tests/config.js.map index 3cee18f94..e5ebde253 100644 --- a/dist/src/tests/config.js.map +++ b/dist/src/tests/config.js.map @@ -1 +1 @@ -{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/tests/config.ts"],"names":[],"mappings":";AAAA,0CAA0C;;;AAE7B,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,iBAAiB;IAC5B,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,CAAC;IACb,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,gBAAgB;IAC1B,gBAAgB,EAAE,kBAAkB;CACrC,CAAA"} \ No newline at end of file +{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/tests/config.ts"],"names":[],"mappings":";AAAA,0CAA0C;;;AAE7B,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,iBAAiB;IAC5B,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,CAAC;IACb,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,gBAAgB;IAC1B,gBAAgB,EAAE,kBAAkB;CACrC,CAAA"} \ No newline at end of file diff --git a/dist/src/tests/utils/msg/sendImage.js b/dist/src/tests/utils/msg/sendImage.js index 6eabca528..e33d16620 100644 --- a/dist/src/tests/utils/msg/sendImage.js +++ b/dist/src/tests/utils/msg/sendImage.js @@ -24,7 +24,7 @@ function sendImage(t, node1, node2, image, tribe, price, thread_uuid, text) { return __awaiter(this, void 0, void 0, function* () { //NODE1 SENDS AN IMAGE TO NODE2 var token = yield (0, helpers_2.getToken)(t, node1); - let host = config_1.config.memeHost; + let host = config_1.config.memeHost; // Change this in config to localhost:5555 when running on local let fileBase64 = 'data:image/jpg;base64,' + image; let typ = 'image/jpg'; let filename = 'Image.jpg'; diff --git a/dist/src/tests/utils/msg/sendImage.js.map b/dist/src/tests/utils/msg/sendImage.js.map index 50d2169d1..f02363cd4 100644 --- a/dist/src/tests/utils/msg/sendImage.js.map +++ b/dist/src/tests/utils/msg/sendImage.js.map @@ -1 +1 @@ -{"version":3,"file":"sendImage.js","sourceRoot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KAAK,QAAQ,EAAE,wBAAwB,CAAC,CAAA;QAE3D,MAAM,IAAI,GAAG,MAAM,IAAA,oBAAK,EAAC,GAAG,EAAE;YAC5B,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE;YAC7C,MAAM,EAAE,KAAK;SACd,CAAC,CAAA;QAEF,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,KAAK,QAAQ,EAAE,mBAAmB,CAAC,CAAA;QACrD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAA;QAChC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAA;QAE5C,uDAAuD;QACvD,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC,CAAA;QAEvE,qCAAqC;QACrC,8BAA8B;QAC9B,8BAA8B;QAC9B,4DAA4D;QAC5D,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAK,EAAE,qBAAqB,CAAC,CAAA;QAE/D,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAxMD,8BAwMC"} \ No newline at end of file +{"version":3,"file":"sendImage.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/sendImage.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA8B;AAC9B,iCAAgC;AAChC,yCAAwC;AACxC,gDAAkD;AAClD,8CAAuD;AACvD,wCAAkC;AAClC,gCAOe;AACf,wCAA0E;AAG1E,yCAAqC;AACrC,2CAA0C;AAI1C,SAAsB,SAAS,CAC7B,CAA4B,EAC5B,KAAiB,EACjB,KAAiB,EACjB,KAAa,EACb,KAAmB,EACnB,KAAc,EACd,WAAoB,EACpB,IAAa;;QAEb,+BAA+B;QAE/B,IAAI,KAAK,GAAG,MAAM,IAAA,kBAAQ,EAAC,CAAC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,MAAM,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAA;QAE5C,uDAAuD;QACvD,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC,CAAA;QAEvE,qCAAqC;QACrC,8BAA8B;QAC9B,8BAA8B;QAC9B,4DAA4D;QAC5D,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAK,EAAE,qBAAqB,CAAC,CAAA;QAE/D,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAxMD,8BAwMC"} \ No newline at end of file diff --git a/src/tests/config.ts b/src/tests/config.ts index dcc5e7888..7c2ac4184 100644 --- a/src/tests/config.ts +++ b/src/tests/config.ts @@ -2,7 +2,7 @@ export const config = { iterate: true, - memeHost: 'localhost:5555', + memeHost: 'meme.sphinx:5555', // Change this to localhost:5555 when running on local tribeHost: 'localhost:13000', tribeHostInternal: 'tribes.sphinx:13000', allowedFee: 4, diff --git a/src/tests/utils/msg/sendImage.ts b/src/tests/utils/msg/sendImage.ts index 3e3651e77..4032fad8f 100644 --- a/src/tests/utils/msg/sendImage.ts +++ b/src/tests/utils/msg/sendImage.ts @@ -34,7 +34,7 @@ export async function sendImage( //NODE1 SENDS AN IMAGE TO NODE2 var token = await getToken(t, node1) - let host = config.memeHost + let host = config.memeHost // Change this in config to localhost:5555 when running on local let fileBase64 = 'data:image/jpg;base64,' + image let typ = 'image/jpg' let filename = 'Image.jpg' From 94563e7648225c6e930aa206f342f285f02875da Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 28 Aug 2023 15:24:08 +0100 Subject: [PATCH 74/93] update: update meme protol for http --- dist/src/tests/electronjs/meme.js | 2 +- dist/src/tests/electronjs/meme.js.map | 2 +- dist/src/tests/utils/helpers.js | 2 +- dist/src/tests/utils/helpers.js.map | 2 +- src/tests/electronjs/meme.ts | 3 ++- src/tests/utils/helpers.ts | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dist/src/tests/electronjs/meme.js b/dist/src/tests/electronjs/meme.js index 2b28ef399..e53a13db3 100644 --- a/dist/src/tests/electronjs/meme.js +++ b/dist/src/tests/electronjs/meme.js @@ -37,7 +37,7 @@ function uploadMeme(fileBase64, typ, host, token, filename, isPublic) { }); const formHeaders = form.getHeaders(); let protocol = 'https'; - if (host.includes('localhost')) + if (host.includes('localhost') || host.includes('meme.sphinx')) protocol = 'http'; const resp = yield (0, node_fetch_1.default)(`${protocol}://${host}/${isPublic ? 'public' : 'file'}`, { method: 'POST', diff --git a/dist/src/tests/electronjs/meme.js.map b/dist/src/tests/electronjs/meme.js.map index 2fc1bb3d9..725aef21d 100644 --- a/dist/src/tests/electronjs/meme.js.map +++ b/dist/src/tests/electronjs/meme.js.map @@ -1 +1 @@ -{"version":3,"file":"meme.js","sourceRoot":"","sources":["../../../../src/tests/electronjs/meme.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgC;AAChC,mCAAoC;AACpC,6CAAqC;AACrC,2CAA8B;AAC9B,sCAAqC;AAErC,SAAe,UAAU,CAAC,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ;;QACxE,IAAI;YACF,IAAI,MAAM,GAAG,YAAY,CAAC,UAAU,CAAC,CAAA;YAErC,IAAI,cAAc,CAAA;YAClB,IAAI,MAAM,GAAG,EAAE,CAAA;YACf,IAAI,QAAQ,EAAE;gBACZ,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;aACrC;iBAAM;gBACL,MAAM,GAAG,IAAA,oBAAW,EAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;gBACxC,MAAM,YAAY,GAAG,IAAA,qBAAO,EAAC,MAAM,EAAE,MAAM,CAAC,CAAA;gBAC5C,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,E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ils/helpers.js index 6b5c65366..5abb86794 100644 --- a/dist/src/tests/utils/helpers.js +++ b/dist/src/tests/utils/helpers.js @@ -120,7 +120,7 @@ function getToken(t, node) { exports.getToken = getToken; function memeProtocol(host) { let p = 'https'; - if (host.includes('localhost')) + if (host.includes('localhost') || host.includes('meme.sphinx')) p = 'http'; return p; } diff --git a/dist/src/tests/utils/helpers.js.map b/dist/src/tests/utils/helpers.js.map index 83338b296..b0de5930e 100644 --- a/dist/src/tests/utils/helpers.js.map +++ b/dist/src/tests/utils/helpers.js.map @@ -1 +1 @@ -{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../../../src/tests/utils/helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAiC;AACjC,wCAAuC;AACvC,iCAAgC;AAEhC,sCAAkC;AAClC,0CAAyC;AAElC,MAAM,QAAQ,GAAG,CACtB,IAAgB,EAChB,OAAoB,EAAE,EACtB,OAAQ,EACK,EAAE;IACf,MAAM,WAAW,GAAG,MAAM,EAAE,CAAC,IAAI,EAAE,CAAA;IACnC,MAAM,OAAO,GAAG,EAAE,CAAA;IAClB,IAAI,OAAO,IAAI,OAAO,CAAC,WAAW,EAAE;QAClC,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAA;QACpC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,WAAW,CAAA;QACjD,MAAM,OAAO,GAAG,GAAG,MAAM,IAAI,IAAI,IAAI,OAAO,EAAE,CAAA;QAC9C,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAA;QAC9C,OAAO,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAA;KACxB;IACD,IAAI,OAAO,IAAI,OAAO,CAAC,iBAAiB,EAAE;QACxC,OAAO,CAAC,mBAAmB,CAAC,GAAG,GAAG,CAAC,OAAO,CACxC,IAAI,C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O,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAA;IAC1D,CAAC;CAAA;AAFD,sBAEC;AAED,SAAgB,YAAY;IAC1B,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAA;IAC5D,OAAO,KAAK,CAAA;AACd,CAAC;AAHD,oCAGC;AAED,SAAgB,WAAW,CAAC,GAAG,EAAE,IAAI;IACnC,OAAO;QACL,OAAO,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE;QACzB,IAAI;KACL,CAAA;AACH,CAAC;AALD,kCAKC;AAED,SAAsB,mBAAmB,CACvC,CAAC,EACD,IAAgB,EAChB,QAAgB;;QAEhB,MAAM,CAAC,GAAG;YACR,QAAQ;SACT,CAAA;QACD,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CACvB,IAAI,CAAC,WAAW,GAAG,wBAAwB,EAC3C,IAAA,gBAAQ,EAAC,IAAI,EAAE,CAAC,CAAC,CAClB,CAAA;QAED,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,yCAAyC,CAAC,CAAA;QAE5D,OAAO,CAAC,CAAA;IACV,CAAC;CAAA;AAhBD,kDAgBC"} \ No newline at end of file diff --git a/src/tests/electronjs/meme.ts b/src/tests/electronjs/meme.ts index d9088b11b..757d800c9 100644 --- a/src/tests/electronjs/meme.ts +++ b/src/tests/electronjs/meme.ts @@ -26,7 +26,8 @@ async function uploadMeme(fileBase64, typ, host, token, filename, isPublic) { }) const formHeaders = form.getHeaders() let protocol = 'https' - if (host.includes('localhost')) protocol = 'http' + if (host.includes('localhost') || host.includes('meme.sphinx')) + protocol = 'http' const resp = await fetch( `${protocol}://${host}/${isPublic ? 'public' : 'file'}`, { diff --git a/src/tests/utils/helpers.ts b/src/tests/utils/helpers.ts index 1ba6412ca..9c53ef051 100644 --- a/src/tests/utils/helpers.ts +++ b/src/tests/utils/helpers.ts @@ -124,7 +124,7 @@ export async function getToken(t, node) { export function memeProtocol(host) { let p = 'https' - if (host.includes('localhost')) p = 'http' + if (host.includes('localhost') || host.includes('meme.sphinx')) p = 'http' return p } From 6b2a7d2f454ddd4db8a64f00a66299b0b642a662 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 28 Aug 2023 15:53:49 +0100 Subject: [PATCH 75/93] update: added meme to the log --- .github/workflows/cln_proxy_integration_test.yml | 1 + .github/workflows/integration_test.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 912a73488..779b8d414 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -113,3 +113,4 @@ jobs: docker logs alice.sphinx docker logs bob.sphinx docker logs dave.sphinx + docker logs meme.sphinx diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 8737bbcfc..4c72544a3 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -113,3 +113,4 @@ jobs: docker logs alice.sphinx docker logs bob.sphinx docker logs dave.sphinx + docker logs meme.sphinx From c6741772393a47cc0d9f8189f506265a0b6eeb03 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 28 Aug 2023 16:16:54 +0100 Subject: [PATCH 76/93] update: add docker list --- .github/workflows/cln_proxy_integration_test.yml | 1 + .github/workflows/integration_test.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 779b8d414..a4876929f 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -114,3 +114,4 @@ jobs: docker logs bob.sphinx docker logs dave.sphinx docker logs meme.sphinx + docker ps diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 4c72544a3..29afc2225 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -114,3 +114,4 @@ jobs: docker logs bob.sphinx docker logs dave.sphinx docker logs meme.sphinx + docker ps From a07a14b3d81145ea5b899ba2a9ba5801996ab8bc Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 28 Aug 2023 17:11:00 +0100 Subject: [PATCH 77/93] update: changed media_host to localhost and posited stack to a new branch --- .github/workflows/cln_proxy_integration_test.yml | 2 +- .github/workflows/integration_test.yml | 2 +- dist/src/tests/config.js | 2 +- dist/src/tests/config.js.map | 2 +- dist/src/tests/utils/msg/sendImage.js | 2 +- dist/src/tests/utils/msg/sendImage.js.map | 2 +- src/tests/config.ts | 2 +- src/tests/utils/msg/sendImage.ts | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index a4876929f..a5253618d 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone https://github.com/stakwork/sphinx-stack.git stack + git -b update/add_media clone https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 29afc2225..18e9c055c 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone https://github.com/stakwork/sphinx-stack.git stack + git clone -b update/add_media https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | diff --git a/dist/src/tests/config.js b/dist/src/tests/config.js index aef653310..c9c406185 100644 --- a/dist/src/tests/config.js +++ b/dist/src/tests/config.js @@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.config = void 0; exports.config = { iterate: true, - memeHost: 'meme.sphinx:5555', + memeHost: 'localhost:5555', tribeHost: 'localhost:13000', tribeHostInternal: 'tribes.sphinx:13000', allowedFee: 4, diff --git a/dist/src/tests/config.js.map b/dist/src/tests/config.js.map index e5ebde253..3cee18f94 100644 --- a/dist/src/tests/config.js.map +++ b/dist/src/tests/config.js.map @@ -1 +1 @@ -{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/tests/config.ts"],"names":[],"mappings":";AAAA,0CAA0C;;;AAE7B,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,iBAAiB;IAC5B,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,CAAC;IACb,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,gBAAgB;IAC1B,gBAAgB,EAAE,kBAAkB;CACrC,CAAA"} \ No newline at end of file +{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/tests/config.ts"],"names":[],"mappings":";AAAA,0CAA0C;;;AAE7B,QAAA,MAAM,GAAG;IACpB,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,gBAAgB;IAC1B,SAAS,EAAE,iBAAiB;IAC5B,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,CAAC;IACb,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,gBAAgB;IAC1B,gBAAgB,EAAE,kBAAkB;CACrC,CAAA"} \ No newline at end of file diff --git a/dist/src/tests/utils/msg/sendImage.js b/dist/src/tests/utils/msg/sendImage.js index e33d16620..6eabca528 100644 --- a/dist/src/tests/utils/msg/sendImage.js +++ b/dist/src/tests/utils/msg/sendImage.js @@ -24,7 +24,7 @@ function sendImage(t, node1, node2, image, tribe, price, thread_uuid, text) { return __awaiter(this, void 0, void 0, function* () { //NODE1 SENDS AN IMAGE TO NODE2 var token = yield (0, helpers_2.getToken)(t, node1); - let host = config_1.config.memeHost; // Change this in config to localhost:5555 when running on local + let host = config_1.config.memeHost; let fileBase64 = 'data:image/jpg;base64,' + image; let typ = 'image/jpg'; let filename = 'Image.jpg'; diff --git a/dist/src/tests/utils/msg/sendImage.js.map b/dist/src/tests/utils/msg/sendImage.js.map index f02363cd4..50d2169d1 100644 --- a/dist/src/tests/utils/msg/sendImage.js.map +++ b/dist/src/tests/utils/msg/sendImage.js.map @@ -1 +1 @@ -{"version":3,"file":"sendImage.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/sendImage.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,2CAA8B;AAC9B,iCAAgC;AAChC,yCAAwC;AACxC,gDAAkD;AAClD,8CAAuD;AACvD,wCAAkC;AAClC,gCAOe;AACf,wCAA0E;AAG1E,yCAAqC;AACrC,2CAA0C;AAI1C,SAAsB,SAAS,CAC7B,CAA4B,EAC5B,KAAiB,EACjB,KAAiB,EACjB,KAAa,EACb,KAAmB,EACnB,KAAc,EACd,WAAoB,EACpB,IAAa;;QAEb,+BAA+B;QAE/B,IAAI,KAAK,GAAG,MAAM,IAAA,kBAAQ,EAAC,CAAC,EAAE,KAAK,CAAC,CAAA;QACpC,IAAI,IAAI,GAAG,eAAM,CAAC,QAAQ,CAAA,CAAC,gEAAgE;QAC3F,IAAI,UAAU,GAAG,wBAAwB,GAAG,KAAK,CAAA;QACjD,IAAI,GAAG,GAAG,WAAW,CAAA;QACrB,IAAI,QAAQ,GAAG,WAAW,CAAA;QAC1B,IAAI,QAAQ,GAAG,KAAK,CAAA;QACpB,IAAI,aAAa,GAAG,EAAE,CAAA;QACtB,IAAI,UAAU,GAAG,EAAE,CAAA;QACnB,IAAI,IAAI,EAAE;YACR,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;SACrD;QACD,IAAI,KAAK,IAAI,IAAI,EAAE;YACjB,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,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AC,GAAG,EAAE;YAC5B,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE;YAC7C,MAAM,EAAE,KAAK;SACd,CAAC,CAAA;QAEF,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,KAAK,QAAQ,EAAE,mBAAmB,CAAC,CAAA;QACrD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,EAAE,CAAA;QAChC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,mBAAmB,CAAC,CAAA;QAE5C,uDAAuD;QACvD,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC,CAAA;QAEvE,qCAAqC;QACrC,8BAA8B;QAC9B,8BAA8B;QAC9B,4DAA4D;QAC5D,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,KAAK,EAAE,qBAAqB,CAAC,CAAA;QAE/D,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAxMD,8BAwMC"} \ No newline at end of file diff --git a/src/tests/config.ts b/src/tests/config.ts index 7c2ac4184..dcc5e7888 100644 --- a/src/tests/config.ts +++ b/src/tests/config.ts @@ -2,7 +2,7 @@ export const config = { iterate: true, - memeHost: 'meme.sphinx:5555', // Change this to localhost:5555 when running on local + memeHost: 'localhost:5555', tribeHost: 'localhost:13000', tribeHostInternal: 'tribes.sphinx:13000', allowedFee: 4, diff --git a/src/tests/utils/msg/sendImage.ts b/src/tests/utils/msg/sendImage.ts index 4032fad8f..3e3651e77 100644 --- a/src/tests/utils/msg/sendImage.ts +++ b/src/tests/utils/msg/sendImage.ts @@ -34,7 +34,7 @@ export async function sendImage( //NODE1 SENDS AN IMAGE TO NODE2 var token = await getToken(t, node1) - let host = config.memeHost // Change this in config to localhost:5555 when running on local + let host = config.memeHost let fileBase64 = 'data:image/jpg;base64,' + image let typ = 'image/jpg' let filename = 'Image.jpg' From fac5a10a2552acd0c81689eb804a903c7692b45f Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 28 Aug 2023 17:23:01 +0100 Subject: [PATCH 78/93] fix: error --- .github/workflows/cln_proxy_integration_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index a5253618d..c1e289cfc 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git -b update/add_media clone https://github.com/stakwork/sphinx-stack.git stack + git clone -b update/add_media https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | From 038fad72688303a9baec69099523ad40bc8b78be Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 28 Aug 2023 18:54:55 +0100 Subject: [PATCH 79/93] update: added check for meme.sphinx to change protocol to http --- dist/src/network/modify.js | 2 +- dist/src/network/modify.js.map | 2 +- src/network/modify.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/src/network/modify.js b/dist/src/network/modify.js index 00992510f..a6e4e3939 100644 --- a/dist/src/network/modify.js +++ b/dist/src/network/modify.js @@ -191,7 +191,7 @@ function downloadAndUploadAndSaveReturningTermsAndKey(payload, chat, sender, own // console.log('[modify] terms.host', terms.host) // console.log('[modify] mt', mt) let protocol = 'https'; - if (terms.host.includes('localhost')) + if (terms.host.includes('localhost') || terms.host.includes('meme.sphinx')) protocol = 'http'; const r = yield (0, node_fetch_1.default)(`${protocol}://${terms.host}/file/${mt}`, { headers: { Authorization: `Bearer ${token}` }, diff --git a/dist/src/network/modify.js.map b/dist/src/network/modify.js.map index da6ab6959..2363a0c90 100644 --- a/dist/src/network/modify.js.map +++ b/dist/src/network/modify.js.map @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AC,CAAA;QACF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;IACzC,CAAC;CAAA;AA5FD,oGA4FC"} \ No newline at end of file +{"version":3,"file":"modify.js","sourceRoot":"","sources":["../../../src/network/modify.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAgC;AAChC,2CAA8B;AAC9B,sCAAqC;AACrC,yCAAwC;AACxC,wCAAoD;AACpD,qCAAoC;AACpC,sCAAqC;AACrC,sCAQkB;AAClB,4CAAoC;AACpC,4CAA8C;AAC9C,wCAAkC;AAClC,iCAAoC;AAIpC,MAAM,QAAQ,GAAG,mBAAS,CAAC,aAAa,CAAA;AAExC,SAAsB,4BAA4B,CAChD,OAAgB,EAChB,IAAU,EACV,MAAe,EACf,KAAc;;QAEd,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,UAAU;YAAE,OAAO,OAAO,CAAA;QACxD,IAAI;YACF,MAAM,GAAG,GAAG,MAAM,4CAA4C,CAC5D,OAAO,EACP,IAAI,EACJ,MAAM,EACN,KAAK,CACN,CAAA;YACD,OAAO,WAAW,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA,CAAC,4BAA4B;SAC9D;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,KAAK,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAA;YACzC,OAAO,OAAO,CAAA;SACf;IACH,CAAC;CAAA;AAnBD,oEAmBC;AAED,SAAgB,WAAW,CACzB,IAAsB,EACtB,KAA8B;IAE9B,OAAO,gCACF,IAAI,KACP,OAAO,kCACF,IAAI,CAAC,OAAO,GACZ,KAAK,IAEA,CAAA;AACd,CAAC;AAXD,kCAWC;AAED,kBAAkB;AAClB,SAAsB,0BAA0B,CAC9C,OAAY,EACZ,IAAgB,EAChB,SAAkB,EAClB,KAAoB;;QAEpB,MAAM,MAAM,GAAG,KAAK,CAAC,EAAE,CAAA;QACvB,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ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I,CAAC;YACvD,QAAQ,EAAE,CAAC;YACX,MAAM,EAAE,MAAM,CAAC,EAAE;YACjB,SAAS,EAAE,IAAI;YACf,YAAY,EAAE,MAAM;YACpB,SAAS,EAAE,GAAG;YACd,MAAM;SACP,CAAC,CAAA;QACF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;IACzC,CAAC;CAAA;AA7FD,oGA6FC"} \ No newline at end of file diff --git a/src/network/modify.ts b/src/network/modify.ts index 1b7e8f601..3bb417519 100644 --- a/src/network/modify.ts +++ b/src/network/modify.ts @@ -248,7 +248,8 @@ export async function downloadAndUploadAndSaveReturningTermsAndKey( // console.log('[modify] terms.host', terms.host) // console.log('[modify] mt', mt) let protocol = 'https' - if (terms.host.includes('localhost')) protocol = 'http' + if (terms.host.includes('localhost') || terms.host.includes('meme.sphinx')) + protocol = 'http' const r = await fetch(`${protocol}://${terms.host}/file/${mt}`, { headers: { Authorization: `Bearer ${token}` }, }) From 5b3c73b8c7182c4025877ee25fb7579f2cbc5f8d Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 28 Aug 2023 19:15:06 +0100 Subject: [PATCH 80/93] update: and meme.sphinx to ml utill --- dist/src/builtin/utill/ml.js | 2 +- dist/src/builtin/utill/ml.js.map | 2 +- src/builtin/utill/ml.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/src/builtin/utill/ml.js b/dist/src/builtin/utill/ml.js index 73fe6e76b..0facaa318 100644 --- a/dist/src/builtin/utill/ml.js +++ b/dist/src/builtin/utill/ml.js @@ -183,7 +183,7 @@ function getAttachmentBlob(mediaToken, mediaKey, mediaType, tribe) { return; const token = yield meme.lazyToken(ownerPubkey, terms.host); let protocol = 'https'; - if (terms.host.includes('localhost')) + if (terms.host.includes('localhost') || terms.host.includes('meme.sphinx')) protocol = 'http'; const r = yield (0, node_fetch_1.default)(`${protocol}://${terms.host}/file/${mediaToken}`, { headers: { Authorization: `Bearer ${token}` }, diff --git a/dist/src/builtin/utill/ml.js.map b/dist/src/builtin/utill/ml.js.map index 4eb6d839a..f14e769bf 100644 --- a/dist/src/builtin/utill/ml.js.map +++ b/dist/src/builtin/utill/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAC1D,2CAA4C;AAC5C,2CAA8B;AAC9B,yCAAwC;AACxC,yCAAwC;AAUxC,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI;YACF,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE;gBACjB,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,EACvD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;gBACD,OAAM;aACP;YACD,MAAM,GAAG,GAAG,MAAM,IAAA,eAAO,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA;YAC/C,IAAI,OAAO,GAA8B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAA;YACrE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;YAC1B,IAAI,CAAC,IAAI,EAAE;gBACT,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,sBAAsB,EACtB,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,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AAE,QAAQ,CAAC,CAAA;QAClE,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AAzBD,8CAyBC"} \ No newline at end of file +{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../../src/builtin/utill/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAA8C;AAC9C,qCAAoC;AACpC,8BAAkC;AAClC,+CAA0D;AAC1D,2CAA4C;AAC5C,2CAA8B;AAC9B,yCAAwC;AACxC,yCAAwC;AAUxC,SAAsB,MAAM,CAC1B,OAAe,EACf,SAAiB,EACjB,KAAiB,EACjB,UAA0B,EAC1B,MAAgB;;QAEhB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QACrB,IAAI;YACF,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE;gBACjB,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,gCAAgC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,EACvD,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;gBACD,OAAM;aACP;YACD,MAAM,GAAG,GAAG,MAAM,IAAA,eAAO,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA;YAC/C,IAAI,OAAO,GAA8B,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI,CAAC,CAAA;YACrE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;YAC1B,IAAI,CAAC,IAAI,EAAE;gBACT,MAAM,IAAA,mBAAW,EACf,OAAO,EACP,sBAAsB,EACtB,SAAS,EACT,KAAK,CAAC,EAAE,EACR,UAAU,EACV,GAAG,CACJ,CAAA;gBACD,OAAM;aACP;YACD,OAAO,CAAC,IAAI,CAA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AAQ,CAAC,CAAA;QAClE,OAAO,MAAM,CAAA;IACf,CAAC;CAAA;AA1BD,8CA0BC"} \ No newline at end of file diff --git a/src/builtin/utill/ml.ts b/src/builtin/utill/ml.ts index f74a4c88b..fd5e5fe6e 100644 --- a/src/builtin/utill/ml.ts +++ b/src/builtin/utill/ml.ts @@ -322,7 +322,8 @@ export async function getAttachmentBlob( const token = await meme.lazyToken(ownerPubkey, terms.host) let protocol = 'https' - if (terms.host.includes('localhost')) protocol = 'http' + if (terms.host.includes('localhost') || terms.host.includes('meme.sphinx')) + protocol = 'http' const r = await fetch(`${protocol}://${terms.host}/file/${mediaToken}`, { headers: { Authorization: `Bearer ${token}` }, }) From 41d9a51e442a742bf605548ae7c26d5f44bad603 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Mon, 28 Aug 2023 20:48:56 +0100 Subject: [PATCH 81/93] update: removed logs used for debugging on github pipeline --- .github/workflows/cln_proxy_integration_test.yml | 8 -------- .github/workflows/integration_test.yml | 8 -------- 2 files changed, 16 deletions(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index c1e289cfc..8df7c41ea 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -107,11 +107,3 @@ jobs: - name: Run tests working-directory: ./relay run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m - continue-on-error: true - - name: Display Logs - run: | - docker logs alice.sphinx - docker logs bob.sphinx - docker logs dave.sphinx - docker logs meme.sphinx - docker ps diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 18e9c055c..35cb51b2d 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -107,11 +107,3 @@ jobs: - name: Run tests working-directory: ./relay run: npx ava src/tests/controllers/${{matrix.test-name}}.test.ts --verbose --serial --timeout=2m - continue-on-error: true - - name: Display Logs - run: | - docker logs alice.sphinx - docker logs bob.sphinx - docker logs dave.sphinx - docker logs meme.sphinx - docker ps From dcbdd6a33edcdeb3a10eb4acc1aba9e4b903e1d9 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 29 Aug 2023 00:13:08 +0100 Subject: [PATCH 82/93] update: added a special condition for the ML Bot for reply_uuid --- dist/src/network/intercept.js | 4 ++++ dist/src/network/intercept.js.map | 2 +- src/network/intercept.ts | 4 ++++ testing/stack/alice.json | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/dist/src/network/intercept.js b/dist/src/network/intercept.js index eb801e25c..2c93e8309 100644 --- a/dist/src/network/intercept.js +++ b/dist/src/network/intercept.js @@ -16,6 +16,7 @@ const builtin_1 = require("../builtin"); const bots_1 = require("../controllers/bots"); const constants_1 = require("../constants"); const logger_1 = require("../utils/logger"); +const ml_1 = require("../builtin/ml"); /* default show or not restrictions (be able to toggle, or dont show chat) @@ -63,6 +64,9 @@ function isBotMsg(m, sentByMe, sender, forwardedFromContactId) { }, })); if (ogBotMsg && ogBotMsg.senderAlias) { + if (ogBotMsg.senderAlias === ml_1.ML_BOTNAME) { + ogBotMsg.senderAlias = ml_1.ML_PREFIX.substring(1); + } const ogSenderBot = (yield models_1.models.ChatBot.findOne({ where: { chatId: chat.id, diff --git a/dist/src/network/intercept.js.map b/dist/src/network/intercept.js.map index 1df680f9a..ae0dd5429 100644 --- a/dist/src/network/intercept.js.map +++ b/dist/src/network/intercept.js.map @@ -1 +1 @@ -{"version":3,"file":"intercept.js","sourceRoot":"","sources":["../../../src/network/intercept.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAuC;AACvC,sCAAkE;AAElE,wCAA2C;AAC3C,8CAAoE;AACpE,4CAAoC;AACpC,4CAAuD;AAGvD;;;EAGE;AAEF,kDAAkD;AAClD,SAAsB,QAAQ,CAC5B,CAAS,EACT,QAAiB,EACjB,MAAM,EACN,sBAA+B;;QAE/B,MAAM,MAAM,GAAW,MAAM,CAAC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CAAC,KAAK,CAAC,kCAAkC,CAAC,CAAA;YACtD,OAAO,KAAK,CAAA;SACb;QACD,QAAQ,UAAU,CAAC,OAAO,EAAE;YAC1B,KAAK,mBAAS,CAAC,SAAS,CAAC,OAAO;gBAC9B,IAAA,wBAAc,EAAC,GAAG,EAAE,UAAU,CAAC,SAAS,CAAC,CAAA;gBACzC,OAAO,IAAI,CAAA;YACb,KAAK,mBAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;gBAC9B,MAAM,GAAG,GAAQ,CAAC,MAAM,eAAM,CAAC,GAAG,CAAC,OAAO,CAAC;oBACzC,KAAK,EAAE;wBACL,IAAI,EAAE,UAAU,CAAC,OAAO;wBACxB,MAAM;qBACP;iBACF,CAAC,CAAQ,CAAA;gBACV,OAAO,IAAA,sBAAe,EAAC,GAAG,EAAE,GAAG,EAAE,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;aAC7D;YACD,KAAK,mBAAS,CAAC,SAAS,CAAC,MAAM;gBAC7B,OAAO,IAAA,oBAAa,EAAC,GAAG,EAAE,UAAU,EAAE,MAAM,CAAC,CAAA;YAC/C;gBACE,OAAO,KAAK,CAAA;SACf;IACH,CAAC;CAAA;AAED,SAAe,YAAY,CAAC,KAAK,EAAE,QAAQ;;QACzC,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACjD,MAAM,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;SAC3C;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"intercept.js","sourceRoot":"","sources":["../../../src/network/intercept.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAuC;AACvC,sCAAkE;AAElE,wCAA2C;AAC3C,8CAAoE;AACpE,4CAAoC;AACpC,4CAAuD;AAEvD,sCAAqD;AAErD;;;EAGE;AAEF,kDAAkD;AAClD,SA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\ No newline at end of file diff --git a/src/network/intercept.ts b/src/network/intercept.ts index f998d00c4..d76f3a40c 100644 --- a/src/network/intercept.ts +++ b/src/network/intercept.ts @@ -6,6 +6,7 @@ import { keysendBotCmd, postToBotServer } from '../controllers/bots' import constants from '../constants' import { logging, sphinxLogger } from '../utils/logger' import { BotMsg } from './interfaces' +import { ML_PREFIX, ML_BOTNAME } from '../builtin/ml' /* default show or not @@ -63,6 +64,9 @@ export async function isBotMsg( }, })) as Message if (ogBotMsg && ogBotMsg.senderAlias) { + if (ogBotMsg.senderAlias === ML_BOTNAME) { + ogBotMsg.senderAlias = ML_PREFIX.substring(1) + } const ogSenderBot: ChatRecord = (await models.ChatBot.findOne({ where: { chatId: chat.id, diff --git a/testing/stack/alice.json b/testing/stack/alice.json index 9f1af4483..58fc63542 100644 --- a/testing/stack/alice.json +++ b/testing/stack/alice.json @@ -13,6 +13,6 @@ "tribes_insecure": true, "public_url": "127.0.0.1:3001", "connect_ui": true, - "host_name": "http://localhost:3001" + "host_name": "https://19cd-105-112-233-141.ngrok-free.app" } } From 30ff87d7783bfcd98d2aef745729818909b7beb4 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 29 Aug 2023 19:05:49 +0100 Subject: [PATCH 83/93] update: parsed replied message to get image url --- dist/src/builtin/ml.js | 14 ++++++++++++-- dist/src/builtin/ml.js.map | 2 +- dist/src/builtin/utill/ml.js | 11 ++++++++++- dist/src/builtin/utill/ml.js.map | 2 +- .../tests/controllers/boostPayment.test.js | 18 +++++++++--------- .../controllers/boostPayment.test.js.map | 2 +- src/builtin/ml.ts | 19 ++++++++++++++++++- src/builtin/utill/ml.ts | 11 ++++++++++- src/tests/controllers/boostPayment.test.ts | 18 +++++++++--------- 9 files changed, 71 insertions(+), 26 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index d850d374f..d2580bcb2 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -19,6 +19,7 @@ const node_fetch_1 = require("node-fetch"); const ml_1 = require("./utill/ml"); const logger_1 = require("../utils/logger"); const constants_1 = require("../constants"); +const rsa = require("../crypto/rsa"); const config = (0, config_1.loadConfig)(); const msg_types = Sphinx.MSG_TYPE; let initted = false; @@ -32,7 +33,7 @@ function init() { const client = new Sphinx.Client(); client.login('_', botapi_1.finalAction); client.on(msg_types.MESSAGE, (message) => __awaiter(this, void 0, void 0, function* () { - var _a; + var _a, _b; if (((_a = message.author) === null || _a === void 0 ? void 0 : _a.bot) !== exports.ML_PREFIX) return; const isAdmin = message.member.roles.find((role) => role.name === 'Admin'); @@ -62,12 +63,21 @@ function init() { } } let imageBase64 = ''; - // let imageUrl = '' + let imageUrl = ''; if (message.reply_id) { //Look for original message + const ogMessage = yield (0, ml_1.getOgMessage)(message.reply_id, tribe.tenant); + const parsedRemoteMessage = JSON.parse(ogMessage.remoteMessageContent); //Decrypt message + const decryptedMessage = rsa.decrypt(tribe.groupPrivateKey, parsedRemoteMessage.chat); //Check if message has img tag + const splittedMessage = decryptedMessage.split(' { + return (await models.Message.findOne({ + where: { uuid, tenant }, + })) as MessageRecord +} diff --git a/src/tests/controllers/boostPayment.test.ts b/src/tests/controllers/boostPayment.test.ts index 40025e60e..6a7c4f692 100644 --- a/src/tests/controllers/boostPayment.test.ts +++ b/src/tests/controllers/boostPayment.test.ts @@ -1,6 +1,6 @@ import test from 'ava' import { randomText } from '../utils/helpers' -import { deleteTribe, leaveTribe } from '../utils/del' +// import { deleteTribe, leaveTribe } from '../utils/del' import { createTribe, joinTribe } from '../utils/save' import { sendTribeMessageAndCheckDecryption, sendBoost } from '../utils/msg' import nodes from '../nodes' @@ -84,14 +84,14 @@ export async function boostPayment(t, index1, index2, index3) { t.true(boost3.success) //NODE2 LEAVES TRIBE - let left2 = await leaveTribe(t, node2, tribe) - t.true(left2, 'node2 should leave tribe') + // let left2 = await leaveTribe(t, node2, tribe) + // t.true(left2, 'node2 should leave tribe') - //NODE3 LEAVES TRIBE - let left3 = await leaveTribe(t, node3, tribe) - t.true(left3, 'node3 should leave tribe') + // //NODE3 LEAVES TRIBE + // let left3 = await leaveTribe(t, node3, tribe) + // t.true(left3, 'node3 should leave tribe') - //NODE1 DELETES TRIBE - let delTribe2 = await deleteTribe(t, node1, tribe) - t.true(delTribe2, 'node1 should delete tribe') + // //NODE1 DELETES TRIBE + // let delTribe2 = await deleteTribe(t, node1, tribe) + // t.true(delTribe2, 'node1 should delete tribe') } From d866a9893512147682efcc299f5c04ff7bef6cb4 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 29 Aug 2023 21:20:26 +0100 Subject: [PATCH 84/93] update: added image url to command --- dist/src/builtin/ml.js | 45 ++++++++++++------------------------- dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 46 +++++++++++++------------------------- testing/stack/alice.json | 4 ++-- 4 files changed, 33 insertions(+), 64 deletions(-) diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index d2580bcb2..76ca80ed5 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -77,7 +77,6 @@ function init() { imageUrl = secondSplitting[1]; } } - console.log(imageUrl); if (message.type === constants_1.default.message_types.attachment) { const blob = yield (0, ml_1.getAttachmentBlob)(message.media_token, message.media_key, message.media_type, tribe); imageBase64 = blob.toString('base64'); @@ -128,36 +127,20 @@ function init() { if (!host_name.startsWith('http')) { host_name = `https://${host_name}`; } - let j; - if (message.type === constants_1.default.message_types.attachment) { - const r = yield (0, node_fetch_1.default)(url, { - method: 'POST', - body: JSON.stringify({ - message: content.trim(), - image64: imageBase64, - webhook: `${host_name}/ml`, - }), - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - }); - j = yield r.json(); - } - else { - const r = yield (0, node_fetch_1.default)(url, { - method: 'POST', - body: JSON.stringify({ - message: content.trim(), - webhook: `${host_name}/ml`, - }), - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - }); - j = yield r.json(); - } + const r = yield (0, node_fetch_1.default)(url, { + method: 'POST', + body: JSON.stringify({ + message: content.trim(), + image64: imageBase64 || '', + image_url: imageUrl || '', + webhook: `${host_name}/ml`, + }), + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }); + let j = yield r.json(); if (!j.body) { (0, ml_1.mlBotResponse)('failed to process message (no body)', message); return; diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 7185f657f..2bf73cee2 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot":"","sources":["../../../src/builtin/ml.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoC;AACpC,kDAAmD;AACnD,sCAA6D;AAC7D,mCAAiC;AACjC,4CAA4C;AAC5C,2CAA8B;AAC9B,mCAUmB;AACnB,4CAAuD;AACvD,4CAAoC;AACpC,qCAAoC;AAEpC,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,MAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAA;AAEjC,IAAI,OAAO,GAAG,KAAK,CAAA;AAEN,QAAA,SAAS,GAAG,KAAK,CAAA;AAEjB,QAAA,UAAU,GAAG,GAAG,iBAAS,CAAC,SAAS,CAC9C,CAAC,EACD,CAAC,CACF,CAAC,WAAW,EAAE,GAAG,iBAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAEhC,QAAA,SAAS,GAA2C,EAAE,CAAA;AAEnE,SAAgB,IAAI;IAClB,IAAI,OAAO;QAAE,OAAM;IACnB,OAAO,GAAG,IAAI,CAAA;IAEd,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;IAClC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,oBAAW,CAAC,CAAA;IAE9B,MAAM,CAAC,EAAE,CAAC,SAAS,CAAC,OAAO,EAAE,CAAO,OAAuB,EAAE,EAAE;;QAC7D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AAC,CAAC,IAAI,CAAC,UAAU,CAAA;YAC5C,IAAI,CAAC,UAAU,EAAE;gBACf,IAAA,kBAAa,EAAC,2BAA2B,EAAE,OAAO,CAAC,CAAA;gBACnD,OAAM;aACP;YAED,iBAAS,CAAC,UAAU,CAAC,GAAG,UAAU,GAAW;gBAC3C,MAAM,KAAK,GAAG,IAAI,MAAM,CAAC,YAAY,EAAE;qBACpC,SAAS,CAAC,kBAAU,CAAC;qBACrB,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAA;gBAClD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE;oBACxB,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAA;iBAC1B;gBACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;oBACzB,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;iBACpB;gBACD,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;gBAC/B,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA1KD,oBA0KC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index bedea5174..777ed1f35 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -93,7 +93,7 @@ export function init() { imageUrl = secondSplitting[1] } } - console.log(imageUrl) + if (message.type === constants.message_types.attachment) { const blob = await getAttachmentBlob( message.media_token!, @@ -156,35 +156,21 @@ export function init() { if (!host_name.startsWith('http')) { host_name = `https://${host_name}` } - let j - if (message.type === constants.message_types.attachment) { - const r = await fetch(url, { - method: 'POST', - body: JSON.stringify({ - message: content.trim(), - image64: imageBase64, - webhook: `${host_name}/ml`, - }), - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - }) - j = await r.json() - } else { - const r = await fetch(url, { - method: 'POST', - body: JSON.stringify({ - message: content.trim(), - webhook: `${host_name}/ml`, - }), - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - }, - }) - j = await r.json() - } + + const r = await fetch(url, { + method: 'POST', + body: JSON.stringify({ + message: content.trim(), + image64: imageBase64 || '', + image_url: imageUrl || '', + webhook: `${host_name}/ml`, + }), + headers: { + Accept: 'application/json', + 'Content-Type': 'application/json', + }, + }) + let j = await r.json() if (!j.body) { mlBotResponse('failed to process message (no body)', message) diff --git a/testing/stack/alice.json b/testing/stack/alice.json index 58fc63542..f24f53a40 100644 --- a/testing/stack/alice.json +++ b/testing/stack/alice.json @@ -7,12 +7,12 @@ "macaroon_location": "/Users/oluwatobibamidele/Desktop/work/sphinx/sphinx-stack/lnd/alice/.lnd/data/chain/bitcoin/regtest/admin.macaroon", "node_http_protocol": "http", "node_http_port": "3001", - "media_host": "localhost:5555", + "media_host": "memes.sphinx.chat", "tribes_host": "localhost:13000", "tribes_mqtt_port": "1883", "tribes_insecure": true, "public_url": "127.0.0.1:3001", "connect_ui": true, - "host_name": "https://19cd-105-112-233-141.ngrok-free.app" + "host_name": "https://7bb5-105-112-235-249.ngrok-free.app" } } From 520db197818b08035419ffda45e065e372aa88df Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 29 Aug 2023 21:54:11 +0100 Subject: [PATCH 85/93] update: changed configs to default --- testing/stack/alice.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/stack/alice.json b/testing/stack/alice.json index f24f53a40..9f1af4483 100644 --- a/testing/stack/alice.json +++ b/testing/stack/alice.json @@ -7,12 +7,12 @@ "macaroon_location": "/Users/oluwatobibamidele/Desktop/work/sphinx/sphinx-stack/lnd/alice/.lnd/data/chain/bitcoin/regtest/admin.macaroon", "node_http_protocol": "http", "node_http_port": "3001", - "media_host": "memes.sphinx.chat", + "media_host": "localhost:5555", "tribes_host": "localhost:13000", "tribes_mqtt_port": "1883", "tribes_insecure": true, "public_url": "127.0.0.1:3001", "connect_ui": true, - "host_name": "https://7bb5-105-112-235-249.ngrok-free.app" + "host_name": "http://localhost:3001" } } From 759501e041eaaa855ba56d41102c0c588207be18 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 29 Aug 2023 23:09:02 +0100 Subject: [PATCH 86/93] update: added reply to bot to get image url to test --- dist/src/tests/controllers/mlBot.test.js | 17 +++++++++--- dist/src/tests/controllers/mlBot.test.js.map | 2 +- dist/src/tests/utils/msg/sendTribeMessage.js | 2 +- .../tests/utils/msg/sendTribeMessage.js.map | 2 +- src/tests/controllers/mlBot.test.ts | 26 ++++++++++++++++--- src/tests/utils/msg/sendTribeMessage.ts | 3 ++- 6 files changed, 40 insertions(+), 12 deletions(-) diff --git a/dist/src/tests/controllers/mlBot.test.js b/dist/src/tests/controllers/mlBot.test.js index b075ccdd7..f79131c5d 100644 --- a/dist/src/tests/controllers/mlBot.test.js +++ b/dist/src/tests/controllers/mlBot.test.js @@ -77,7 +77,7 @@ function mlBot(t, index1, index2, index3) { const bobMessage = yield (0, msg_1.sendTribeMessage)(t, bob, tribe, text4); const botTextResponse = '
This is a response from test ml-bot server built in sphinx-stack
'; const botImageResponse = '
'; - yield (0, helpers_1.sleep)(8000); + yield (0, helpers_1.sleep)(6000); const botReply4 = (yield (0, get_1.getCheckBotMsg)(t, bob, botAlias, tribe, 1)); const botResponse = (0, msg_1.decryptMessage)(bob, botReply4); t.true(botResponse === botTextResponse); @@ -87,7 +87,7 @@ function mlBot(t, index1, index2, index3) { //Bot sends Message in tribe const text5 = (0, helpers_1.randomText)(); const virtualNode1Message = yield (0, msg_1.sendTribeMessage)(t, virtualNode1, tribe, text5); - yield (0, helpers_1.sleep)(8000); + yield (0, helpers_1.sleep)(6000); const botReply5 = (yield (0, get_1.getCheckBotMsg)(t, bob, botAlias, tribe, 1)); const botResponse2 = (0, msg_1.decryptMessage)(bob, botReply5); t.true(botResponse2 === botTextResponse); @@ -118,7 +118,7 @@ function mlBot(t, index1, index2, index3) { //Alice sends Message in the tribe const text6 = (0, helpers_1.randomText)(); const aliceMsg = yield (0, msg_1.sendTribeMessage)(t, alice, tribe, `@${model2} ${text6}`); - yield (0, helpers_1.sleep)(8000); + yield (0, helpers_1.sleep)(6000); const botReply8 = (yield (0, get_1.getCheckBotMsg)(t, alice, botAlias, tribe, 10)); const botResponse3 = (0, msg_1.decryptMessage)(alice, botReply8); t.true(botResponse3 === botImageResponse); @@ -132,13 +132,22 @@ function mlBot(t, index1, index2, index3) { const text9 = (0, helpers_1.randomText)(); const imageSent = yield (0, msg_1.sendImage)(t, virtualNode1, alice, base64images_1.greenSquare, tribe, 0, '', `@${model2} ${text9}`); t.true(!!imageSent, 'message should have been sent'); - yield (0, helpers_1.sleep)(8000); + yield (0, helpers_1.sleep)(6000); const botReply9 = (yield (0, get_1.getCheckBotMsg)(t, virtualNode1, botAlias, tribe, 2)); const botResponse4 = (0, msg_1.decryptMessage)(virtualNode1, botReply9); t.true(botResponse4 === botImageResponse); //Bob Node Should not See VirtualNode Message const checkNode7 = yield (0, get_1.shouldNotGetNewMsgs)(t, bob, imageSent.uuid); t.true(checkNode7, 'BOB SHOULD NOT SEE VirtualNode Message'); + //VirtualNode sends reply bot response to get image URL + const text10 = (0, helpers_1.randomText)(); + yield (0, msg_1.sendTribeMessage)(t, virtualNode1, tribe, `@${model2} ${text10}`, { + reply_uuid: botReply9.uuid, + }); + yield (0, helpers_1.sleep)(6000); + const botReply10 = (yield (0, get_1.getCheckBotMsg)(t, virtualNode1, botAlias, tribe, 3)); + const botResponse8 = (0, msg_1.decryptMessage)(virtualNode1, botReply10); + t.true(botResponse8 === botImageResponse); //BOB LEAVES TRIBE let left2 = yield (0, del_1.leaveTribe)(t, bob, tribe); t.true(left2, 'bob should leave tribe'); diff --git a/dist/src/tests/controllers/mlBot.test.js.map b/dist/src/tests/controllers/mlBot.test.js.map index 9dce8bad8..f26af0c37 100644 --- a/dist/src/tests/controllers/mlBot.test.js.map +++ b/dist/src/tests/controllers/mlBot.test.js.map @@ -1 +1 @@ -{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAoD;AACpD,sCAAsD;AACtD,wCAAsD;AACtD,sCAA0E;AAC1E,oCAA4B;AAC5B,sCAAkE;AAElE,wDAAmD;AAEnD;;EAEE;AAEF,IAAA,aAAI,EAAC,oHAAoH,EAAE,CAAO,CAAC,EAAE,EAAE;IACrI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AACzB,CAAC,CAAA,CAAC,CAAA;AAEF,SAAsB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;;QACnD,IAAI,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACzB,IAAI,GAAG,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QACvB,IAAI,YAAY,GAAG,eAAK,CAAC,MAAM,CAAC,CAAA;QAChC,CAAC,CAAC,MAAM,CAAC,YAAY,EAAE,gCAAgC,CAAC,CAAA;QAExD,OAAO,CAAC,GAAG,CACT,yCAAyC,KAAK,CAAC,KAAK,QAAQ,GAAG,CAAC,KAAK,QAAQ,YAAY,CAAC,KAAK,EAAE,CAClG,CAAA;QAED,uBAAuB;QACvB,IAAI,KAAK,GAAG,MAAM,IAAA,kBAAW,EA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,CAAC,CAAA;QAEjB,MAAM,SAAS,GAAG,CAAC,MAAM,IAAA,oBAAc,EACrC,CAAC,EACD,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,CAAC,CACF,CAAY,CAAA;QACb,MAAM,YAAY,GAAG,IAAA,oBAAc,EAAC,YAAY,EAAE,SAAS,CAAC,CAAA;QAC5D,CAAC,CAAC,IAAI,CAAC,YAAY,KAAK,gBAAgB,CAAC,CAAA;QAEzC,6CAA6C;QAC7C,MAAM,UAAU,GAAG,MAAM,IAAA,yBAAmB,EAAC,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;QACpE,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,wCAAwC,CAAC,CAAA;QAE5D,kBAAkB;QAClB,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;QAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAA;QAEvC,2BAA2B;QAC3B,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QACpD,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAtND,sBAsNC"} \ No newline at end of file +{"version":3,"file":"mlBot.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/mlBot.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAsB;AACtB,8CAAoD;AACpD,sCAAsD;AACtD,wCAAsD;AACtD,sCAA0E;AAC1E,oCAA4B;AAC5B,sCAAkE;AAElE,wDAAmD;AAEn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EAAE,KAAK,EAAE,IAAI,MAAM,IAAI,MAAM,EAAE,EAAE;YACrE,UAAU,EAAE,SAAS,CAAC,IAAI;SAC3B,CAAC,CAAA;QAEF,MAAM,IAAA,eAAK,EAAC,IAAI,CAAC,CAAA;QAEjB,MAAM,UAAU,GAAG,CAAC,MAAM,IAAA,oBAAc,EACtC,CAAC,EACD,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,CAAC,CACF,CAAY,CAAA;QACb,MAAM,YAAY,GAAG,IAAA,oBAAc,EAAC,YAAY,EAAE,UAAU,CAAC,CAAA;QAC7D,CAAC,CAAC,IAAI,CAAC,YAAY,KAAK,gBAAgB,CAAC,CAAA;QAEzC,kBAAkB;QAClB,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAA;QAC3C,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAA;QAEvC,2BAA2B;QAC3B,IAAI,KAAK,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,YAAY,EAAE,KAAK,CAAC,CAAA;QACpD,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,iCAAiC,CAAC,CAAA;QAEhD,qBAAqB;QACrB,IAAI,SAAS,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAClD,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,2BAA2B,CAAC,CAAA;IAChD,CAAC;CAAA;AAxOD,sBAwOC"} \ No newline at end of file diff --git a/dist/src/tests/utils/msg/sendTribeMessage.js b/dist/src/tests/utils/msg/sendTribeMessage.js index 90ea74c14..73e3a50e7 100644 --- a/dist/src/tests/utils/msg/sendTribeMessage.js +++ b/dist/src/tests/utils/msg/sendTribeMessage.js @@ -34,7 +34,7 @@ function sendTribeMessage(t, node1, tribe, text, options) { amount: (options && options.amount) || 0, parent_id: (options && options.parent_id) || 0, thread_uuid: (options && options.thread_uuid) || '', - reply_uuid: '', + reply_uuid: (options && options.reply_uuid) || '', boost: false, }; //send message from node1 to node2 diff --git a/dist/src/tests/utils/msg/sendTribeMessage.js.map b/dist/src/tests/utils/msg/sendTribeMessage.js.map index 24a81fdb2..938abf2ef 100644 --- a/dist/src/tests/utils/msg/sendTribeMessage.js.map +++ b/dist/src/tests/utils/msg/sendTribeMessage.js.map @@ -1 +1 @@ -{"version":3,"file":"sendTribeMessage.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/sendTribeMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAgC;AAIhC,gCAAgC;AAEhC,wCAAqC;AAErC,2CAA0C;AAC1C,gCAA2C;AAQ3C,SAAsB,gBAAgB,CACpC,CAAa,EACb,KAAiB,EACjB,KAAW,EACX,IAAY,EACZ,OAA4B;;QAE5B,mCAAmC;QACnC,MAAM,YAAY,GAAG,MAAM,IAAA,aAAO,EAAC,CAAC,EAAE,KAAK,CAAC,CAAA;QAE5C,8CAA8C;QAC9C,MAAM,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;QAEjE,8CAA8C;QAC9C,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;QAErD,4CAA4C;QAC5C,MAAM,OAAO,GAAG,MAAM,IAAA,wBAAkB,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QACzD,CAAC,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK,QAAQ,EAAE,0BAA0B,CAAC,CAAA;QAE/D,MAAM,CAAC,GAAG;YACR,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,aAAa;YACnB,eAAe,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;YACrC,MAAM,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;YACxC,SAAS,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;YAC9C,WAAW,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE;YACnD,UAAU,EAAE,EAAE;YACd,KAAK,EAAE,KAAK;SACb,CAAA;QAED,kCAAkC;QAClC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CACzB,KAAK,CAAC,WAAW,GAAG,WAAW,EAC/B,IAAA,kBAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,CACnB,CAAA;QACD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,mCAAmC,CAAC,CAAA;QAExD,OAAO,GAAG,CAAC,QAAQ,CAAA;IACrB,CAAC;CAAA;AAxCD,4CAwCC"} \ No newline at end of file +{"version":3,"file":"sendTribeMessage.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/sendTribeMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iCAAgC;AAIhC,gCAAgC;AAEhC,wCAAqC;AAErC,2CAA0C;AAC1C,gCAA2C;AAS3C,SAAsB,gBAAgB,CACpC,CAAa,EACb,KAAiB,EACjB,KAAW,EACX,IAAY,EACZ,OAA4B;;QAE5B,mCAAmC;QACnC,MAAM,YAAY,GAAG,MAAM,IAAA,aAAO,EAAC,CAAC,EAAE,KAAK,CAAC,CAAA;QAE5C,8CAA8C;QAC9C,MAAM,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,WAAW,EAAE,IAAI,CAAC,CAAA;QAEjE,8CAA8C;QAC9C,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;QAErD,4CAA4C;QAC5C,MAAM,OAAO,GAAG,MAAM,IAAA,wBAAkB,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QACzD,CAAC,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK,QAAQ,EAAE,0BAA0B,CAAC,CAAA;QAE/D,MAAM,CAAC,GAAG;YACR,UAAU,EAAE,IAAI;YAChB,OAAO,EAAE,OAAO;YAChB,IAAI,EAAE,aAAa;YACnB,eAAe,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;YACrC,MAAM,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;YACxC,SAAS,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC;YAC9C,WAAW,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE;YACnD,UAAU,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE;YACjD,KAAK,EAAE,KAAK;SACb,CAAA;QAED,kCAAkC;QAClC,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,IAAI,CACzB,KAAK,CAAC,WAAW,GAAG,WAAW,EAC/B,IAAA,kBAAQ,EAAC,KAAK,EAAE,CAAC,CAAC,CACnB,CAAA;QACD,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,mCAAmC,CAAC,CAAA;QAExD,OAAO,GAAG,CAAC,QAAQ,CAAA;IACrB,CAAC;CAAA;AAxCD,4CAwCC"} \ No newline at end of file diff --git a/src/tests/controllers/mlBot.test.ts b/src/tests/controllers/mlBot.test.ts index 45b629f1b..15ea756d8 100644 --- a/src/tests/controllers/mlBot.test.ts +++ b/src/tests/controllers/mlBot.test.ts @@ -91,7 +91,7 @@ export async function mlBot(t, index1, index2, index3) { '
This is a response from test ml-bot server built in sphinx-stack
' const botImageResponse = '
' - await sleep(8000) + await sleep(6000) const botReply4 = (await getCheckBotMsg( t, bob, @@ -114,7 +114,7 @@ export async function mlBot(t, index1, index2, index3) { tribe, text5 ) - await sleep(8000) + await sleep(6000) const botReply5 = (await getCheckBotMsg( t, bob, @@ -170,7 +170,7 @@ export async function mlBot(t, index1, index2, index3) { `@${model2} ${text6}` ) - await sleep(8000) + await sleep(6000) const botReply8 = (await getCheckBotMsg( t, @@ -203,7 +203,7 @@ export async function mlBot(t, index1, index2, index3) { `@${model2} ${text9}` ) t.true(!!imageSent, 'message should have been sent') - await sleep(8000) + await sleep(6000) const botReply9 = (await getCheckBotMsg( t, @@ -219,6 +219,24 @@ export async function mlBot(t, index1, index2, index3) { const checkNode7 = await shouldNotGetNewMsgs(t, bob, imageSent.uuid) t.true(checkNode7, 'BOB SHOULD NOT SEE VirtualNode Message') + //VirtualNode sends reply bot response to get image URL + const text10 = randomText() + await sendTribeMessage(t, virtualNode1, tribe, `@${model2} ${text10}`, { + reply_uuid: botReply9.uuid, + }) + + await sleep(6000) + + const botReply10 = (await getCheckBotMsg( + t, + virtualNode1, + botAlias, + tribe, + 3 + )) as Message + const botResponse8 = decryptMessage(virtualNode1, botReply10) + t.true(botResponse8 === botImageResponse) + //BOB LEAVES TRIBE let left2 = await leaveTribe(t, bob, tribe) t.true(left2, 'bob should leave tribe') diff --git a/src/tests/utils/msg/sendTribeMessage.ts b/src/tests/utils/msg/sendTribeMessage.ts index 8c6721448..24c4eb3e0 100644 --- a/src/tests/utils/msg/sendTribeMessage.ts +++ b/src/tests/utils/msg/sendTribeMessage.ts @@ -13,6 +13,7 @@ interface SendMessageOptions { amount?: number parent_id?: number thread_uuid?: string + reply_uuid?: string } export async function sendTribeMessage( @@ -43,7 +44,7 @@ export async function sendTribeMessage( amount: (options && options.amount) || 0, parent_id: (options && options.parent_id) || 0, thread_uuid: (options && options.thread_uuid) || '', - reply_uuid: '', + reply_uuid: (options && options.reply_uuid) || '', boost: false, } From 97cd8a01ab09b57dd3634f720d8e9b1fefb59270 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 29 Aug 2023 23:09:57 +0100 Subject: [PATCH 87/93] update: removed stack branch --- .github/workflows/cln_proxy_integration_test.yml | 2 +- .github/workflows/integration_test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cln_proxy_integration_test.yml b/.github/workflows/cln_proxy_integration_test.yml index 8df7c41ea..96f0e5de4 100644 --- a/.github/workflows/cln_proxy_integration_test.yml +++ b/.github/workflows/cln_proxy_integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone -b update/add_media https://github.com/stakwork/sphinx-stack.git stack + git clone https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 35cb51b2d..f0f668728 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -71,7 +71,7 @@ jobs: npm install && npm run build && docker build -t sphinxlightning/sphinx-relay . - name: Checkout stack run: | - git clone -b update/add_media https://github.com/stakwork/sphinx-stack.git stack + git clone https://github.com/stakwork/sphinx-stack.git stack - name: give permissions working-directory: ./stack run: | From f02184f39a094db12c282de4cad730dca1c1ae8d Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 30 Aug 2023 18:13:56 +0100 Subject: [PATCH 88/93] update: ensured message is sent through lightning before returning a response to client --- dist/src/controllers/invoices.js | 4 +- dist/src/controllers/invoices.js.map | 2 +- dist/src/tests/utils/msg/payInvoice.js | 6 +- dist/src/tests/utils/msg/payInvoice.js.map | 2 +- src/controllers/invoices.ts | 6 +- src/tests/configs/nodes.json | 64 +++++++++++----------- src/tests/utils/msg/payInvoice.ts | 10 +--- 7 files changed, 41 insertions(+), 53 deletions(-) diff --git a/dist/src/controllers/invoices.js b/dist/src/controllers/invoices.js index c81ffeadf..3768b0bb6 100644 --- a/dist/src/controllers/invoices.js +++ b/dist/src/controllers/invoices.js @@ -194,8 +194,7 @@ const createInvoice = (req, res) => __awaiter(void 0, void 0, void 0, function* msg.expirationDate = new Date(expiry); } const message = (yield models_1.models.Message.create(msg)); - (0, res_1.success)(res, jsonUtils.messageToJson(message, chat)); - network.sendMessage({ + yield network.sendMessage({ chat: chat, sender: owner, type: constants_1.default.message_types.invoice, @@ -204,6 +203,7 @@ const createInvoice = (req, res) => __awaiter(void 0, void 0, void 0, function* invoice: message.paymentRequest, }, }); + (0, res_1.success)(res, jsonUtils.messageToJson(message, chat)); } } catch (err) { diff --git a/dist/src/controllers/invoices.js.map b/dist/src/controllers/invoices.js.map index 578e3d2de..dcf50d5e0 100644 --- a/dist/src/controllers/invoices.js.map +++ b/dist/src/controllers/invoices.js.map @@ -1 +1 @@ -{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/controllers/invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAmC;AACnC,wCAAuC;AAEvC,sCAA6D;AAC7D,+CAA8C;AAE9C,0CAAyC;AACzC,2CAA0C;AAC1C,4CAAsD;AACtD,sCAAqC;AACrC,gCAAyC;AACzC,sCAA+C;AAC/C,sCAAqC;AAErC,4CAAoC;AACpC,4CAA8C;AAG9C,mDAAkD;AAElD,SAAS,oBAAoB,CAAC,CAAS;IACrC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;IACpE,OAAO,CAAC,CAAA;AACV,CAAC;AAEM,MAAM,UAAU,GAAG,CAAO,GAAQ,EAAE,GAAa,EAAiB,EAAE;IACzE,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAW,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IAEnC,MAAM,eAAe,GAAG,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;IAEtE,IAAI,CAAC,eAAe,EAAE;QACpB,qBAAY,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAA;QAC9D,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E,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAA;AACrE,CAAC,CAAA,CAAA;AAtEY,QAAA,cAAc,kBAsE1B"} \ No newline at end of file +{"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/controllers/invoices.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAmC;AACnC,wCAAuC;AAEvC,sCAA6D;AAC7D,+CAA8C;AAE9C,0CAAyC;AACzC,2CAA0C;AAC1C,4CAAsD;AACtD,sCAAqC;AACrC,gCAAyC;AACzC,sCAA+C;AAC/C,sCAAqC;AAErC,4CAAoC;AACpC,4CAA8C;AAG9C,mDAAkD;AAElD,SAAS,oBAAoB,CAAC,CAAS;IACrC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;QAAE,OAAO,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;IACpE,OAAO,CAAC,CAAA;AACV,CAAC;AAEM,MAAM,UAAU,GAAG,CAAO,GAAQ,EAAE,GAAa,EAAiB,EAAE;IACzE,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAW,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IAEnC,MAAM,eAAe,GAAG,oBAAoB,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;IAEtE,IAAI,CAAC,eAAe,EAAE;QACpB,qBAAY,CAAC,KAAK,CAAC,0CAA0C,CAAC,CAAA;QAC9D,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;QACf,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,0BAA0B,EAAE,CAAC,CAAA;QAC/D,GAAG,CAAC,GAAG,EAAE,CAAA;QACT,OAAM;KACP;IACD,qBAAY,CAAC,IAAI,CAAC,iBAAiB,eAAe,EAAE,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I,CAAC,WAAW,GAAG,iBAAiB,CAAC;QACzD,IAAI,EAAE,IAAI,IAAI,CAAC,WAAW,CAAC;QAC3B,MAAM,EAAE,mBAAS,CAAC,QAAQ,CAAC,OAAO;QAClC,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,IAAI;QACf,YAAY,EAAE,YAAY;QAC1B,MAAM;KACP,CAAA;IACD,IAAI,MAAM;QAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAA;IAC/B,MAAM,OAAO,GAAG,SAAS,KAAK,mBAAS,CAAC,UAAU,CAAC,KAAK,CAAA;IACxD,IAAI,OAAO,EAAE;QACX,GAAG,CAAC,WAAW,GAAG,YAAY,CAAA;QAC9B,GAAG,CAAC,SAAS,GAAG,gBAAgB,CAAA;KACjC;IACD,MAAM,OAAO,GAAkB,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,MAAM,CACzD,GAAG,CACJ,CAAkB,CAAA;IACnB,qBAAY,CAAC,IAAI,CAAC,oCAAoC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAA;IAEnE,MAAM,CAAC,QAAQ,CACb;QACE,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC;KACzD,EACD,MAAM,CACP,CAAA;IAED,IAAA,sBAAgB,EAAC,IAAI,EAAE,GAAG,CAAC,WAAW,IAAI,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,CAAA;IAEzE,IAAA,gCAAgB,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAA;AACrE,CAAC,CAAA,CAAA;AAtEY,QAAA,cAAc,kBAsE1B"} \ No newline at end of file diff --git a/dist/src/tests/utils/msg/payInvoice.js b/dist/src/tests/utils/msg/payInvoice.js index f84a13618..e984c032b 100644 --- a/dist/src/tests/utils/msg/payInvoice.js +++ b/dist/src/tests/utils/msg/payInvoice.js @@ -21,10 +21,9 @@ const payInvoice = (t, sendingNode, receivingNode, amount, payment_request) => _ const receivingNodebeforeBalance = yield (0, get_1.getBalance)(t, receivingNode); const v = { payment_request }; const r = yield http.put(sendingNode.external_ip + '/invoices', (0, helpers_1.makeArgs)(sendingNode, v)); - console.log('-> payInvoice res', sendingNode.alias, r); t.true(r.success, 'Put method should have succeeded'); const paymentHash = r.response.payment_hash; - t.truthy(paymentHash, 'paymentHash should exist'); + t.truthy(paymentHash, `paymentHash should exist for ${sendingNode.alias}`); //wait for PUT method const paid = yield (0, get_1.getCheckNewPaidInvoice)(t, receivingNode, paymentHash); t.truthy(paid, 'receivingNode should see payment'); @@ -32,9 +31,6 @@ const payInvoice = (t, sendingNode, receivingNode, amount, payment_request) => _ const sendingNodeafterBalance = yield (0, get_1.getBalance)(t, sendingNode); //get receivingNode balance after payment const receivingNodeafterBalance = yield (0, get_1.getBalance)(t, receivingNode); - console.log('amount', amount); - console.log('NODE1 === ', sendingNodebeforeBalance - sendingNodeafterBalance); - console.log('NODE2 === ', receivingNodeafterBalance - receivingNodebeforeBalance); //check that sendingNode sent payment and receivingNode received payment based on balances //3 SAT ARE ADDED AS A MESSAGE FEE t.true(sendingNodebeforeBalance - sendingNodeafterBalance >= amount, 'sendingNode should have paid amount'); diff --git a/dist/src/tests/utils/msg/payInvoice.js.map b/dist/src/tests/utils/msg/payInvoice.js.map index 8a3e24483..996903b78 100644 --- a/dist/src/tests/utils/msg/payInvoice.js.map +++ b/dist/src/tests/utils/msg/payInvoice.js.map @@ -1 +1 @@ -{"version":3,"file":"payInvoice.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/payInvoice.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iCAAiC;AAEjC,gCAA2D;AAC3D,wCAAqC;AAE9B,MAAM,UAAU,GAAG,CACxB,CAAa,EACb,WAAuB,EACvB,aAAyB,EACzB,MAAc,EACd,eAAuB,EACL,EAAE;IACpB,sCAAs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,GAAG,0BAA0B,CACvD,CAAA;IAED,0FAA0F;IAC1F,kCAAkC;IAClC,CAAC,CAAC,IAAI,CACJ,wBAAwB,GAAG,uBAAuB,IAAI,MAAM,EAC5D,qCAAqC,CACtC,CAAA;IACD,CAAC,CAAC,IAAI,CACJ,0BAA0B,GAAG,yBAAyB,IAAI,MAAM,GAAG,CAAC,EACpE,2CAA2C,CAC5C,CAAA;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA,CAAA;AArDY,QAAA,UAAU,cAqDtB"} \ No newline at end of file +{"version":3,"file":"payInvoice.js","sourceRoot":"","sources":["../../../../../src/tests/utils/msg/payInvoice.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iCAAiC;AAEjC,gCAA2D;AAC3D,wCAAqC;AAE9B,MAAM,UAAU,GAAG,CACxB,CAAa,EACb,WAAuB,EACvB,aAAyB,EACzB,MAAc,EACd,eAAuB,EACL,EAAE;IACpB,sCAAsC;IAEtC,wCAAwC;IACxC,MAAM,wBAAwB,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,WAAW,CAAC,CAAA;IACjE,0CAA0C;IAC1C,MAAM,0BAA0B,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,aAAa,CAAC,CAAA;IAErE,MAAM,CAAC,GAAG,EAAE,eAAe,EAAE,CAAA;IAC7B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,GAAG,CACtB,WAAW,CAAC,WAAW,GAAG,WAAW,EACrC,IAAA,kBAAQ,EAAC,WAAW,EAAE,CAAC,CAAC,CACzB,CAAA;IAED,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE,kCAAkC,CAAC,CAAA;IACrD,MAAM,WAAW,GAAG,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAA;IAC3C,CAAC,CAAC,MAAM,CAAC,WAAW,EAAE,gCAAgC,WAAW,CAAC,KAAK,EAAE,CAAC,CAAA;IAE1E,qBAAqB;IACrB,MAAM,IAAI,GAAG,MAAM,IAAA,4BAAsB,EAAC,CAAC,EAAE,aAAa,EAAE,WAAW,CAAC,CAAA;IACxE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,kCAAkC,CAAC,CAAA;IAElD,uCAAuC;IACvC,MAAM,uBAAuB,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,WAAW,CAAC,CAAA;IAChE,yCAAyC;IACzC,MAAM,yBAAyB,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,aAAa,CAAC,CAAA;IAEpE,0FAA0F;IAC1F,kCAAkC;IAClC,CAAC,CAAC,IAAI,CACJ,wBAAwB,GAAG,uBAAuB,IAAI,MAAM,EAC5D,qCAAqC,CACtC,CAAA;IACD,CAAC,CAAC,IAAI,CACJ,0BAA0B,GAAG,yBAAyB,IAAI,MAAM,GAAG,CAAC,EACpE,2CAA2C,CAC5C,CAAA;IAED,OAAO,IAAI,CAAA;AACb,CAAC,CAAA,CAAA;AA7CY,QAAA,UAAU,cA6CtB"} \ No newline at end of file diff --git a/src/controllers/invoices.ts b/src/controllers/invoices.ts index f897d55f9..fd9d7b9c5 100644 --- a/src/controllers/invoices.ts +++ b/src/controllers/invoices.ts @@ -211,9 +211,7 @@ export const createInvoice = async (req: Req, res: Response): Promise => { msg )) as MessageRecord - success(res, jsonUtils.messageToJson(message, chat)) - - network.sendMessage({ + await network.sendMessage({ chat: chat as Partial, sender: owner, type: constants.message_types.invoice, @@ -222,6 +220,8 @@ export const createInvoice = async (req: Req, res: Response): Promise => { invoice: message.paymentRequest, }, }) + + success(res, jsonUtils.messageToJson(message, chat)) } } catch (err) { sphinxLogger.error(`addInvoice error: ${err}`) diff --git a/src/tests/configs/nodes.json b/src/tests/configs/nodes.json index 90f854830..6be00a488 100644 --- a/src/tests/configs/nodes.json +++ b/src/tests/configs/nodes.json @@ -4,11 +4,11 @@ "pubkey": "03a394d0ebf0d003124ab130c6b12b8b990a50a30a464354800a51981ba745bb07", "ip": "http://alice.sphinx:3001", "external_ip": "http://localhost:3001", - "authToken": "7gZg9fNFZrWfZ0LZdBUQ", - "transportToken": "MIIBCgKCAQEAmA/cRKjb+OqMN/xlP8lM1341PeeT+RAMa78lGdlVCHMBgZ76DSuA\n4l9pfDUjQzbaW353o4gTGIGoE6CCPYOjsE9GSv50zbzHxEo1PZM/XkLw3ak3XKPG\nTUoQPi4KxTq4w9+KyUBTjJYcdTWhlg3K14I2vb6XxdJg7whGhPEayVGOLP2d/r0V\nKLwYPzS0L646+RYzOViraLZe6OZqEayrkaojU5hhJZYk30jv/tPMps56HLyKeJZI\nxCg4uqdDRt3ktfFMRSI+P8J0MFSUi7VTzkVOStfW4jTsIhWz6wGcrbwd20Dd5gV9\nHaLiEdU1QOAsOj3VVNf+KTptlJBNlFKzYwIDAQAB", - "contact_key": "MIIBCgKCAQEAwbYFPfQ4H+b+cTuoBpNx4BGEgHJFkFmXPT4WgXYtDgDlDI/9FgGHbpfsFr0gyhJac7I5kwkSiucTrUKr2mAxXx92KZ5bBGR9DtpSS5OstKyD4Ywgif0sAWWuTySmhVtVSg/qaHQ/y5zeZoU7thWCquf4EEh6BfaHjWtNuEHHI0S59dAmza/MjsrDizoUOn8daX+1ub6AIC3rC75kDiRJDPGZZ5kQiLOH6uBzJU2MgtIfuCPGmvFhcwbp4LvOZ8zohzdMIybOAh0Xkskfkr8o15J2PdmK1tNK6N8G33L4w2BdyH5Gk346Fxg9AjjXWmcJWByM6DlhEvcleMnRQ5I7JwIDAQAB", - "privkey": "MIIEpAIBAAKCAQEAwbYFPfQ4H+b+cTuoBpNx4BGEgHJFkFmXPT4WgXYtDgDlDI/9FgGHbpfsFr0gyhJac7I5kwkSiucTrUKr2mAxXx92KZ5bBGR9DtpSS5OstKyD4Ywgif0sAWWuTySmhVtVSg/qaHQ/y5zeZoU7thWCquf4EEh6BfaHjWtNuEHHI0S59dAmza/MjsrDizoUOn8daX+1ub6AIC3rC75kDiRJDPGZZ5kQiLOH6uBzJU2MgtIfuC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reHAzLzRJSHV6OEk1Q3dTcldiZkZQL3lMb2J1OEZmaXAxZ0tFbW9jbXNpUitxMjQ0Q1RHNHQ4bkhhMEVnUC8zTklTK0hPYlRDOWpDM1NKM0ZnbjRNTG0vbjZjUlVzMUl1aHpLY3NNUVl2T1NidUhzT1JFeW4wT3g1Yi9wcXVJYjk3dktJTjdrTVhyaklaSTlRZkVBT294bGErWmQyTE12WENVUDJ1MFhYS0NsMVVXTHRWcVJXdFNaTEE3YkREWEhtNytkOUlXTDVnd3MrUkk1c1lNZ2o0czBjY04vc0JjdE52TnJYWlAwdVNnVjVIMUMyaVRuRVkwSGJqTzdvb1JTSWU5VHdYMGgyOGpkU2VXckNGb2tUUXVqQzVPd21Wa0QvOGM5aWxsQjFYQnNIZXJpNzZZUnVGVjRqLzNRZzEzS0VtOHplaG1DWFJVUVFiSFpMLzZucFovY2hXdm1MYlZMZ3ZZd1Evcz0=", "pin": "111111" }, { @@ -16,11 +16,11 @@ "pubkey": "02a38857848aca6b32ebcc3c85d07ee41354988f4f1e0b4e6ccd255eee6ed75b8d", "ip": "http://bob.sphinx:3002", "external_ip": "http://localhost:3002", - "authToken": "7P4qL2Xxobc1ZN76wyWf", - "transportToken": "MIIBCgKCAQEAwesSS0THuFdF54DizJfb72jtFFdtvmWl/Yzp1OAMkJrHvpPuXH6x\nkvZQ4oobPHJvqmzzagur0fLQgsE6SJGop1KUR7ga0iG0ysNbOt6sYDcNFLVa3PDR\na+biRqS5BPraEnVq/d8oLFc5wM/8n0NQHHAO86nqUUlHkeFnur3OLp1+8Q3fgRfg\nxsaPIsQYYi+ihdK20W20gnGsIHXitr+5wXPBqrp4vM3FnwoeicVMs/eROmkUzXgy\nrJ8qkOHEugzdi5DnocjrTexVRgtrRBTFgyNGgPWQSpYio5i4JkUEHsZQPZFr4ryJ\n9z1C29LAO9T94/U9gbmlr/xzil6LvkxKGwIDAQAB", - "contact_key": "MIIBCgKCAQEAtUwct6Fx6OlkjIih5jeH3wquZS44e+frQJ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xMmdJcz0=", "pin": "111111" }, { @@ -28,11 +28,11 @@ "pubkey": "0364c05cbcbb9612036cc66297445a88bcfc21941fd816e17a56b54b0b52ff02b9", "ip": "http://carol.sphinx:3003", "external_ip": "http://localhost:3003", - "authToken": "vPhLNeelF8BSdz+J31C9", - "transportToken": "MIIBCgKCAQEAqJi4ThRWxs2ViYeA8XIWt9tGriSCisa/RNzADfvLFsOOCnP4/G4l\nr64Rj5mvuRM1/sSPiJajzMJzoC4U3oEBnRh8M+rRrnzheN7oreFipprSmJ/NkCuy\ndHWdaFrJB6sHBIRMTl4UpeMiWNbPWgiEKZSjbfKHAAnKbIeGSRTCIH2pWDPnwJiV\ng63ibcp9P12gu/5Ahxk/IvX9OZoHn24cyUm9zCZ7lRqPY4uPVT75II+MpX+oJ+sW\nwjYIVzW8Dd5w0xtZJuGzYtLPVu5bPEFaSS42JGzHLfBNu2jSEmlmFK87jjyhHuo+\nlkmL+us7+PYdTqV+BbyfXQYSdI1y6LxLZwIDAQAB", - "contact_key": "MIIBCgKCAQEAuqvyOF3yM6xMdJE6aZOT3cjrwbDWGkS+Mc7n/ZXZA4qilhxq8lwst+76m3h440Fkwf2PvU7Eu3YBpJSEMEvF5pBgfExlQYG9dpZIgm31P3C14WQFR1jCWufgLAs6WsVVNSu1vIrNPshUvAxVvRtcaQ4Nent+Mbes/0ZG3ZDOzY8U0aDCAITi3V0kuaUGXfoYd9Bb+RwCz3IMkCjgS7HURenl3SSntOqhIQqkeLZCU13KmZAASC2n+SSqu1mFQyjLCuLcVzr7O86YEUrWCFKOJfuhfNqUI+EP4N5gN2QgFtHUac+u1EJjlY5xyGW18tnZblI62WummDgGXJP2fAEg7QIDAQAB", - "privkey": "MIIEowIBAAKCAQEAuqvyOF3yM6xMdJE6aZOT3cjrwbDWGkS+Mc7n/ZXZA4qilhxq8lwst+76m3h440Fkwf2PvU7Eu3YBpJSEMEvF5pBgfExlQYG9dpZIgm31P3C14WQFR1jCWufgLAs6WsVVNSu1vIrNPsh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V2RvQ1EwMUFDVFJkZ2gxcU1RbFloYzg0ZEJaVVNQVk5wRmNUWEJXZnNhMkhUcndjVDE3Y2hKbFFMem1ZNkdnRGo1NktnemdmMzFuUkE3UUV1ODB3ZmQ0dElPa3llZVlWbjFydDl4SEJDS0ljS0FtcDZxSjVVSkl1KzNVMWRtSjBmWVM2dHRkejZhMndQbUhWUzNBVmlTTHppOTJSRVpmaGd0V3RaT015V3BtOFgyZks2REE1bk9WcGZzYWVUdFJEdGc1Z2VSVmZhTVU4aGEzYWI4a3pzaG5nR04zU05KZU4zdnkyZ1EyMGFUeXV2QStXb3hEbXZacDJrZ0RNY09nRERQVEE3bW5RSit0em0rbkhUR253aUdnekVBaTRWZ1Z0R1JVK09SQ3NYSFhKREVNd21qTHp1NElWbVJJd3NoU0F5WEpuRkZLam1UUFhla1k5bFFLOW9YQmFFbTNpaUVwZ3h4QVdEUUc3VGZSVVhlR0V6cHJjK3lCSUpmZzRYcVhlSkQvTHJ2WnBKeC9EK0twcz0=", "pin": "111111" }, { @@ -42,37 +42,37 @@ "external_ip": "http://localhost:3004", "proxy_ip": "http://proxy.sphinx:5050", "admin_token": "r46bnf8ibrhbb424heba", - "authToken": "ZZ2piBreX+KULxOoe+Fl", - "transportToken": "MIIBCgKCAQEA4e0uVbnAwZaIagzR3qNggjuPkVn1YW0pHLqh1zvwCarrzopo+RDw\n+bbZB46o+NG6SPgNG/qXVNdt6ic+Dy7T7AXdijD7/9XzDpgMq2rQsS6I1L+FgIEI\nMdC/XYB79Wptdc0+Jsq3xdOrlT/gCq+050d2fWVHBYShdq25rdPWVR3VkoESNdkw\nk1mLOHiYwbmbGe8W+qlzLR+OkpvlUGPMm6smhJEVm4XldIQZNG/SCJ+/c/DHHzZ8\nNVi6pSrxagvgP/Cco14w3sSHy9kv8P+YpwS6mjzuGY64tnb1UmOFvMBM6TvuHJEY\njOV2phPFjp6Z9xTIjdv/lbF3DCOmqcARVwIDAQAB", - "contact_key": "MIIBCgKCAQEA12PEK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ST0=", "pin": "111111" }, { - "pubkey": "02132660a55668156cf1c2be27f8fb2a4a9b388d3fa2fdf3ba4677545c41c323a3", + "pubkey": "036cf9d03c6ec86101bd51daf16eab62bccf2c5c03e4d29679b2200d1c0d3d79d6", "routeHint": "037ec785c6004d512ebaeb0020f81a2bcdb6fccc9539f7b891f704289ebc65a4e3:2199023386625", "alias": "virtualNode0", "ip": "http://host.docker.internal:3004", "external_ip": "http://localhost:3004", - "authToken": "gp+ishyWIxHWzKFPRdBn", - "transportToken": "MIIBCgKCAQEA4e0uVbnAwZaIagzR3qNggjuPkVn1YW0pHLqh1zvwCarrzopo+RDw\n+bbZB46o+NG6SPgNG/qXVNdt6ic+Dy7T7AXdijD7/9XzDpgMq2rQsS6I1L+FgIEI\nMdC/XYB79Wptdc0+Jsq3xdOrlT/gCq+050d2fWVHBYShdq25rdPWVR3VkoESNdkw\nk1mLOHiYwbmbGe8W+qlzLR+OkpvlUGPMm6smhJEVm4XldIQZNG/SCJ+/c/DHHzZ8\nNVi6pSrxagvgP/Cco14w3sSHy9kv8P+YpwS6mjzuGY64tnb1UmOFvMBM6TvuHJEY\njOV2phPFjp6Z9xTIjdv/lbF3DCOmqcARVwIDAQAB", - "contact_key": "MIIBCgKCAQEAyIeBzOPjcG6+G54qJDe4v3fS3H0UrsN13wNZxeJbNkT37uiqbvcHA8bfnks4ga+2WXUm4ut9gGk33yzS8TTjfH+F5BKHYJWyF6A3hOi8Ywh5e5o+OXE7uAjYCxBhQbvLvJ1CF3wwSJ9TzbVS/z5ABlnhUv+Pee2ILu7ZkAPwSkgM6TYTAKXC6ybHvwrtFE7lTvnavPg2Oi6LRQC/uFnrN0ANYW+PTSxWS+VZ3EVFXj5cvxl1JHeHrxS8eKgaltzhw15gIh3WQPxwCSVRcyEl9SII2PhRMjyq2r+bc10xBvX63D/KnDFBWxRcju1IC+/gn/vWh14RVBQ+/U/0BRYahwIDAQAB", - "privkey": "MIIEowIBAAKCAQEAyIeBzOPjcG6+G54qJDe4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Db2JPbmZCdzA2cnlzZHoveTBDamtpZnhmK0R4QTJucE90R1l5RXhGYW41MVRYS2gxeDYweXlVWm0wZGY1SVMyRHVPemMyZGFseC9zaGZ3b2E4Y2F6VHFrNXV2V3UzQzBHSWYwY1VDUnJGWlRHcXlrQjVHUmtzaDZ4cytycGJZb2lKNHRyUzJpMmFlSkZtZ2VraXA0VDRnbytwYU03Mk5OY0RUelNxWDlQMDMvVjluazNpMjhXZG1pMllmV092NTh5SVRUaElUSkRTOFFvbEVMYVlPREFQQlNoaks2R1RtNTRLT1YweHFxZStOUGlkSXpxZnI5RlBiczlLRUJRVlhPemlueW9HV3R0VmFUYkxJQkFuOXA1blVGWElrM2dBNnlBVTA1VDUvOUxUaU1sOXNmVFN4YlhKaytlZVl1dW42SVFEV243eVU2UWtPWjhsbjd4MFRscnlBa3hORXl0VWpPUHZnR29xcVhya0huZEsyblIxMy9ZK0FyYXIrQmFmNXdnZUtZaGZZOWh3UnJabGV6YlkzbzdOeEgyWk1mNEtiMTVUOXpKMHZnc1lRZVpEVEZjZHpZbUZMU0pFWjN6Syt1YnlzeGxYaE80T1lnQ1hOR01DYzNZTDA3RnREYk9BK1B1c2ttajFXMmg4cHZOY280UE1QMHhYbz0=", "pin": "111111" }, { - "pubkey": "0382314dab08270ee1afbfa60f8aafc31c17e4cfa56b67e34d936788a1004db8a5", + "pubkey": "03bdfe28c65ad9e2186f4630bddadffff1dee1094cd60fd6ee1445f5d0cb315a68", "routeHint": "037ec785c6004d512ebaeb0020f81a2bcdb6fccc9539f7b891f704289ebc65a4e3:2199023452161", "alias": "virtualNode1", "ip": "http://host.docker.internal:3004", "external_ip": "http://localhost:3004", - "authToken": "eARizF6dDJ6RFf6lf1Yb", - "transportToken": "MIIBCgKCAQEA4e0uVbnAwZaIagzR3qNggjuPkVn1YW0pHLqh1zvwCarrzopo+RDw\n+bbZB46o+NG6SPgNG/qXVNdt6ic+Dy7T7AXdijD7/9XzDpgMq2rQsS6I1L+FgIEI\nMdC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lFmVy9HWjlKT2gzUFFHMnZTOUIzZVJ5QThMYmRDOGVEZ2RJZGd6YXRLbXIwWHZMYWZtVHNuVURYbCtkV0pFS3hiaFdITnVXZVlJQlEyWTkvSUJ0WVJONjZNWGYrYUp5ekJaaXNqUU9mdlZnK0JYcnVLS2tIZHhtWXY4ZEFLeUlBZ2Vndzdpdm9oc1RoUkhQbVNteldGc3dHRC8wUm4xTHdsejN6N2VzVi9TRWtxUT0=", "pin": "111111" } ] diff --git a/src/tests/utils/msg/payInvoice.ts b/src/tests/utils/msg/payInvoice.ts index d30cda5ec..c03dba701 100644 --- a/src/tests/utils/msg/payInvoice.ts +++ b/src/tests/utils/msg/payInvoice.ts @@ -24,10 +24,9 @@ export const payInvoice = async ( makeArgs(sendingNode, v) ) - console.log('-> payInvoice res', sendingNode.alias, r) t.true(r.success, 'Put method should have succeeded') const paymentHash = r.response.payment_hash - t.truthy(paymentHash, 'paymentHash should exist') + t.truthy(paymentHash, `paymentHash should exist for ${sendingNode.alias}`) //wait for PUT method const paid = await getCheckNewPaidInvoice(t, receivingNode, paymentHash) @@ -38,13 +37,6 @@ export const payInvoice = async ( //get receivingNode balance after payment const receivingNodeafterBalance = await getBalance(t, receivingNode) - console.log('amount', amount) - console.log('NODE1 === ', sendingNodebeforeBalance - sendingNodeafterBalance) - console.log( - 'NODE2 === ', - receivingNodeafterBalance - receivingNodebeforeBalance - ) - //check that sendingNode sent payment and receivingNode received payment based on balances //3 SAT ARE ADDED AS A MESSAGE FEE t.true( From 00f822a46b08483d6d6c3e56332ea5f335705162 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 30 Aug 2023 18:40:54 +0100 Subject: [PATCH 89/93] update: triggering github action --- src/tests/configs/nodes.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/configs/nodes.json b/src/tests/configs/nodes.json index 6be00a488..c37ca79c7 100644 --- a/src/tests/configs/nodes.json +++ b/src/tests/configs/nodes.json @@ -69,7 +69,7 @@ "ip": "http://host.docker.internal:3004", "external_ip": "http://localhost:3004", "authToken": "4+v/7sYs1r9G9JBt0NKY", - "transportToken": "MIIBCgKCAQEAx+fbevw+o+K0reQIN67flZrqLBmIiocAC2SrdJ50X/F0JRkfw35Z\np70hTmAsfAyUGXmHsxMQRAgmVhlcp6j+jyXWYvHWtNqPn5TrGUjYUEkSHCyMgucj\nxmBjO9h2hqh3u1miEdYpJDQ1myxVVTiPoMT8b4s4TmUmeP9fntvZ+nYPanvx++sP\n8mNRt47vrk+C44dF1UTmtPL/9ayN58bksm1VR2OmtQfziKFy2AhP22dP/jSNhgnq\nB+xPrpES2keIRKlnekdgg46gYObE6TcIWMHPpVcs1P8jVglKFmBWABN2B+nXZh4z\n/9l5x5xSIkMawL9IaC96B/2oTEEZgZWpkwIDAQAB", + "transportToken": "NIIBCgKCAQEAx+fbevw+o+K0reQIN67flZrqLBmIiocAC2SrdJ50X/F0JRkfw35Z\np70hTmAsfAyUGXmHsxMQRAgmVhlcp6j+jyXWYvHWtNqPn5TrGUjYUEkSHCyMgucj\nxmBjO9h2hqh3u1miEdYpJDQ1myxVVTiPoMT8b4s4TmUmeP9fntvZ+nYPanvx++sP\n8mNRt47vrk+C44dF1UTmtPL/9ayN58bksm1VR2OmtQfziKFy2AhP22dP/jSNhgnq\nB+xPrpES2keIRKlnekdgg46gYObE6TcIWMHPpVcs1P8jVglKFmBWABN2B+nXZh4z\n/9l5x5xSIkMawL9IaC96B/2oTEEZgZWpkwIDAQAB", "contact_key": "MIIBCgKCAQEAnMttayqHUfRjrUv+04we7w0kQzDoLcoINnhtFTvL/5G4v+1Ebaf/gSRPpcE8wqmGo8FtPzlJewezxb2OQ6+DHm1KB71wl8+TDC8g3kE3RupBocpDX6cURdJJMtJ6a+FQX7LKnZdCypPBBLwRv75dzc0kFDrDibiMhyouYv9wc/tfirMZ4Rej5PwxPkRxlZuiUw7QYE4+ApbkY1nbZj2LBW+Q/gI/3OqErMfAwad2fmiIpD1Dmx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BZ2Vndzdpdm9oc1RoUkhQbVNteldGc3dHRC8wUm4xTHdsejN6N2VzVi9TRWtxUT0=", From d85d971057e82c7fab2efeb2c3586b942b22241e Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 30 Aug 2023 20:09:33 +0100 Subject: [PATCH 90/93] update: ensured message response are only returned to client after they are sent via the lightning network and added the min-amount to escrow test --- dist/src/controllers/messages.js | 4 ++-- dist/src/controllers/messages.js.map | 2 +- dist/src/tests/controllers/tribe3Escrow.test.js | 2 +- dist/src/tests/controllers/tribe3Escrow.test.js.map | 2 +- src/controllers/messages.ts | 5 ++--- src/tests/controllers/tribe3Escrow.test.ts | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/dist/src/controllers/messages.js b/dist/src/controllers/messages.js index c55d8bda5..419294590 100644 --- a/dist/src/controllers/messages.js +++ b/dist/src/controllers/messages.js @@ -387,7 +387,6 @@ const sendMessage = (req, res) => __awaiter(void 0, void 0, void 0, function* () msg.recipientPic = recipientPic; // console.log(msg) const message = (yield models_1.models.Message.create(msg)); - (0, res_1.success)(res, jsonUtils.messageToJson(message, chat)); const msgToSend = { id: message.id, uuid: message.uuid, @@ -425,7 +424,8 @@ const sendMessage = (req, res) => __awaiter(void 0, void 0, void 0, function* () } // final send // console.log('==> FINAL SEND MSG PARAMS', sendMessageParams) - network.sendMessage(sendMessageParams); + yield network.sendMessage(sendMessageParams); + (0, res_1.success)(res, jsonUtils.messageToJson(message, chat)); }); exports.sendMessage = sendMessage; /** diff --git a/dist/src/controllers/messages.js.map b/dist/src/controllers/messages.js.map index 43bea88d2..7d8e367bd 100644 --- a/dist/src/controllers/messages.js.map +++ b/dist/src/controllers/messages.js.map @@ -1 +1 @@ -{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/controllers/messages.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,2CAAoC;AACpC,oCAAmC;AACnC,+BAA8B;AAC9B,sCAOkB;AA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AK,CAAC,CAAC,uCAAuC,EAAE,KAAK,CAAC,CAAC,CAAA;SACrE;IACH,CAAC;CAAA"} \ No newline at end of file +{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/controllers/messages.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA2C;AAC3C,2CAAoC;AACpC,oCAAmC;AACnC,+BAA8B;AAC9B,sCAOkB;AAClB,gCAIe;AACf,0CAAyC;AACzC,2CAA0C;AAC1C,sCAAqC;AACrC,sCAA+C;AAC/C,0CAAyC;AACzC,sCAAqC;AAGrC,4CAAoC;AACpC,4CAAuD;AAGvD,4CAA6C;AAC7C,4CAA4C;AAC5C,gDAAqD;AACrD,mDAAkD;AAMlD,2CAA2C;AAC3C,MAAM,IAAI,GAAG,EAAE,CAAA;AAEf,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAEpB,MAAM,gBAAgB,GAAG,CAAO,GAAQ,EAAE,GAAQ,EAAiB,EAAE;IAC1E,IAAI,CAAC,GAAG,CAAC,KAAK;QAAE,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;IAC/C,MAAM,MAAM,GAAW,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;IACnC,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAA;IAC5B,IAAI,CAAC,IAAI;QAAE,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,kBAAkB,CAAC,CAAA;IAClD,MAAM,OAAO,GAAY,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;QACrD,KAAK,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;KACxB,CAAC,CAAY,CAAA;IACd,IAAA,aAAO,EAAC,GAAG,EAAE;QACX,OAAO,EAAE,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC;KAC1C,CAAC,CAAA;AACJ,CAAC,CAAA,CAAA;AAXY,QAAA,gBAAgB,oBAW5B;AAED,aAAa;AACN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,EAAE,CAAC,cAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE;4BAC5B,MAAM,EAAE,IAAI,CAAC,EAAE;4BACf,MAAM;yBACP;qBACF,CAAC,CAAA;iBACH;aACF;YACD,qBAAY,CAAC,IAAI,CAAC,CAAC,gCAAgC,CAAC,CAAC,CAAA;SACtD;QAAC,OAAO,KAAK,EAAE;YACd,qBAAY,CAAC,KAAK,CAAC,CAAC,uCAAuC,EAAE,KAAK,CAAC,CAAC,CAAA;SACrE;IACH,CAAC;CAAA"} \ No newline at end of file diff --git a/dist/src/tests/controllers/tribe3Escrow.test.js b/dist/src/tests/controllers/tribe3Escrow.test.js index 099d89a33..b728cd750 100644 --- a/dist/src/tests/controllers/tribe3Escrow.test.js +++ b/dist/src/tests/controllers/tribe3Escrow.test.js @@ -63,7 +63,7 @@ function tribe3Escrow(t, node1, node2, node3) { //Get balance after escrow time const balAfterEscrow = yield (0, get_1.getBalance)(t, node2); t.true(balBefore - balImmediatelyAfter === - tribe.escrow_amount + tribe.price_per_message, 'Difference between balance before and after message should be equal to the sum of escrow and price_per_message'); + tribe.escrow_amount + tribe.price_per_message + 3, 'Difference between balance before and after message should be equal to the sum of escrow and price_per_message'); t.true(balAfterEscrow === balImmediatelyAfter, 'Balance after escrow should be equal to balance immediately after sending message'); //NODE2 LEAVES THE TRIBE let n2left = yield (0, del_1.leaveTribe)(t, node2, tribe); diff --git a/dist/src/tests/controllers/tribe3Escrow.test.js.map b/dist/src/tests/controllers/tribe3Escrow.test.js.map index d02d6487d..e31450a47 100644 --- a/dist/src/tests/controllers/tribe3Escrow.test.js.map +++ b/dist/src/tests/controllers/tribe3Escrow.test.js.map @@ -1 +1 @@ -{"version":3,"file":"tribe3Escrow.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/tribe3Escrow.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAAsB;AAEtB,8CAAoD;AACpD,wCAAsD;AACtD,sCAAqE;AACrE,sCAIqB;AACrB,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A,gBAAU,EAAC,CAAC,EAAE,KAAK,CAAC,CAAA;QAEjD,CAAC,CAAC,IAAI,CACJ,SAAS,GAAG,mBAAmB;YAC7B,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,iBAAiB,EAC/C,gHAAgH,CACjH,CAAA;QAED,CAAC,CAAC,IAAI,CACJ,cAAc,KAAK,mBAAmB,EACtC,mFAAmF,CACpF,CAAA;QAED,wBAAwB;QACxB,IAAI,MAAM,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAC9C,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAA;QAE1C,wBAAwB;QACxB,IAAI,MAAM,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAC9C,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAA;QAE1C,yBAAyB;QACzB,IAAI,QAAQ,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QACjD,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAA;IAC/C,CAAC;CAAA;AAED,MAAM,CAAC,OAAO,GAAG,YAAY,CAAA"} \ No newline at end of file +{"version":3,"file":"tribe3Escrow.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/tribe3Escrow.test.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,6BAAsB;AAEtB,8CAAoD;AACpD,wCAAsD;AACtD,sCAAqE;AACrE,sCAIqB;AACrB,oCAA4B;AAC5B,sCAA0D;AAE1D;;EAEE;AAEF,IAAA,aAAI,EAAC,qGAAqG,EAAE,CAAO,CAAC,EAAE,EAAE;IACtH,MAAM,YAAY,CAAC,CAAC,EAAE,eAAK,CAAC,CAAC,CAAC,EAAE,eAAK,CAAC,CAAC,CAAC,EAAE,eAAK,CAAC,CAA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J,cAAc,KAAK,mBAAmB,EACtC,mFAAmF,CACpF,CAAA;QAED,wBAAwB;QACxB,IAAI,MAAM,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAC9C,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAA;QAE1C,wBAAwB;QACxB,IAAI,MAAM,GAAG,MAAM,IAAA,gBAAU,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QAC9C,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAA;QAE1C,yBAAyB;QACzB,IAAI,QAAQ,GAAG,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,CAAA;QACjD,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAA;IAC/C,CAAC;CAAA;AAED,MAAM,CAAC,OAAO,GAAG,YAAY,CAAA"} \ No newline at end of file diff --git a/src/controllers/messages.ts b/src/controllers/messages.ts index fde8bac88..b24140ac1 100644 --- a/src/controllers/messages.ts +++ b/src/controllers/messages.ts @@ -461,8 +461,6 @@ export const sendMessage = async (req: Req, res: Res): Promise => { // console.log(msg) const message: Message = (await models.Message.create(msg)) as Message - success(res, jsonUtils.messageToJson(message, chat)) - const msgToSend: { [k: string]: string | number } = { id: message.id, uuid: message.uuid, @@ -498,7 +496,8 @@ export const sendMessage = async (req: Req, res: Res): Promise => { // final send // console.log('==> FINAL SEND MSG PARAMS', sendMessageParams) - network.sendMessage(sendMessageParams) + await network.sendMessage(sendMessageParams) + success(res, jsonUtils.messageToJson(message, chat)) } /** diff --git a/src/tests/controllers/tribe3Escrow.test.ts b/src/tests/controllers/tribe3Escrow.test.ts index b125793df..b07e19430 100644 --- a/src/tests/controllers/tribe3Escrow.test.ts +++ b/src/tests/controllers/tribe3Escrow.test.ts @@ -84,7 +84,7 @@ async function tribe3Escrow(t, node1, node2, node3) { t.true( balBefore - balImmediatelyAfter === - tribe.escrow_amount + tribe.price_per_message, + tribe.escrow_amount + tribe.price_per_message + 3, 'Difference between balance before and after message should be equal to the sum of escrow and price_per_message' ) From b247583259de0b0271346f92d1f7055fcb112504 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Wed, 30 Aug 2023 23:45:33 +0100 Subject: [PATCH 91/93] update: updated socketio test to follow the right progression --- dist/src/tests/controllers/socketIO.test.js | 6 +- .../tests/controllers/socketIO.test.js.map | 2 +- src/tests/configs/nodes.json | 68 +++++++++---------- src/tests/controllers/socketIO.test.ts | 6 +- 4 files changed, 41 insertions(+), 41 deletions(-) diff --git a/dist/src/tests/controllers/socketIO.test.js b/dist/src/tests/controllers/socketIO.test.js index 322b95d3a..257eab80a 100644 --- a/dist/src/tests/controllers/socketIO.test.js +++ b/dist/src/tests/controllers/socketIO.test.js @@ -59,9 +59,9 @@ function testSocketIO(t, legacy) { yield (0, save_1.joinTribe)(t, nodes_1.default[1], socketTribe); const tribeMessage = yield (0, msg_1.sendTribeMessage)(t, nodes_1.default[1], socketTribe, messageText); yield (0, msg_1.sendBoost)(t, nodes_1.default[0], nodes_1.default[1], tribeMessage, 10, socketTribe); - t.true(responseArray[responseArray.length - 4].type == 'confirmation', 'we should receive a confirmation'); - t.true(responseArray[responseArray.length - 3].type == 'message', 'we should receive a message'); - t.true(responseArray[responseArray.length - 2].type == 'group_join', 'we should get back something when we join a tribe group chat'); + t.true(responseArray[responseArray.length - 4].type == 'message', 'we should receive a confirmation'); + t.true(responseArray[responseArray.length - 3].type == 'group_join', 'we should receive a message'); + t.true(responseArray[responseArray.length - 2].type == 'confirmation', 'we should get back something when we join a tribe group chat'); t.true(responseArray[responseArray.length - 1].type == 'boost', 'we should receive a boost'); yield (0, del_1.deleteMessage)(t, nodes_1.default[0], sentMessage.id); yield (0, helpers_1.sleep)(1000); diff --git a/dist/src/tests/controllers/socketIO.test.js.map b/dist/src/tests/controllers/socketIO.test.js.map index 3b29e99dd..95c0dfe53 100644 --- a/dist/src/tests/controllers/socketIO.test.js.map +++ b/dist/src/tests/controllers/socketIO.test.js.map @@ -1 +1 @@ -{"version":3,"file":"socketIO.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/socketIO.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAA4C;AAE5C,6CAA4C;AAC5C,0DAAyD;AACzD,wDAAmD;AAEnD,oCAA4B;AAE5B,8CAAoD;AAEpD,oDAAoD;AACpD,sCAOqB;AAErB,wCAAkE;AAClE,sCAAyD;AAUzD,IAAI,QAAQ,GAAiC,EAAE,CAAA;AAC/C,IAAI,EAAE,GAAQ,IAAI,CAAA;AAClB,IAAI,aAAa,GAAU,EAAE,CAAA;AAE7B,aAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAO,CAA4B,EAAE,EAAE;IACrE,MAAM,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;IAE5B,MAAM,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAA;AAC7B,CAAC,CAAA,CAAC,CAAA;AAEF,SAAe,YAAY,CAAC,CAA4B,EAAE,MAAe;;QACvE,gBAAgB,CACd,uBAAuB,EACvB,eAAK,CAAC,CAAC,CAAC,CAAC,SAAS,EAClB,MAAM,EACN,GAAG,EAAE,GAAE,CAAC,EACR,GAAG,EAAE,GAAE,CAAC,CACT,CAAA;QACD,EAAE,CAAC,OAAO,EAAE,CAAA;QACZ,MAAM,IAAA,iBAAU,EAAC,CAAC,EAAE,eAAK,CAAC,CAAC,CAAC,EAAE,eAAK,CAAC,CAAC,CAAC,CAAC,CAAA;QAEvC,SAAS;QACT,iBAAiB;QACjB,YAAY;QACZ,MAAM,MAAM,GAAG,GAAG,CAAA;QAClB,MAAM,WAAW,GAAG,qBAAqB,CAAA;QAEzC,MAAM,IAAA,iBAAW,EAAC,CAAC,EAAE,eAAK,CAAC,CAAC,CAAC,EAAE,eAAK,CAAC,CAAC,CAAC,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,MAAM,EAAE,EAAE;QAC7B,IAAI,kBAAkB;YAAE,kBAAkB,EAAE,CAAA;IAC9C,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,EAAE,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE;QACxB,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAA;QACpC,IAAI;YACF,IAAI,GAAG,GAAc,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YACrC,IAAI,GAAG,GAAG,GAAG,CAAC,IAAI,CAAA;YAClB,IAAI,GAAG,KAAK,QAAQ;gBAAE,GAAG,GAAG,eAAe,CAAA;YAC3C,IAAI,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAA;YAC3B,IAAI,OAAO,EAAE;gBACX,OAAO,CAAC,GAAG,CAAC,CAAA;aACb;SACF;QAAC,OAAO,CAAC,EAAE,GAAE;IAChB,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;QACxB,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;IAClC,CAAC,CAAC,CAAA;AACJ,CAAC;AApDD,4CAoDC"} \ No newline at end of file +{"version":3,"file":"socketIO.test.js","sourceRoot":"","sources":["../../../../src/tests/controllers/socketIO.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAA4C;AAE5C,6CAA4C;AAC5C,0DAAyD;AACzD,wDAAmD;AAEnD,oCAA4B;AAE5B,8CAAoD;AAEpD,oDAAoD;AACpD,sCAOqB;AAErB,wCAAkE;AAClE,sCAAyD;AAUzD,IAAI,QAAQ,GAAiC,EAAE,CAAA;AAC/C,IAAI,EAAE,GAAQ,IAAI,CAAA;AAClB,IAAI,aAAa,GAAU,EAAE,CAAA;AAE7B,aAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAO,CAA4B,EAAE,EAAE;IACrE,MAAM,YAA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C,OAAO,CAAC,EAAE,GAAE;IAChB,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;QACxB,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;IAClC,CAAC,CAAC,CAAA;AACJ,CAAC;AApDD,4CAoDC"} \ No newline at end of file diff --git a/src/tests/configs/nodes.json b/src/tests/configs/nodes.json index c37ca79c7..5977e8f2e 100644 --- a/src/tests/configs/nodes.json +++ b/src/tests/configs/nodes.json @@ -4,11 +4,11 @@ "pubkey": "03a394d0ebf0d003124ab130c6b12b8b990a50a30a464354800a51981ba745bb07", "ip": "http://alice.sphinx:3001", "external_ip": "http://localhost:3001", - "authToken": "maPk0GOsAXRDwPYseJ5K", - "transportToken": "MIIBCgKCAQEAsVjAAHNblgh0ZvetxqtFvh9IGq97ifk9ljzxYqbpMui6uSE+2Mjn\n8PYDWynJyOMXUtYlVSncqARtP+GfzolLK5S/61T0xdsEHaLrFQuFFgmUVjmQ3Edp\nM7+u4KwZlAPYIGkVdQciPCpw6mePvAjheE0QAlxdnbzxqdIFJ0LJ4q/T8t/dT4PG\nnKXhp+OU5CquyUkNIu6BnS3EyuQF8pTrBRRX02hjTOYlRw+xxYsRfko99C0xFVTu\nVK6PZlcIcO0ycvHSm3p73xq9mY8bGqqiEhEoV2j3yl2XrqScedH63zwnVB75iizH\n+VFWigkRrcUI+EfJkgeOWTx5sKc1Hc73OwIDAQAB", - "contact_key": "MIIBCgKCAQEAvOY5hPIS1MI3VFu8cy7jqUBA/oNu/KhrfISlDEMT35y754SvT9WLoQJ4R/EYFdaoWxYFgD8WhSsKmKqEJdpQXhsDt78LmGz9Gfda0fIvorsHQLp14wRiBziCCoobm1z8qEkjn3LBOsSmkcAOqyuB1HqGdbI8bqyA+/MwnmbFEoi7ZNRvL32ERDvrJaSrlb9kROo6Wk4MkWOVmDS3K54NP1MF4LSWSyeEJocV/4oqy7iuDo1m8cJ3FnQ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UxZTmNjOVhFQVBVVTRTaG5KbjJNQ1pYTWRxQ2JRVEs0NXhIWWNWcEtDSENyUmgzSjg0Zm5wbHBhdmJOYUZ6dU41U2JyeWNEakVEdk5Sc2FpTjNmTHk5dlZsOUVBK1Q3TFJQVWREci85Y3REMnFyRG9lZnJzaU80emFZWEMzWEJjdWNMcmxGVlJhbld4NkdPT2J2V0JFRWlKMmhDalkvZVVIcTQwcUJNc1NOV0ZHdzBhRU1KTGxMakd4bk9ONWZPQ0NIL3dhVUlYN2Q2YkI5RVY5TGlDcm90dlEyNUt1UEQ3ZGlOSW1DTU84a29GVjRxSXF0dnVYdkFDSDYvYU9YK01nemlBcmVPeTNUODg2VHhRZUpNNWlkUWtMZk1VRzJhcVN6TzgrMTRLdCtVTlpuQjExeEdHRGxCWlFqTE1Hb21HM1hjTFhMK3BTNkQ4ZnZuQ2cyaFhCY3pXNm9hMkRtRXNpQ25QSFVpZ2xsUXlFZzMwSWU3N0xvWW5iVkxybjFSdmJKLzhiRnk0RkhBUGdWMEdJbTFvN0JMZjU5Tno0dzA4Z3NZUEtDN2JIY3cwRk4xZGZWcU5UbDlPQkU4RHhvVzh5WXZPVzNmbjUydVA4bGJLMVVLL2Nuc09nd1dNRDNxQmtmQ2ZMcFRoMVI4elRXL0p6RVBtWktLbnVWOFNIcVNOSmhmbGlHZ2RScEZUdHYwbVo2bUF0OW0ybThhY0RTVGFaWlNhU1ZRcXRqWnhjRDdiSStFeGVCN2FqVlJRbVRnVG0ydzhLS0MvM3hTRTZLN1FnUFg3RG0wK29CeXNLTjdRd0tLV005N3ArNzFzQjRhQTlBZDdqYWo3THowYjZTL25iV0N5K1dSTXdLWT0=", "pin": "111111" }, { @@ -16,11 +16,11 @@ "pubkey": "02a38857848aca6b32ebcc3c85d07ee41354988f4f1e0b4e6ccd255eee6ed75b8d", "ip": "http://bob.sphinx:3002", "external_ip": "http://localhost:3002", - "authToken": "l+7am3E9nW8jUPxrnB3Z", - "transportToken": "MIIBCgKCAQE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hCVU1wVERoRzJOSnRJSzFpRlE4Q01zTnVXb0sxNWVsVFNsT3Jvcm1tNXJuS3ZiZHBpZTUrN0Rjc0hieEU1d3h1OE4yOTlQNzZkdmJscGZ5SjRIdS9xckIxN2IzTHRDOUFWNnI3WkZYdHdsM1RTUElRTEQyYUtaelhqYmIrM2dzSHFOQ0JJZW9QY1plWlJESm1uTmlwK1dPODBQQjBxMXlmU0tKd055WWVKOVJRQ3p2L2p6MmowNGtZTHAxanUxTFhlb1FDUDQzZ3Q0aGJadm1VeUEycHJmYi9VMUgyT2k4eXBneWpJaCtKQzd1SFFRYXFEdXhqOWw3RnhmMkRPTGx4aFNaN2FsY2x6R2JtbEZ5MjN3N0taTGtRcz0=", "pin": "111111" }, { @@ -28,11 +28,11 @@ "pubkey": "0364c05cbcbb9612036cc66297445a88bcfc21941fd816e17a56b54b0b52ff02b9", "ip": "http://carol.sphinx:3003", "external_ip": "http://localhost:3003", - "authToken": "fPp0XqXb8AKktav55I3o", - "transportToken": "MIIBCgKCAQEAqpp6mQIwmyHD0Cy3clfU3M3KxyP8tKLCWyirSpqEPukO5m/43liG\nXjpMW5IQq2i6Sog6ftaHQeRBJPfujrFWU/IlC86SE6ke8rieGm4sP0mmap9TioxC\npE9u22Ip9aKJbrCueDqn8npnTG1kAovcmOCJ96glk11M1qWb7FXRICYqxT3rcRhf\nRq6zSPxVwzl5e42nlOyejcPsYEe0O1mvo0wRfc70B87BtgbVho274g2PishHiBvI\n3Q79OYMFabw/cDHdpfErN294wpy9re0Juv8QbEBw+Nl/+ErxAMpNx9CJYNkuaOXt\nJ0wx1xUNE573waKHWXXmAncYENte1eulvwIDAQAB", - "contact_key": "MIIBCgKCAQEA1gukg8VKp787t/sLwFKb0JK1eygoHIpd1zgxIHXOnq+ThuboAwghWeXzq2wMvP8w39ewm9ti2goaA1L4C7Is7+nodnuledpyaNZOlD5oXjgblWc5OSqtDZ5amzEsJyVYQMnngfv3O0x3Y+fb/oGymluZVlzuG+d5M7VgWw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QSXZyMEx3cVNEQmZLQlhKcVdtT1ZPNkZrelVZZWorOXhHZTNSem8zT3cwSDl3a1NYVjFqZ2tlbFBhWUVTaUY2VjNrdG0rTWRmT0hXUTg2ZjdIbytWbVl0Nmc5RmV2RnNVQWtCSU9VS0ZHa2RvYkZKeE8yWUZuWjE4TDVSbHZ1Z0VWS0dGZmRBdlVFWFVEMWR6NVZsaVRxMmxjS0RISjg2NmRkTS9pdWc0ZWRyR1dLd0hoS2dKT1EvelpUZVpWcjgvWTg3Zy9rQTdWMElrS2ttNkh5OGZtQzNJT1l2YjBZbVFhcFBLYjFybCtmVFBPQ0d4aXUrNjl2L2U1cTBZYVp0a3hCVHQrMGljcFAycTFkaU5GSUFMQnJhSzdzU1A2VmdxUWZMUWY5dnZ2MllVZWgxN29ETHYwbmRIVnhyY3pLMU5TOXM4bTlGaDlEempvd0p2YkdNTTBma0V0bjhxeGVzVTc2Y3RMVmFtdVoxT0ppdy9nUGRRd1drMjBiK2ZweEorSHk3Q1k3UFVpK1hJSmlHZDdURzJSc3NXSVhoYTdTY2JsbHBiV2NHWEYxK3VyTWVNaDlRRGE2bE9ucTFMS0RqL00yR0tuM3JLUFNmRjZyTElRN3V0dzZuVE1RSjM2NGhvN3VNcTkzWnNkcFZzY0JTUXA4MTA3UWcxUUIrTC9KNmI3MGJlSGVDemJSc0NBSUZNV3I0WlBnRDR1Mkg2MW53dDg5QW04L3hEeFhCcERWVExMSzVlYnIxZUZGbHlJa3Uxeldmci93SVh5ZzNCRWhzVFFlMXdXaWdRM0k0NXkwM0lYZnl6Y0NuRkVqRGsvK3VqQWF1K3dEaTlFbXB4ZS9tbnJDV2R5Q0RtTEJQNGIzbkQrZHcxNzFqVXZaQm9KREV1Zz0=", "pin": "111111" }, { @@ -42,37 +42,37 @@ "external_ip": "http://localhost:3004", "proxy_ip": "http://proxy.sphinx:5050", "admin_token": "r46bnf8ibrhbb424heba", - "authToken": "nRJR4rdOz4P98bJfGpFx", - "transportToken": "MIIBCgK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mRFQzJCeTFrb2ZwQjZJcFBxT005MW1QZlZpcmU2VFVLcEI3bzdKckFWMzl5eUY5T2laWUJvaTZONlNNQW9DcmFGOVMwRk5Na3Q1REJxRU5YRHNYRlV5UjFtbkpsRE1yMzdRdGNxK3l4QWk5bXJ5cW90RXFyQURrZXUrRUcwL3p3Wm9Ia3NtdlU2cUZKVDFBWjBQKzEyS0xxSi9SSTRLNHJNS2VKOGVITTJpT3NaNXplRlpwald1dEx5Y0kyeGd4aStFY0lFbXJranNCVXdKbW9jbklFMVZoMGRZYmRYVTNaQlVxYS9jd2NKUjR6QXJJQVl6NDl0VWxCMWxoNy9lcVE2SEZLcHRZZXBOaTV3bjhqU3pBTTFDYz0=", "pin": "111111" }, { - "pubkey": "036cf9d03c6ec86101bd51daf16eab62bccf2c5c03e4d29679b2200d1c0d3d79d6", - "routeHint": "037ec785c6004d512ebaeb0020f81a2bcdb6fccc9539f7b891f704289ebc65a4e3:2199023386625", + "pubkey": "02841e1cc175b0ac4ef317349a05cd1176c69026442eaf6f8efef809ed2c06c54a", + "routeHint": "037ec785c6004d512ebaeb0020f81a2bcdb6fccc9539f7b891f704289ebc65a4e3:2199023452161", "alias": "virtualNode0", "ip": "http://host.docker.internal:3004", "external_ip": "http://localhost:3004", - "authToken": "zzR68UBkVCsXrOBiASz4", - "transportToken": "MIIBCgKCAQEAx+fbevw+o+K0reQIN67flZrqLBmIiocAC2SrdJ50X/F0JRkfw35Z\np70hTmAsfAyUGXmHsxMQRAgmVhlcp6j+jyXWYvHWtNqPn5TrGUjYUEkSHCyMgucj\nxmBjO9h2hqh3u1miEdYpJDQ1myxVVTiPoMT8b4s4TmUmeP9fntvZ+nYPanvx++sP\n8mNRt47vrk+C44dF1UTmtPL/9ayN58bksm1VR2OmtQfziKFy2AhP22dP/jSNhgnq\nB+xPrpES2keIRKlnekdgg46gYObE6TcIWMHPpVcs1P8jVglKFmBWABN2B+nXZh4z\n/9l5x5xSIkMawL9IaC96B/2oTEEZgZWpkwI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N0ZZTEVSeFpaWmR6Zz0=", "pin": "111111" }, { - "pubkey": "03bdfe28c65ad9e2186f4630bddadffff1dee1094cd60fd6ee1445f5d0cb315a68", - "routeHint": "037ec785c6004d512ebaeb0020f81a2bcdb6fccc9539f7b891f704289ebc65a4e3:2199023452161", + "pubkey": "03a2b42491b0e173792c4849e852df8e0ac078fb41fbd1f9cf546062d7023e7574", + "routeHint": "037ec785c6004d512ebaeb0020f81a2bcdb6fccc9539f7b891f704289ebc65a4e3:2199023386625", "alias": "virtualNode1", "ip": "http://host.docker.internal:3004", "external_ip": "http://localhost:3004", - "authToken": "4+v/7sYs1r9G9JBt0NKY", - "transportToken": "NIIBCgKCAQEAx+fbevw+o+K0reQIN67flZrqLBmIiocAC2SrdJ50X/F0JRkfw35Z\np70hTmAsfAyUGXmHsxMQRAgmVhlcp6j+jyXWYvHWtNqPn5TrGUjYUEkSHCyMgucj\nxmBjO9h2hqh3u1miEdYpJDQ1myxVVTiPoMT8b4s4TmUmeP9fntvZ+nYPanvx++sP\n8mNRt47vrk+C44dF1UTmtPL/9ayN58bksm1VR2OmtQfziKFy2AhP22dP/jSNhgnq\nB+xPrpES2keIRKlnekdgg46gYObE6TcIWMHPpVcs1P8jVglKFmBWABN2B+nXZh4z\n/9l5x5xSIkMawL9IaC96B/2oTEEZgZWpkwIDAQAB", - "contact_key": "MIIBCgKCAQEAnMttayqHUfRjrUv+04we7w0kQzDoLcoINnhtFTvL/5G4v+1Ebaf/gSRPpcE8wqmGo8FtPzlJewezxb2OQ6+DHm1KB71wl8+TDC8g3kE3RupBocpDX6cURdJJMtJ6a+FQX7LKnZdCypPBBLwRv75dzc0kFDrDibiMhyouYv9wc/tfirMZ4Rej5PwxPkRxlZuiUw7QYE4+ApbkY1nbZj2LBW+Q/gI/3OqErMfAwad2fmiIpD1Dmxb3lKa/tLbLFK0pOPEDqL+ZLq3x+mTsqtxuLCwdtHruguxiWrB2Pfq/lNazRgW0xLl07YeJY+JjV2mhG0AuEpQMc28x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jREVja2h3NUgxNXJCQUlqNHZLQisybnRoRncvcDZFM1RyMVZnbEV5S21vTW0xUEs2TFIwOTZxMlVrd0VnK3lGUjh0U3MrRFNQZE01cFIyV01kWGNiVCtOcUhncXQ2b3BySEhneVhkWEY4Ukg3Y2twUTZPL2hSN0tTOCtXT1VyazhWbkVtcjJ2WEJtODBUWGsxVkIvTGxQbThpQlR2REVQKzFiTjhKVm05RExuenpobkZXdmV2dEc1QWFqOFFTU3gxcC9iUndGUjByclJJV2xSTjYzYk05MUh5b2dmRHFydGlWV2pKdEFIdTRJbG5ONHhwZXNFZnRQS2lad2ZHbkdvcHZ1VVprMGltUHNlMnpYc1owaEh3RUxPTFc0MUlDVGJGL2UvSFZGRE9uRGxLWTNBUit1c0ZRNTNxeGkzMjJZWERaUVNnQlFUb2pxbk5RcklzTUpaWUpOVFlvSCs2TkkyMDZpWjFSaHRGdmYyeDBIZm84WWhhck1xQmRwcTdSMlhVY3N5V3VxZXhOaVNNdzV2NUNmbXQrRnNrV1hBSURQMHMrVzRHMXBYTk9CYzcxbGZuYkxBL2cxQktRSjhTTDJIMlBPOHB4YVgvcFo2Mm1EMDhEZzNYenNjYlgwTG1nT1FnejBHSzhrbHRaZkJaNURLZXFpZVVESG0xaGxCL2hzUDMvdEE1amE5VHpZZ2Riak1CVVRHckVORnRCaXFwQzN3NFhmQT0=", "pin": "111111" } ] diff --git a/src/tests/controllers/socketIO.test.ts b/src/tests/controllers/socketIO.test.ts index 7ea9289c4..33ee77959 100644 --- a/src/tests/controllers/socketIO.test.ts +++ b/src/tests/controllers/socketIO.test.ts @@ -109,15 +109,15 @@ async function testSocketIO(t: ExecutionContext, legacy: boolean) { await sendBoost(t, nodes[0], nodes[1], tribeMessage, 10, socketTribe) t.true( - responseArray[responseArray.length - 4].type == 'confirmation', + responseArray[responseArray.length - 4].type == 'message', 'we should receive a confirmation' ) t.true( - responseArray[responseArray.length - 3].type == 'message', + responseArray[responseArray.length - 3].type == 'group_join', 'we should receive a message' ) t.true( - responseArray[responseArray.length - 2].type == 'group_join', + responseArray[responseArray.length - 2].type == 'confirmation', 'we should get back something when we join a tribe group chat' ) t.true( From aa99747bc47faa1996d6843978e17814c21280cc Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Thu, 31 Aug 2023 00:34:20 +0100 Subject: [PATCH 92/93] update: updated config --- dist/src/tests/config.js | 2 +- dist/src/tests/utils/msg/sendPayment.js | 2 +- dist/src/tests/utils/msg/sendPayment.js.map | 2 +- src/tests/config.ts | 2 +- src/tests/utils/msg/sendPayment.ts | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/src/tests/config.js b/dist/src/tests/config.js index c9c406185..563da8cc7 100644 --- a/dist/src/tests/config.js +++ b/dist/src/tests/config.js @@ -7,7 +7,7 @@ exports.config = { memeHost: 'localhost:5555', tribeHost: 'localhost:13000', tribeHostInternal: 'tribes.sphinx:13000', - allowedFee: 4, + allowedFee: 7, cache: false, authHost: 'localhost:9090', authHostInternal: `auth.sphinx:9090`, diff --git a/dist/src/tests/utils/msg/sendPayment.js b/dist/src/tests/utils/msg/sendPayment.js index 48326328e..b83b7b911 100644 --- a/dist/src/tests/utils/msg/sendPayment.js +++ b/dist/src/tests/utils/msg/sendPayment.js @@ -71,7 +71,7 @@ function sendPayment(t, node1, node2, amount, text) { // console.log("NODE2 === ", (node2afterBalance - node2beforeBalance) - amount) //check that node1 sent payment and node2 received payment based on balances t.true(Math.abs(node1beforeBalance - node1afterBalance - amount) <= - config_1.config.allowedFee, 'node1 should have paid amount'); + config_1.config.allowedFee, `${node1.alias} should have paid amount`); t.true(Math.abs(node2afterBalance - node2beforeBalance - amount) <= config_1.config.allowedFee, 'node2 should have received amount'); return true; diff --git a/dist/src/tests/utils/msg/sendPayment.js.map b/dist/src/tests/utils/msg/sendPayment.js.map index 5fa16aa27..6603e60b7 100644 --- a/dist/src/tests/utils/msg/sendPayment.js.map +++ b/dist/src/tests/utils/msg/sendPayment.js.map @@ -1 +1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I,CAAC,QAAQ,CAAC,OAAO,EAAE,0BAA0B,CAAC,CAAA;QACpD,MAAM,iBAAiB,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAA;QAEnD,+DAA+D;QAC/D,6DAA6D;QAC7D,+DAA+D;QAC/D,6DAA6D;QAC7D,+EAA+E;QAC/E,gFAAgF;QAEhF,4EAA4E;QAC5E,CAAC,CAAC,IAAI,CACJ,IAAI,CAAC,GAAG,CAAC,kBAAkB,GAAG,iBAAiB,GAAG,MAAM,CAAC;YACvD,eAAM,CAAC,UAAU,EACnB,GAAG,KAAK,CAAC,KAAK,0BAA0B,CACzC,CAAA;QACD,CAAC,CAAC,IAAI,CACJ,IAAI,CAAC,GAAG,CAAC,iBAAiB,GAAG,kBAAkB,GAAG,MAAM,CAAC;YACvD,eAAM,CAAC,UAAU,EACnB,mCAAmC,CACpC,CAAA;QAED,OAAO,IAAI,CAAA;IACb,CAAC;CAAA;AAlFD,kCAkFC"} \ No newline at end of file diff --git a/src/tests/config.ts b/src/tests/config.ts index dcc5e7888..40dd24a1f 100644 --- a/src/tests/config.ts +++ b/src/tests/config.ts @@ -5,7 +5,7 @@ export const config = { memeHost: 'localhost:5555', tribeHost: 'localhost:13000', tribeHostInternal: 'tribes.sphinx:13000', - allowedFee: 4, + allowedFee: 7, cache: false, authHost: 'localhost:9090', authHostInternal: `auth.sphinx:9090`, diff --git a/src/tests/utils/msg/sendPayment.ts b/src/tests/utils/msg/sendPayment.ts index b078ca308..1365a3f18 100644 --- a/src/tests/utils/msg/sendPayment.ts +++ b/src/tests/utils/msg/sendPayment.ts @@ -78,7 +78,7 @@ export async function sendPayment(t, node1, node2, amount, text) { t.true( Math.abs(node1beforeBalance - node1afterBalance - amount) <= config.allowedFee, - 'node1 should have paid amount' + `${node1.alias} should have paid amount` ) t.true( Math.abs(node2afterBalance - node2beforeBalance - amount) <= From 2b15944451fe288043edeab53bcfa7c05c729ab4 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Thu, 31 Aug 2023 10:18:28 -0700 Subject: [PATCH 93/93] logs --- dist/public/.DS_Store | Bin 6148 -> 0 bytes dist/public/favicon.ico | Bin 2239 -> 0 bytes dist/public/index.html | 208 ------- dist/public/index2.html | 189 ------- dist/public/indexAuto.html | 188 ------ dist/public/index_greenlight.html | 243 -------- dist/public/js/qrious.js | 911 ------------------------------ dist/public/relay.jpg | Bin 263031 -> 0 bytes dist/public/sphinx-logo.png | Bin 43947 -> 0 bytes dist/public/uploads/.gitkeep | 0 dist/src/builtin/ml.js | 5 + dist/src/builtin/ml.js.map | 2 +- src/builtin/ml.ts | 5 + 13 files changed, 11 insertions(+), 1740 deletions(-) delete mode 100644 dist/public/.DS_Store delete mode 100644 dist/public/favicon.ico delete mode 100644 dist/public/index.html delete mode 100644 dist/public/index2.html delete mode 100644 dist/public/indexAuto.html delete mode 100644 dist/public/index_greenlight.html delete mode 100644 dist/public/js/qrious.js delete mode 100644 dist/public/relay.jpg delete mode 100644 dist/public/sphinx-logo.png delete mode 100644 dist/public/uploads/.gitkeep diff --git a/dist/public/.DS_Store b/dist/public/.DS_Store deleted file mode 100644 index 5a2dd65433a8bdcbd0aaba51b29a2320def1cd2f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKy-ve05WXvwh{RHfg@M5@(4lV-s_+Dby_85Glqiu=~_|A7l zNk~_O;7+nX`+j`RC&l&=5ihspf@nrW8JZx=U_?YcYMPj{7+Kc1Zt7Nb4^L+M?I3%f z&>h`ZH;dI^|4CmrMX{-x4g9jxkM;Z8#mm_)rf$l;w)VEWUPK5T(w17PsG%z=hZ)6T z=+Vu6{5ZdyzdlRu!8+Yt?Dy*LCuQ@_8E^)i0cYTUGJrcgayJH3e-@x5`#4y`e1&!VN}#`VkM*{!= diff --git a/dist/public/favicon.ico b/dist/public/favicon.ico deleted file mode 100644 index a9098435a0c7ddf6e0ad0729c6b4f9dadf64dc46..0000000000000000000000000000000000000000 GIT binary patch literal 0 H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ERUKG z-mLC>{mIB9eDdj^x;WjP9PON)U7wd07?WReJ0_vx>o>BLxIu)=y{q0!N$rZ-l2TB*N z{O%D2=3I${Elf`8jd{BEbhsiu)BSCBVa?kzexBb_Dq>!T_Fyw73eP1%w_Gs! zcGx`Y^ZNHT8L#4`O|LN2Q?o1RyyNwHaMChvY?mfwoZn*!ubltbas0?toyS@%Q+|_t z){YU}a+R(=T3-eRh>6y}D4y0DJ5sWz?D51y#kYA~hCso`i}(U|<-{G^`{ott&tD4u zTyMTZ|45=*%c$jr_HK`)WSxs8KH9$TcleMcH*+;timWobITw5q!&j@T0UD)Wv5QQI zU;n0+hq5yLNpvukc7lqLoE>`g%iMfe7w6uKyy^XK`-;ws8u!;@!^S(Thadb*dk0+W zyE_?NH0f}(m{8^9*BuzFr#G_eVYB>^g6u1Q!L5L+8pX*Wu;YF`^*?r(Yh?<^g diff --git a/dist/public/index.html b/dist/public/index.html deleted file mode 100644 index 60878f6f0..000000000 --- a/dist/public/index.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - Sphinx Relay - - - - - - - logo - - - - -

- Sphinx will not work unless you follow - - these specific channel instructions - - !! -

- -
- -
- -

- Scan the QR or copy the connection string into your Sphinx app. -

- -

- This is a 1 time use token to pair the app with your node. To pair other - devices, tap "export keys" on your profile page in the Sphinx app. -

- -

- Please keep that in mind uninstalling Sphinx Relay on your node will delete your account - and everything associated with it such as tribes you own, chats and tribes you are in. -

- -
-CONNECTION_STRING
-  
- - - - - - diff --git a/dist/public/index2.html b/dist/public/index2.html deleted file mode 100644 index 71a974e94..000000000 --- a/dist/public/index2.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - Sphinx Relay - - - - - - - logo - -
    -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - -
  • -
- - - -

- Scan the QR or copy the connection string into your Sphinx app -

- - - - - - - - diff --git a/dist/public/indexAuto.html b/dist/public/indexAuto.html deleted file mode 100644 index 85041ff9b..000000000 --- a/dist/public/indexAuto.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - Sphinx Relay - - - - - - - logo - -
    -
  • - - - -
  • -
- -
-

Open a channel now:

- - - -
- - - -

- Scan the QR or copy the connection string into your Sphinx app -

- - - - - - - - diff --git a/dist/public/index_greenlight.html b/dist/public/index_greenlight.html deleted file mode 100644 index deab8e4fb..000000000 --- a/dist/public/index_greenlight.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - Sphinx Relay - - - - - - logo - -

Scan this QR code with your Sphinx app:

-
- -
- -
-      CONNECTION_STRING
-    
- -
Peer to Sphinx router node:
- - - -

You are connected to a Sphinx Routing Node!

-

You are connected to a Sphinx Routing Node! Please wait for channel to open and confirm...

-

- - - - - - diff --git a/dist/public/js/qrious.js b/dist/public/js/qrious.js deleted file mode 100644 index ba1637ca5..000000000 --- a/dist/public/js/qrious.js +++ /dev/null @@ -1,911 +0,0 @@ -/*! QRious v4.0.2 | (C) 2017 Alasdair Mercer | GPL v3 License -Based on jsqrencode | (C) 2010 tz@execpc.com | GPL v3 License -*/ -!(function (t, e) { - 'object' == typeof exports && 'undefined' != typeof module - ? (module.exports = e()) - : 'function' == typeof define && define.amd - ? define(e) - : (t.QRious = e()) -})(this, function () { - 'use strict' - function t(t, e) { - var n - return ( - 'function' == typeof Object.create - ? (n = Object.create(t)) - : ((s.prototype = t), (n = new s()), (s.prototype = null)), - e && i(!0, n, e), - n - ) - } - function e(e, n, s, r) { - var o = this - return ( - 'string' != typeof e && ((r = s), (s = n), (n = e), (e = null)), - 'function' != typeof n && - ((r = s), - (s = n), - (n = function () { - return o.apply(this, arguments) - })), - i(!1, n, o, r), - (n.prototype = t(o.prototype, s)), - (n.prototype.constructor = n), - (n.class_ = e || o.class_), - (n.super_ = o), - n - ) - } - function i(t, e, i) { - for (var n, s, a = 0, h = (i = o.call(arguments, 2)).length; a < h; a++) { - s = i[a] - for (n in s) (t && !r.call(s, n)) || (e[n] = s[n]) - } - } - function n() {} - var s = function () {}, - r = Object.prototype.hasOwnProperty, - o = Array.prototype.slice, - a = e - ;(n.class_ = 'Nevis'), (n.super_ = Object), (n.extend = a) - var h = n, - f = h.extend( - function (t, e, i) { - ;(this.qrious = t), - (this.element = e), - (this.element.qrious = t), - (this.enabled = Boolean(i)) - }, - { - draw: function (t) {}, - getElement: function () { - return ( - this.enabled || ((this.enabled = !0), this.render()), this.element - ) - }, - getModuleSize: function (t) { - var e = this.qrious, - i = e.padding || 0, - n = Math.floor((e.size - 2 * i) / t.width) - return Math.max(1, n) - }, - getOffset: function (t) { - var e = this.qrious, - i = e.padding - if (null != i) return i - var n = this.getModuleSize(t), - s = Math.floor((e.size - n * t.width) / 2) - return Math.max(0, s) - }, - render: function (t) { - this.enabled && (this.resize(), this.reset(), this.draw(t)) - }, - reset: function () {}, - resize: function () {}, - } - ), - c = f.extend({ - draw: function (t) { - var e, - i, - n = this.qrious, - s = this.getModuleSize(t), - r = this.getOffset(t), - o = this.element.getContext('2d') - for ( - o.fillStyle = n.foreground, o.globalAlpha = n.foregroundAlpha, e = 0; - e < t.width; - e++ - ) - for (i = 0; i < t.width; i++) - t.buffer[i * t.width + e] && o.fillRect(s * e + r, s * i + r, s, s) - }, - reset: function () { - var t = this.qrious, - e = this.element.getContext('2d'), - i = t.size - ;(e.lineWidth = 1), - e.clearRect(0, 0, i, i), - (e.fillStyle = t.background), - (e.globalAlpha = t.backgroundAlpha), - e.fillRect(0, 0, i, i) - }, - resize: function () { - var t = this.element - t.width = t.height = this.qrious.size - }, - }), - u = h.extend(null, { - BLOCK: [ - 0, 11, 15, 19, 23, 27, 31, 16, 18, 20, 22, 24, 26, 28, 20, 22, 24, 24, - 26, 28, 28, 22, 24, 24, 26, 26, 28, 28, 24, 24, 26, 26, 26, 28, 28, 24, - 26, 26, 26, 28, 28, - ], - }), - l = h.extend(null, { - BLOCKS: [ - 1, 0, 19, 7, 1, 0, 16, 10, 1, 0, 13, 13, 1, 0, 9, 17, 1, 0, 34, 10, 1, - 0, 28, 16, 1, 0, 22, 22, 1, 0, 16, 28, 1, 0, 55, 15, 1, 0, 44, 26, 2, 0, - 17, 18, 2, 0, 13, 22, 1, 0, 80, 20, 2, 0, 32, 18, 2, 0, 24, 26, 4, 0, 9, - 16, 1, 0, 108, 26, 2, 0, 43, 24, 2, 2, 15, 18, 2, 2, 11, 22, 2, 0, 68, - 18, 4, 0, 27, 16, 4, 0, 19, 24, 4, 0, 15, 28, 2, 0, 78, 20, 4, 0, 31, - 18, 2, 4, 14, 18, 4, 1, 13, 26, 2, 0, 97, 24, 2, 2, 38, 22, 4, 2, 18, - 22, 4, 2, 14, 26, 2, 0, 116, 30, 3, 2, 36, 22, 4, 4, 16, 20, 4, 4, 12, - 24, 2, 2, 68, 18, 4, 1, 43, 26, 6, 2, 19, 24, 6, 2, 15, 28, 4, 0, 81, - 20, 1, 4, 50, 30, 4, 4, 22, 28, 3, 8, 12, 24, 2, 2, 92, 24, 6, 2, 36, - 22, 4, 6, 20, 26, 7, 4, 14, 28, 4, 0, 107, 26, 8, 1, 37, 22, 8, 4, 20, - 24, 12, 4, 11, 22, 3, 1, 115, 30, 4, 5, 40, 24, 11, 5, 16, 20, 11, 5, - 12, 24, 5, 1, 87, 22, 5, 5, 41, 24, 5, 7, 24, 30, 11, 7, 12, 24, 5, 1, - 98, 24, 7, 3, 45, 28, 15, 2, 19, 24, 3, 13, 15, 30, 1, 5, 107, 28, 10, - 1, 46, 28, 1, 15, 22, 28, 2, 17, 14, 28, 5, 1, 120, 30, 9, 4, 43, 26, - 17, 1, 22, 28, 2, 19, 14, 28, 3, 4, 113, 28, 3, 11, 44, 26, 17, 4, 21, - 26, 9, 16, 13, 26, 3, 5, 107, 28, 3, 13, 41, 26, 15, 5, 24, 30, 15, 10, - 15, 28, 4, 4, 116, 28, 17, 0, 42, 26, 17, 6, 22, 28, 19, 6, 16, 30, 2, - 7, 111, 28, 17, 0, 46, 28, 7, 16, 24, 30, 34, 0, 13, 24, 4, 5, 121, 30, - 4, 14, 47, 28, 11, 14, 24, 30, 16, 14, 15, 30, 6, 4, 117, 30, 6, 14, 45, - 28, 11, 16, 24, 30, 30, 2, 16, 30, 8, 4, 106, 26, 8, 13, 47, 28, 7, 22, - 24, 30, 22, 13, 15, 30, 10, 2, 114, 28, 19, 4, 46, 28, 28, 6, 22, 28, - 33, 4, 16, 30, 8, 4, 122, 30, 22, 3, 45, 28, 8, 26, 23, 30, 12, 28, 15, - 30, 3, 10, 117, 30, 3, 23, 45, 28, 4, 31, 24, 30, 11, 31, 15, 30, 7, 7, - 116, 30, 21, 7, 45, 28, 1, 37, 23, 30, 19, 26, 15, 30, 5, 10, 115, 30, - 19, 10, 47, 28, 15, 25, 24, 30, 23, 25, 15, 30, 13, 3, 115, 30, 2, 29, - 46, 28, 42, 1, 24, 30, 23, 28, 15, 30, 17, 0, 115, 30, 10, 23, 46, 28, - 10, 35, 24, 30, 19, 35, 15, 30, 17, 1, 115, 30, 14, 21, 46, 28, 29, 19, - 24, 30, 11, 46, 15, 30, 13, 6, 115, 30, 14, 23, 46, 28, 44, 7, 24, 30, - 59, 1, 16, 30, 12, 7, 121, 30, 12, 26, 47, 28, 39, 14, 24, 30, 22, 41, - 15, 30, 6, 14, 121, 30, 6, 34, 47, 28, 46, 10, 24, 30, 2, 64, 15, 30, - 17, 4, 122, 30, 29, 14, 46, 28, 49, 10, 24, 30, 24, 46, 15, 30, 4, 18, - 122, 30, 13, 32, 46, 28, 48, 14, 24, 30, 42, 32, 15, 30, 20, 4, 117, 30, - 40, 7, 47, 28, 43, 22, 24, 30, 10, 67, 15, 30, 19, 6, 118, 30, 18, 31, - 47, 28, 34, 34, 24, 30, 20, 61, 15, 30, - ], - FINAL_FORMAT: [ - 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 21522, 20773, - 24188, 23371, 17913, 16590, 20375, 19104, 13663, 12392, 16177, 14854, - 9396, 8579, 11994, 11245, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, - ], - LEVELS: { L: 1, M: 2, Q: 3, H: 4 }, - }), - _ = h.extend(null, { - EXPONENT: [ - 1, 2, 4, 8, 16, 32, 64, 128, 29, 58, 116, 232, 205, 135, 19, 38, 76, - 152, 45, 90, 180, 117, 234, 201, 143, 3, 6, 12, 24, 48, 96, 192, 157, - 39, 78, 156, 37, 74, 148, 53, 106, 212, 181, 119, 238, 193, 159, 35, 70, - 140, 5, 10, 20, 40, 80, 160, 93, 186, 105, 210, 185, 111, 222, 161, 95, - 190, 97, 194, 153, 47, 94, 188, 101, 202, 137, 15, 30, 60, 120, 240, - 253, 231, 211, 187, 107, 214, 177, 127, 254, 225, 223, 163, 91, 182, - 113, 226, 217, 175, 67, 134, 17, 34, 68, 136, 13, 26, 52, 104, 208, 189, - 103, 206, 129, 31, 62, 124, 248, 237, 199, 147, 59, 118, 236, 197, 151, - 51, 102, 204, 133, 23, 46, 92, 184, 109, 218, 169, 79, 158, 33, 66, 132, - 21, 42, 84, 168, 77, 154, 41, 82, 164, 85, 170, 73, 146, 57, 114, 228, - 213, 183, 115, 230, 209, 191, 99, 198, 145, 63, 126, 252, 229, 215, 179, - 123, 246, 241, 255, 227, 219, 171, 75, 150, 49, 98, 196, 149, 55, 110, - 220, 165, 87, 174, 65, 130, 25, 50, 100, 200, 141, 7, 14, 28, 56, 112, - 224, 221, 167, 83, 166, 81, 162, 89, 178, 121, 242, 249, 239, 195, 155, - 43, 86, 172, 69, 138, 9, 18, 36, 72, 144, 61, 122, 244, 245, 247, 243, - 251, 235, 203, 139, 11, 22, 44, 88, 176, 125, 250, 233, 207, 131, 27, - 54, 108, 216, 173, 71, 142, 0, - ], - LOG: [ - 255, 0, 1, 25, 2, 50, 26, 198, 3, 223, 51, 238, 27, 104, 199, 75, 4, - 100, 224, 14, 52, 141, 239, 129, 28, 193, 105, 248, 200, 8, 76, 113, 5, - 138, 101, 47, 225, 36, 15, 33, 53, 147, 142, 218, 240, 18, 130, 69, 29, - 181, 194, 125, 106, 39, 249, 185, 201, 154, 9, 120, 77, 228, 114, 166, - 6, 191, 139, 98, 102, 221, 48, 253, 226, 152, 37, 179, 16, 145, 34, 136, - 54, 208, 148, 206, 143, 150, 219, 189, 241, 210, 19, 92, 131, 56, 70, - 64, 30, 66, 182, 163, 195, 72, 126, 110, 107, 58, 40, 84, 250, 133, 186, - 61, 202, 94, 155, 159, 10, 21, 121, 43, 78, 212, 229, 172, 115, 243, - 167, 87, 7, 112, 192, 247, 140, 128, 99, 13, 103, 74, 222, 237, 49, 197, - 254, 24, 227, 165, 153, 119, 38, 184, 180, 124, 17, 68, 146, 217, 35, - 32, 137, 46, 55, 63, 209, 91, 149, 188, 207, 205, 144, 135, 151, 178, - 220, 252, 190, 97, 242, 86, 211, 171, 20, 42, 93, 158, 132, 60, 57, 83, - 71, 109, 65, 162, 31, 45, 67, 216, 183, 123, 164, 118, 196, 23, 73, 236, - 127, 12, 111, 246, 108, 161, 59, 82, 41, 157, 85, 170, 251, 96, 134, - 177, 187, 204, 62, 90, 203, 89, 95, 176, 156, 169, 160, 81, 11, 245, 22, - 235, 122, 117, 44, 215, 79, 174, 213, 233, 230, 231, 173, 232, 116, 214, - 244, 234, 168, 80, 88, 175, - ], - }), - d = h.extend(null, { - BLOCK: [ - 3220, 1468, 2713, 1235, 3062, 1890, 2119, 1549, 2344, 2936, 1117, 2583, - 1330, 2470, 1667, 2249, 2028, 3780, 481, 4011, 142, 3098, 831, 3445, - 592, 2517, 1776, 2234, 1951, 2827, 1070, 2660, 1345, 3177, - ], - }), - v = h.extend( - function (t) { - var e, - i, - n, - s, - r, - o = t.value.length - for ( - this._badness = [], - this._level = l.LEVELS[t.level], - this._polynomial = [], - this._value = t.value, - this._version = 0, - this._stringBuffer = []; - this._version < 40 && - (this._version++, - (n = 4 * (this._level - 1) + 16 * (this._version - 1)), - (s = l.BLOCKS[n++]), - (r = l.BLOCKS[n++]), - (e = l.BLOCKS[n++]), - (i = l.BLOCKS[n]), - (n = e * (s + r) + r - 3 + (this._version <= 9)), - !(o <= n)); - - ); - ;(this._dataBlock = e), - (this._eccBlock = i), - (this._neccBlock1 = s), - (this._neccBlock2 = r) - var a = (this.width = 17 + 4 * this._version) - ;(this.buffer = v._createArray(a * a)), - (this._ecc = v._createArray(e + (e + i) * (s + r) + r)), - (this._mask = v._createArray((a * (a + 1) + 1) / 2)), - this._insertFinders(), - this._insertAlignments(), - (this.buffer[8 + a * (a - 8)] = 1), - this._insertTimingGap(), - this._reverseMask(), - this._insertTimingRowAndColumn(), - this._insertVersion(), - this._syncMask(), - this._convertBitStream(o), - this._calculatePolynomial(), - this._appendEccToData(), - this._interleaveBlocks(), - this._pack(), - this._finish() - }, - { - _addAlignment: function (t, e) { - var i, - n = this.buffer, - s = this.width - for (n[t + s * e] = 1, i = -2; i < 2; i++) - (n[t + i + s * (e - 2)] = 1), - (n[t - 2 + s * (e + i + 1)] = 1), - (n[t + 2 + s * (e + i)] = 1), - (n[t + i + 1 + s * (e + 2)] = 1) - for (i = 0; i < 2; i++) - this._setMask(t - 1, e + i), - this._setMask(t + 1, e - i), - this._setMask(t - i, e - 1), - this._setMask(t + i, e + 1) - }, - _appendData: function (t, e, i, n) { - var s, - r, - o, - a = this._polynomial, - h = this._stringBuffer - for (r = 0; r < n; r++) h[i + r] = 0 - for (r = 0; r < e; r++) { - if (255 !== (s = _.LOG[h[t + r] ^ h[i]])) - for (o = 1; o < n; o++) - h[i + o - 1] = h[i + o] ^ _.EXPONENT[v._modN(s + a[n - o])] - else for (o = i; o < i + n; o++) h[o] = h[o + 1] - h[i + n - 1] = 255 === s ? 0 : _.EXPONENT[v._modN(s + a[0])] - } - }, - _appendEccToData: function () { - var t, - e = 0, - i = this._dataBlock, - n = this._calculateMaxLength(), - s = this._eccBlock - for (t = 0; t < this._neccBlock1; t++) - this._appendData(e, i, n, s), (e += i), (n += s) - for (t = 0; t < this._neccBlock2; t++) - this._appendData(e, i + 1, n, s), (e += i + 1), (n += s) - }, - _applyMask: function (t) { - var e, - i, - n, - s, - r = this.buffer, - o = this.width - switch (t) { - case 0: - for (s = 0; s < o; s++) - for (n = 0; n < o; n++) - (n + s) & 1 || this._isMasked(n, s) || (r[n + s * o] ^= 1) - break - case 1: - for (s = 0; s < o; s++) - for (n = 0; n < o; n++) - 1 & s || this._isMasked(n, s) || (r[n + s * o] ^= 1) - break - case 2: - for (s = 0; s < o; s++) - for (e = 0, n = 0; n < o; n++, e++) - 3 === e && (e = 0), - e || this._isMasked(n, s) || (r[n + s * o] ^= 1) - break - case 3: - for (i = 0, s = 0; s < o; s++, i++) - for (3 === i && (i = 0), e = i, n = 0; n < o; n++, e++) - 3 === e && (e = 0), - e || this._isMasked(n, s) || (r[n + s * o] ^= 1) - break - case 4: - for (s = 0; s < o; s++) - for (e = 0, i = (s >> 1) & 1, n = 0; n < o; n++, e++) - 3 === e && ((e = 0), (i = !i)), - i || this._isMasked(n, s) || (r[n + s * o] ^= 1) - break - case 5: - for (i = 0, s = 0; s < o; s++, i++) - for (3 === i && (i = 0), e = 0, n = 0; n < o; n++, e++) - 3 === e && (e = 0), - (n & s & 1) + !(!e | !i) || - this._isMasked(n, s) || - (r[n + s * o] ^= 1) - break - case 6: - for (i = 0, s = 0; s < o; s++, i++) - for (3 === i && (i = 0), e = 0, n = 0; n < o; n++, e++) - 3 === e && (e = 0), - ((n & s & 1) + (e && e === i)) & 1 || - this._isMasked(n, s) || - (r[n + s * o] ^= 1) - break - case 7: - for (i = 0, s = 0; s < o; s++, i++) - for (3 === i && (i = 0), e = 0, n = 0; n < o; n++, e++) - 3 === e && (e = 0), - ((e && e === i) + ((n + s) & 1)) & 1 || - this._isMasked(n, s) || - (r[n + s * o] ^= 1) - } - }, - _calculateMaxLength: function () { - return ( - this._dataBlock * (this._neccBlock1 + this._neccBlock2) + - this._neccBlock2 - ) - }, - _calculatePolynomial: function () { - var t, - e, - i = this._eccBlock, - n = this._polynomial - for (n[0] = 1, t = 0; t < i; t++) { - for (n[t + 1] = 1, e = t; e > 0; e--) - n[e] = n[e] - ? n[e - 1] ^ _.EXPONENT[v._modN(_.LOG[n[e]] + t)] - : n[e - 1] - n[0] = _.EXPONENT[v._modN(_.LOG[n[0]] + t)] - } - for (t = 0; t <= i; t++) n[t] = _.LOG[n[t]] - }, - _checkBadness: function () { - var t, - e, - i, - n, - s, - r = 0, - o = this._badness, - a = this.buffer, - h = this.width - for (s = 0; s < h - 1; s++) - for (n = 0; n < h - 1; n++) - ((a[n + h * s] && - a[n + 1 + h * s] && - a[n + h * (s + 1)] && - a[n + 1 + h * (s + 1)]) || - !( - a[n + h * s] || - a[n + 1 + h * s] || - a[n + h * (s + 1)] || - a[n + 1 + h * (s + 1)] - )) && - (r += v.N2) - var f = 0 - for (s = 0; s < h; s++) { - for (i = 0, o[0] = 0, t = 0, n = 0; n < h; n++) - t === (e = a[n + h * s]) ? o[i]++ : (o[++i] = 1), - (f += (t = e) ? 1 : -1) - r += this._getBadness(i) - } - f < 0 && (f = -f) - var c = 0, - u = f - for (u += u << 2, u <<= 1; u > h * h; ) (u -= h * h), c++ - for (r += c * v.N4, n = 0; n < h; n++) { - for (i = 0, o[0] = 0, t = 0, s = 0; s < h; s++) - t === (e = a[n + h * s]) ? o[i]++ : (o[++i] = 1), (t = e) - r += this._getBadness(i) - } - return r - }, - _convertBitStream: function (t) { - var e, - i, - n = this._ecc, - s = this._version - for (i = 0; i < t; i++) n[i] = this._value.charCodeAt(i) - var r = (this._stringBuffer = n.slice()), - o = this._calculateMaxLength() - t >= o - 2 && ((t = o - 2), s > 9 && t--) - var a = t - if (s > 9) { - for (r[a + 2] = 0, r[a + 3] = 0; a--; ) - (e = r[a]), (r[a + 3] |= 255 & (e << 4)), (r[a + 2] = e >> 4) - ;(r[2] |= 255 & (t << 4)), (r[1] = t >> 4), (r[0] = 64 | (t >> 12)) - } else { - for (r[a + 1] = 0, r[a + 2] = 0; a--; ) - (e = r[a]), (r[a + 2] |= 255 & (e << 4)), (r[a + 1] = e >> 4) - ;(r[1] |= 255 & (t << 4)), (r[0] = 64 | (t >> 4)) - } - for (a = t + 3 - (s < 10); a < o; ) (r[a++] = 236), (r[a++] = 17) - }, - _getBadness: function (t) { - var e, - i = 0, - n = this._badness - for (e = 0; e <= t; e++) n[e] >= 5 && (i += v.N1 + n[e] - 5) - for (e = 3; e < t - 1; e += 2) - n[e - 2] === n[e + 2] && - n[e + 2] === n[e - 1] && - n[e - 1] === n[e + 1] && - 3 * n[e - 1] === n[e] && - (0 === n[e - 3] || - e + 3 > t || - 3 * n[e - 3] >= 4 * n[e] || - 3 * n[e + 3] >= 4 * n[e]) && - (i += v.N3) - return i - }, - _finish: function () { - this._stringBuffer = this.buffer.slice() - var t, - e, - i = 0, - n = 3e4 - for ( - e = 0; - e < 8 && - (this._applyMask(e), - (t = this._checkBadness()) < n && ((n = t), (i = e)), - 7 !== i); - e++ - ) - this.buffer = this._stringBuffer.slice() - i !== e && this._applyMask(i), - (n = l.FINAL_FORMAT[i + ((this._level - 1) << 3)]) - var s = this.buffer, - r = this.width - for (e = 0; e < 8; e++, n >>= 1) - 1 & n && - ((s[r - 1 - e + 8 * r] = 1), - e < 6 ? (s[8 + r * e] = 1) : (s[8 + r * (e + 1)] = 1)) - for (e = 0; e < 7; e++, n >>= 1) - 1 & n && - ((s[8 + r * (r - 7 + e)] = 1), - e ? (s[6 - e + 8 * r] = 1) : (s[7 + 8 * r] = 1)) - }, - _interleaveBlocks: function () { - var t, - e, - i = this._dataBlock, - n = this._ecc, - s = this._eccBlock, - r = 0, - o = this._calculateMaxLength(), - a = this._neccBlock1, - h = this._neccBlock2, - f = this._stringBuffer - for (t = 0; t < i; t++) { - for (e = 0; e < a; e++) n[r++] = f[t + e * i] - for (e = 0; e < h; e++) n[r++] = f[a * i + t + e * (i + 1)] - } - for (e = 0; e < h; e++) n[r++] = f[a * i + t + e * (i + 1)] - for (t = 0; t < s; t++) - for (e = 0; e < a + h; e++) n[r++] = f[o + t + e * s] - this._stringBuffer = n - }, - _insertAlignments: function () { - var t, - e, - i, - n = this._version, - s = this.width - if (n > 1) - for (t = u.BLOCK[n], i = s - 7; ; ) { - for ( - e = s - 7; - e > t - 3 && (this._addAlignment(e, i), !(e < t)); - - ) - e -= t - if (i <= t + 9) break - ;(i -= t), this._addAlignment(6, i), this._addAlignment(i, 6) - } - }, - _insertFinders: function () { - var t, - e, - i, - n, - s = this.buffer, - r = this.width - for (t = 0; t < 3; t++) { - for ( - e = 0, - n = 0, - 1 === t && (e = r - 7), - 2 === t && (n = r - 7), - s[n + 3 + r * (e + 3)] = 1, - i = 0; - i < 6; - i++ - ) - (s[n + i + r * e] = 1), - (s[n + r * (e + i + 1)] = 1), - (s[n + 6 + r * (e + i)] = 1), - (s[n + i + 1 + r * (e + 6)] = 1) - for (i = 1; i < 5; i++) - this._setMask(n + i, e + 1), - this._setMask(n + 1, e + i + 1), - this._setMask(n + 5, e + i), - this._setMask(n + i + 1, e + 5) - for (i = 2; i < 4; i++) - (s[n + i + r * (e + 2)] = 1), - (s[n + 2 + r * (e + i + 1)] = 1), - (s[n + 4 + r * (e + i)] = 1), - (s[n + i + 1 + r * (e + 4)] = 1) - } - }, - _insertTimingGap: function () { - var t, - e, - i = this.width - for (e = 0; e < 7; e++) - this._setMask(7, e), - this._setMask(i - 8, e), - this._setMask(7, e + i - 7) - for (t = 0; t < 8; t++) - this._setMask(t, 7), - this._setMask(t + i - 8, 7), - this._setMask(t, i - 8) - }, - _insertTimingRowAndColumn: function () { - var t, - e = this.buffer, - i = this.width - for (t = 0; t < i - 14; t++) - 1 & t - ? (this._setMask(8 + t, 6), this._setMask(6, 8 + t)) - : ((e[8 + t + 6 * i] = 1), (e[6 + i * (8 + t)] = 1)) - }, - _insertVersion: function () { - var t, - e, - i, - n, - s = this.buffer, - r = this._version, - o = this.width - if (r > 6) - for (t = d.BLOCK[r - 7], e = 17, i = 0; i < 6; i++) - for (n = 0; n < 3; n++, e--) - 1 & (e > 11 ? r >> (e - 12) : t >> e) - ? ((s[5 - i + o * (2 - n + o - 11)] = 1), - (s[2 - n + o - 11 + o * (5 - i)] = 1)) - : (this._setMask(5 - i, 2 - n + o - 11), - this._setMask(2 - n + o - 11, 5 - i)) - }, - _isMasked: function (t, e) { - var i = v._getMaskBit(t, e) - return 1 === this._mask[i] - }, - _pack: function () { - var t, - e, - i, - n = 1, - s = 1, - r = this.width, - o = r - 1, - a = r - 1, - h = - (this._dataBlock + this._eccBlock) * - (this._neccBlock1 + this._neccBlock2) + - this._neccBlock2 - for (e = 0; e < h; e++) - for (t = this._stringBuffer[e], i = 0; i < 8; i++, t <<= 1) { - 128 & t && (this.buffer[o + r * a] = 1) - do { - s - ? o-- - : (o++, - n - ? 0 !== a - ? a-- - : ((n = !n), 6 === (o -= 2) && (o--, (a = 9))) - : a !== r - 1 - ? a++ - : ((n = !n), 6 === (o -= 2) && (o--, (a -= 8)))), - (s = !s) - } while (this._isMasked(o, a)) - } - }, - _reverseMask: function () { - var t, - e, - i = this.width - for (t = 0; t < 9; t++) this._setMask(t, 8) - for (t = 0; t < 8; t++) - this._setMask(t + i - 8, 8), this._setMask(8, t) - for (e = 0; e < 7; e++) this._setMask(8, e + i - 7) - }, - _setMask: function (t, e) { - var i = v._getMaskBit(t, e) - this._mask[i] = 1 - }, - _syncMask: function () { - var t, - e, - i = this.width - for (e = 0; e < i; e++) - for (t = 0; t <= e; t++) - this.buffer[t + i * e] && this._setMask(t, e) - }, - }, - { - _createArray: function (t) { - var e, - i = [] - for (e = 0; e < t; e++) i[e] = 0 - return i - }, - _getMaskBit: function (t, e) { - var i - return ( - t > e && ((i = t), (t = e), (e = i)), - (i = e), - (i += e * e), - (i >>= 1), - (i += t) - ) - }, - _modN: function (t) { - for (; t >= 255; ) t = ((t -= 255) >> 8) + (255 & t) - return t - }, - N1: 3, - N2: 3, - N3: 40, - N4: 10, - } - ), - p = v, - m = f.extend({ - draw: function () { - this.element.src = this.qrious.toDataURL() - }, - reset: function () { - this.element.src = '' - }, - resize: function () { - var t = this.element - t.width = t.height = this.qrious.size - }, - }), - g = h.extend( - function (t, e, i, n) { - ;(this.name = t), - (this.modifiable = Boolean(e)), - (this.defaultValue = i), - (this._valueTransformer = n) - }, - { - transform: function (t) { - var e = this._valueTransformer - return 'function' == typeof e ? e(t, this) : t - }, - } - ), - k = h.extend(null, { - abs: function (t) { - return null != t ? Math.abs(t) : null - }, - hasOwn: function (t, e) { - return Object.prototype.hasOwnProperty.call(t, e) - }, - noop: function () {}, - toUpperCase: function (t) { - return null != t ? t.toUpperCase() : null - }, - }), - w = h.extend( - function (t) { - ;(this.options = {}), - t.forEach(function (t) { - this.options[t.name] = t - }, this) - }, - { - exists: function (t) { - return null != this.options[t] - }, - get: function (t, e) { - return w._get(this.options[t], e) - }, - getAll: function (t) { - var e, - i = this.options, - n = {} - for (e in i) k.hasOwn(i, e) && (n[e] = w._get(i[e], t)) - return n - }, - init: function (t, e, i) { - 'function' != typeof i && (i = k.noop) - var n, s - for (n in this.options) - k.hasOwn(this.options, n) && - ((s = this.options[n]), - w._set(s, s.defaultValue, e), - w._createAccessor(s, e, i)) - this._setAll(t, e, !0) - }, - set: function (t, e, i) { - return this._set(t, e, i) - }, - setAll: function (t, e) { - return this._setAll(t, e) - }, - _set: function (t, e, i, n) { - var s = this.options[t] - if (!s) throw new Error('Invalid option: ' + t) - if (!s.modifiable && !n) - throw new Error('Option cannot be modified: ' + t) - return w._set(s, e, i) - }, - _setAll: function (t, e, i) { - if (!t) return !1 - var n, - s = !1 - for (n in t) k.hasOwn(t, n) && this._set(n, t[n], e, i) && (s = !0) - return s - }, - }, - { - _createAccessor: function (t, e, i) { - var n = { - get: function () { - return w._get(t, e) - }, - } - t.modifiable && - (n.set = function (n) { - w._set(t, n, e) && i(n, t) - }), - Object.defineProperty(e, t.name, n) - }, - _get: function (t, e) { - return e['_' + t.name] - }, - _set: function (t, e, i) { - var n = '_' + t.name, - s = i[n], - r = t.transform(null != e ? e : t.defaultValue) - return (i[n] = r), r !== s - }, - } - ), - M = w, - b = h.extend( - function () { - this._services = {} - }, - { - getService: function (t) { - var e = this._services[t] - if (!e) - throw new Error('Service is not being managed with name: ' + t) - return e - }, - setService: function (t, e) { - if (this._services[t]) - throw new Error('Service is already managed with name: ' + t) - e && (this._services[t] = e) - }, - } - ), - B = new M([ - new g('background', !0, 'white'), - new g('backgroundAlpha', !0, 1, k.abs), - new g('element'), - new g('foreground', !0, 'black'), - new g('foregroundAlpha', !0, 1, k.abs), - new g('level', !0, 'L', k.toUpperCase), - new g('mime', !0, 'image/png'), - new g('padding', !0, null, k.abs), - new g('size', !0, 100, k.abs), - new g('value', !0, ''), - ]), - y = new b(), - O = h.extend( - function (t) { - B.init(t, this, this.update.bind(this)) - var e = B.get('element', this), - i = y.getService('element'), - n = e && i.isCanvas(e) ? e : i.createCanvas(), - s = e && i.isImage(e) ? e : i.createImage() - ;(this._canvasRenderer = new c(this, n, !0)), - (this._imageRenderer = new m(this, s, s === e)), - this.update() - }, - { - get: function () { - return B.getAll(this) - }, - set: function (t) { - B.setAll(t, this) && this.update() - }, - toDataURL: function (t) { - return this.canvas.toDataURL(t || this.mime) - }, - update: function () { - var t = new p({ level: this.level, value: this.value }) - this._canvasRenderer.render(t), this._imageRenderer.render(t) - }, - }, - { - use: function (t) { - y.setService(t.getName(), t) - }, - } - ) - Object.defineProperties(O.prototype, { - canvas: { - get: function () { - return this._canvasRenderer.getElement() - }, - }, - image: { - get: function () { - return this._imageRenderer.getElement() - }, - }, - }) - var A = O, - L = h - .extend({ getName: function () {} }) - .extend({ - createCanvas: function () {}, - createImage: function () {}, - getName: function () { - return 'element' - }, - isCanvas: function (t) {}, - isImage: function (t) {}, - }) - .extend({ - createCanvas: function () { - return document.createElement('canvas') - }, - createImage: function () { - return document.createElement('img') - }, - isCanvas: function (t) { - return t instanceof HTMLCanvasElement - }, - isImage: function (t) { - return t instanceof HTMLImageElement - }, - }) - return A.use(new L()), A -}) - -//# sourceMappingURL=qrious.min.js.map diff --git a/dist/public/relay.jpg b/dist/public/relay.jpg deleted file mode 100644 index ff9d65cb6d545f2e67a8d277560cad4c266d1195..0000000000000000000000000000000000000000 GIT binary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H(+52QmupyAcZ$I`@mUe^W^c`${1nTGFom2LZLRDudMwr#bwu_~jbg8J5|J8{<~Z-6DLwEWI#b{VDWiV7X((9t8t%|u0ZJf_e|0`1 z1KYgDOTbX!{@ZqW4(q@0W9RHD7@^yc^{E#Tfo9lohAXV;}J$p+{n5xhFk@+`*WtxQiRl{w!Q4{fpB6vICIy?4_c@jnlNB zno743tse`xWztP1_N`mFK896=fe+2&ox~j4ft#_DyP*$X-nTcl>&Yso!ff!%W=7J_ zkw!TTJ-A;=5HXr}kxNnn4MR;AI4-+dHx5FE8q-R1I4>=FvMvio`1jQtOz{!2I{uzUEs zvi%{Uh`?{8b~mf+6d=}ns+t3C+9^eheIS0Qjd=ue&LWAq%m2U_&1d05WM^&?g5!sF zJoLYy2>P$B+W6Mpp(ogRSuyYvEe!R_P*AP;r$1s`%vp8)3t*S@SxFOtdwr7K z;RL!F^V>;VZS40jz3p9#2}^XO{GYBRe+0OgAm#IyCgT^dLIRl?S)D37=^XPvD}hv9 diff --git a/dist/public/uploads/.gitkeep b/dist/public/uploads/.gitkeep deleted file mode 100644 index e69de29bb..000000000 diff --git a/dist/src/builtin/ml.js b/dist/src/builtin/ml.js index 76ca80ed5..ab06075e2 100644 --- a/dist/src/builtin/ml.js +++ b/dist/src/builtin/ml.js @@ -124,6 +124,10 @@ function init() { return; } let host_name = config.host_name; + if (!host_name) { + (0, ml_1.mlBotResponse)('no host_name!', message); + return; + } if (!host_name.startsWith('http')) { host_name = `https://${host_name}`; } @@ -150,6 +154,7 @@ function init() { (0, ml_1.mlBotResponse)('failed to process message', message); return; } + console.log('ML req sent!', j.body); exports.CALLBACKS[process_id] = function (msg) { const embed = new Sphinx.MessageEmbed() .setAuthor(exports.ML_BOTNAME) diff --git a/dist/src/builtin/ml.js.map b/dist/src/builtin/ml.js.map index 2bf73cee2..cb6350442 100644 --- a/dist/src/builtin/ml.js.map +++ b/dist/src/builtin/ml.js.map @@ -1 +1 @@ -{"version":3,"file":"ml.js","sourceRoot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UAAU,CAAC,CAAA;YAC9B,CAAC,CAAA;YAED,UAAU,CAAC,GAAG,EAAE;gBACd,OAAO,iBAAS,CAAC,UAAU,CAAC,CAAA;YAC9B,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAA;SAClB;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;YACd,qBAAY,CAAC,KAAK,CAAC,mBAAmB,CAAC,EAAE,EAAE,gBAAO,CAAC,IAAI,CAAC,CAAA;SACzD;IACH,CAAC,CAAA,CAAC,CAAA;AACJ,CAAC;AA/KD,oBA+KC"} \ No newline at end of file diff --git a/src/builtin/ml.ts b/src/builtin/ml.ts index 777ed1f35..497f45df5 100644 --- a/src/builtin/ml.ts +++ b/src/builtin/ml.ts @@ -153,6 +153,10 @@ export function init() { } let host_name = config.host_name + if (!host_name) { + mlBotResponse('no host_name!', message) + return + } if (!host_name.startsWith('http')) { host_name = `https://${host_name}` } @@ -182,6 +186,7 @@ export function init() { return } + console.log('ML req sent!', j.body) CALLBACKS[process_id] = function (msg: string) { const embed = new Sphinx.MessageEmbed() .setAuthor(ML_BOTNAME)