Browse Source

fix chat uuid

push-params
Evan Feenstra 4 years ago
parent
commit
e9d98f40a8
  1. 8
      api/bots/index.ts
  2. 6
      package-lock.json
  3. 2
      package.json

8
api/bots/index.ts

@ -5,12 +5,12 @@ function init(){
MotherBot.init() MotherBot.init()
} }
function emit(txt, chatUUID){ function emit(text, chatUUID){
const arr = txt.split(' ') const arr = text.split(' ')
if(arr.length<2) return false if(arr.length<2) return false
// const cmd = arr[1] // const cmd = arr[1]
console.log('===> EMIT BOT MSG',{content:txt,chatUUID}) console.log('===> EMIT BOT MSG',{text,chatUUID})
Sphinx.EE.emit('message',{content:txt,chatUUID}) Sphinx.EE.emit('message',{text,chatUUID})
// switch(cmd) { // switch(cmd) {
// case 'install': // case 'install':
// if(arr.length<3) return false // if(arr.length<3) return false

6
package-lock.json

@ -10876,9 +10876,9 @@
} }
}, },
"sphinx-bot": { "sphinx-bot": {
"version": "0.1.3", "version": "0.1.6",
"resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.1.3.tgz", "resolved": "https://registry.npmjs.org/sphinx-bot/-/sphinx-bot-0.1.6.tgz",
"integrity": "sha512-MF0+WKVkfNn3yRoL5DcH22td8v3Tu6G1RBdYwcCzaOGDFfjUs+tSmvfY3x4kqU3tZ8wJwzeUVSiwh+hGWZ7W0w==", "integrity": "sha512-uehMQ7FI2R6t8it9cDShLD4KJFRYInlUlSxGiV7c/A5/YGPm35FfUbaBfay+7Hy+444tTp62ym61gKMTWzR4dg==",
"requires": { "requires": {
"eventemitter3": "^4.0.7" "eventemitter3": "^4.0.7"
}, },

2
package.json

@ -78,7 +78,7 @@
"short-uuid": "^3.1.1", "short-uuid": "^3.1.1",
"sjcl": "^1.0.8", "sjcl": "^1.0.8",
"socket.io": "^2.3.0", "socket.io": "^2.3.0",
"sphinx-bot": "^0.1.3", "sphinx-bot": "^0.1.6",
"tail": "^2.0.3", "tail": "^2.0.3",
"ts-node": "^8.5.4", "ts-node": "^8.5.4",
"tsc": "^1.20150623.0", "tsc": "^1.20150623.0",

Loading…
Cancel
Save