node-event-bot/index.ts

14 lines
377 B
TypeScript

import { config } from "./server/configuration"
import Server from "./server/server"
import { ExtendedClient } from "./server/structures/client"
const server = Server.init(config.port)
export const client = new ExtendedClient()
server.start(() => {
console.log(`Server running on port ${server.getPort()}`)
//const discordAdapter = new DiscordAdapter()
client.start()
})