Compare commits

..

No commits in common. "c51fc24478e74a70419502eb153bf70d1af23704" and "441ca421ee7c2eb15393fe62ead1982cea75bcec" have entirely different histories.

8 changed files with 2449 additions and 14695 deletions

View File

@ -1,2 +0,0 @@
.nyc*
node_modules

View File

@ -1,12 +0,0 @@
FROM node:17-alpine
ENV NODE_ENV production
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
EXPOSE 80
CMD [ "node", "src/" ]

View File

@ -1,4 +1,4 @@
[server] [server]
host=0.0.0.0 host=0.0.0.0
port=80 port=3030
endpoint= endpoint=

View File

@ -1,2 +1,3 @@
[telegram] [telegram]
polling=true
token= token=

12058
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "ussd-tg-proxy", "name": "ussd-tg-proxy",
"version": "0.2.1", "version": "0.0.2",
"description": "ussd-tg-proxy", "description": "ussd-tg-proxy",
"main": "src/index.js", "main": "src/index.js",
"repository": "https://git.grassecon.net/grassrootseconomics/ussd-tg-proxy.git", "repository": "https://git.grassecon.net/grassrootseconomics/ussd-tg-proxy.git",

View File

@ -6,7 +6,7 @@ const cache = require("./cache");
const bot = require("./bot"); const bot = require("./bot");
const log = require("./log"); const log = require("./log");
if (process.env.NODE_ENV !== "production") { if (config.get("TELEGRAM_POLLING")) {
bot.api.deleteWebhook().then(() => { bot.api.deleteWebhook().then(() => {
log.info("starting bot in polling mode"); log.info("starting bot in polling mode");
bot.start(); bot.start();

5065
yarn.lock

File diff suppressed because it is too large Load Diff