summary refs log tree commit diff
path: root/src/index.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-03-03 21:17:09 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-03-03 21:17:09 +0100
commitf846638b83d0e40aa50ce867e1a1bb7487595273 (patch)
tree3d7cd3be3cc548b5e80bff117c5c45c81ba6dc96 /src/index.ts
parentMerge branch 'master' of https://github.com/discord-open-source/discord-api (diff)
downloadserver-f846638b83d0e40aa50ce867e1a1bb7487595273.tar.xz
:zap: benchmark
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts3
1 files changed, 2 insertions, 1 deletions
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;