You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
492 B

// import * as SphinxBot from '../../../sphinx-bot'
import * as SphinxBot from 'sphinx-bot'
import * as MotherBot from './mother'
import {Msg} from '../network/interfaces'
function init(){
MotherBot.init()
}
function builtinBotEmit(msg:Msg){
SphinxBot._emit('message', <SphinxBot.Message>{
channel:{
id: msg.chat.uuid,
send:function(){},
},
content: msg.message.content,
type: msg.type,
})
}
export {init,builtinBotEmit}