summary refs log tree commit diff
path: root/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/index.ts b/src/index.ts

index 6a0fabc4..c6417126 100644 --- a/src/index.ts +++ b/src/index.ts
@@ -1,17 +1,19 @@ -process.on("uncaughtException", console.error); -process.on("unhandledRejection", console.error); - -import "missing-native-js-functions"; -import { config } from "dotenv"; -config(); -import { DiscordServer } from "./Server"; - -var port = Number(process.env.PORT); -if (isNaN(port)) port = 1000; - -const server = new DiscordServer({ port }); -server.start().catch(console.error); - -// @ts-ignore -global.server = server; -export default server; +export * from "./Server"; +export * from "./middlewares/"; +export * from "./schema/Ban"; +export * from "./schema/Channel"; +export * from "./schema/Guild"; +export * from "./schema/Invite"; +export * from "./schema/Message"; +export * from "./util/Captcha"; +export * from "./util/Config"; +export * from "./util/Constants"; +export * from "./util/Event"; +export * from "./util/instanceOf"; +export * from "./util/Event"; +export * from "./util/instanceOf"; +export * from "./util/Member"; +export * from "./util/RandomInviteID"; +export * from "./util/String"; +export * from "./util/User"; +export { check as checkPassword } from "./util/passwordStrength";