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.
 
 
 

23 lines
622 B

import * as Sphinx from 'sphinx-bot'
import {finalAction} from '../controllers/actions'
const msg_types = Sphinx.MSG_TYPE
export function init() {
const client = new Sphinx.Client()
client.login('_', finalAction)
client.on(msg_types.MESSAGE, async (message:Sphinx.Message) => {
console.log("INCOMING MSG",message)
const embed = new Sphinx.MessageEmbed()
.setAuthor('MotherBot')
.setTitle('Bot Commands:')
.addFields([
{name:'Install a new bot',value:'/bot install {BOTNAME}'},
{name:'Help',value:'/bot help'}
])
message.channel.send({ embed })
})
}