From af5c7ff982b39a3f89c25feb20b7934358eb6b82 Mon Sep 17 00:00:00 2001 From: The-Foxon Date: Wed, 28 Jun 2023 03:43:25 +1200 Subject: [PATCH] update --- Dockerfile | 4 +--- package.json | 4 ++-- src/index.ts | 2 -- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index c77d572..1775097 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,8 +11,6 @@ ENV STORAGE=/app/storage COPY --from=stage0 /app /app -RUN yarn global add cross-env - WORKDIR /app -CMD yarn start \ No newline at end of file +CMD node dist/index.js diff --git a/package.json b/package.json index 7fc8cb9..19a8432 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "start": "cross-env NODE_ENV=production node dist/index.js", "start:dev": "cross-env NODE_ENV=development node dist/index.js", "start:debug": "cross-env NODE_ENV=development ts-node src/index.ts --trace-warnings", - "build": "esbuild src/index.ts --outfile=dist/index.js --minify --target=esnext --bundle --platform=node", + "build": "esbuild src/index.ts --outfile=dist/index.js --target=esnext --bundle --platform=node", "dev": "nodemon -e ts,tsx -w src --exec 'yarn build && yarn start:dev'", "debug": "nodemon -e ts,tsx -w src --exec 'yarn start:debug'" }, @@ -28,4 +28,4 @@ "typescript": "^4.9.4", "yarn": "^1.22.19" } -} +} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 930bcd8..9ea2a7c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,8 +23,6 @@ const client = new Client({ const config = new ConfigManager() -console.log(config) - client.on('ready', () => { console.log(`Logged in as ${client.user?.tag}!`); updateServerData();