From e9d98f40a80a11ee28bdcbf38f4bdcf5763a87c7 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Thu, 3 Sep 2020 16:08:56 -0700 Subject: [PATCH] fix chat uuid --- api/bots/index.ts | 8 ++++---- package-lock.json | 6 +++--- package.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api/bots/index.ts b/api/bots/index.ts index 9b1b1bf..b336f87 100644 --- a/api/bots/index.ts +++ b/api/bots/index.ts @@ -5,12 +5,12 @@ function init(){ MotherBot.init() } -function emit(txt, chatUUID){ - const arr = txt.split(' ') +function emit(text, chatUUID){ + const arr = text.split(' ') if(arr.length<2) return false // const cmd = arr[1] - console.log('===> EMIT BOT MSG',{content:txt,chatUUID}) - Sphinx.EE.emit('message',{content:txt,chatUUID}) + console.log('===> EMIT BOT MSG',{text,chatUUID}) + Sphinx.EE.emit('message',{text,chatUUID}) // switch(cmd) { // case 'install': // if(arr.length<3) return false diff --git a/package-lock.json b/package-lock.json index 8047d38..52a8931 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10876,9 +10876,9 @@ } }, "sphinx-bot": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.1.3.tgz", - "integrity": "sha512-MF0+WKVkfNn3yRoL5DcH22td8v3Tu6G1RBdYwcCzaOGDFfjUs+tSmvfY3x4kqU3tZ8wJwzeUVSiwh+hGWZ7W0w==", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.1.6.tgz", + "integrity": "sha512-uehMQ7FI2R6t8it9cDShLD4KJFRYInlUlSxGiV7c/A5/YGPm35FfUbaBfay+7Hy+444tTp62ym61gKMTWzR4dg==", "requires": { "eventemitter3": "^4.0.7" }, diff --git a/package.json b/package.json index 2322e92..04df77c 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,7 @@ "short-uuid": "^3.1.1", "sjcl": "^1.0.8", "socket.io": "^2.3.0", - "sphinx-bot": "^0.1.3", + "sphinx-bot": "^0.1.6", "tail": "^2.0.3", "ts-node": "^8.5.4", "tsc": "^1.20150623.0",