From 6cf8f13ec6e8160307a9cce453e82d6848ead577 Mon Sep 17 00:00:00 2001 From: gsd Date: Thu, 6 Jun 2024 19:29:03 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=B4=D0=BE=D0=BB?= =?UTF-8?q?=D0=B1=D0=B0=D0=B5=D0=B1=D0=BE=D0=B2=20=D0=BA=D0=BE=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D1=8B=D0=B5=20=D0=BA=D0=B8=D0=B4=D0=B0=D1=8E=D1=82=20?= =?UTF-8?q?=D0=BD=D0=B5=D1=81=D0=BA=D0=BE=D0=BB=D1=8C=D0=BA=D0=BE=20=D0=B2?= =?UTF-8?q?=D0=B5=D1=89=D0=B5=D0=B9,=20=D0=B0=20=D0=BB=D1=83=D1=87=D1=88?= =?UTF-8?q?=D0=B8=D0=B9=20=D1=8F=D0=B7=D1=8B=D0=BA=20=D1=8F=D0=BF=20=D0=BD?= =?UTF-8?q?=D0=B5=20=D0=BF=D0=BE=D0=BD=D0=B8=D0=BC=D0=B0=D0=B5=D1=82=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B7=D0=BD=D0=B8=D1=86=D1=83=20=D0=BC=D0=B5=D0=B6?= =?UTF-8?q?=D0=B4=D1=83=20double=20=D0=B8=20int?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 ++++- backend_integration.js | 2 +- package.json | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f3069ab..0c4f041 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,14 @@ FROM node:18.18-bullseye +ARG BUILDDATE +ENV BUILDDATE $BUILDDATE + RUN git clone https://git.pblr-nyk.pro/gsd/Facti13.SteamTradeBot.JS.v1 && \ mv Facti13.SteamTradeBot.JS.v1 /app && chown node:node -R /app && chmod 770 -R /app && \ echo "const VERSION = $(date +%s);module.exports = VERSION;" > /app/version.js USER node WORKDIR /app -RUN npm install +RUN npm install --reg https://nexus.pblr-nyk.pro/repository/npm/ CMD ["nodejs", "tradebot.js"] \ No newline at end of file diff --git a/backend_integration.js b/backend_integration.js index 0ce1b94..de026b2 100644 --- a/backend_integration.js +++ b/backend_integration.js @@ -31,7 +31,7 @@ class BackendIntegration { } vip(steam64, amount, extra, uniq) { - axios.post(`${this.url}/api/external/vip?steam=${steam64}&amount=${amount}&service=steam&extra=${extra}&unique=${uniq}`, {}, {headers:{Cookie:`secretkey=${this.secret_key};`}}).then( + axios.post(`${this.url}/api/external/vip?steam=${steam64}&amount=${Math.round(amount)}&service=steam&extra=${extra}&unique=${uniq}`, {}, {headers:{Cookie:`secretkey=${this.secret_key};`}}).then( response => { if (response.status === 200) { if (response.data === 0) { diff --git a/package.json b/package.json index d98f7e3..14d0d54 100644 --- a/package.json +++ b/package.json @@ -7,5 +7,8 @@ "steam-tradeoffer-manager": "^2.10.6", "steam-user": "^5.0.4", "steamcommunity": "^3.47.1" + }, + "publishConfig": { + "registry": "https://nexus.pblr-nyk.pro/repository/npm/" } }