|
|
@ -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
|
|
|
|