From f846638b83d0e40aa50ce867e1a1bb7487595273 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 3 Mar 2021 21:17:09 +0100 Subject: :zap: benchmark --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/index.ts') diff --git a/src/index.ts b/src/index.ts index 08804687..85859319 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,8 +6,9 @@ import { config } from "dotenv"; config(); import { DiscordServer } from "./Server"; -const server = new DiscordServer({ port: 3000 }); +const server = new DiscordServer({ port: 3000 || process.env.PORT }); server.start().catch(console.error); // @ts-ignore global.server = server; +export default server; -- cgit 1.5.1