Compare commits
No commits in common. "c51fc24478e74a70419502eb153bf70d1af23704" and "441ca421ee7c2eb15393fe62ead1982cea75bcec" have entirely different histories.
c51fc24478
...
441ca421ee
@ -1,2 +0,0 @@
|
||||
.nyc*
|
||||
node_modules
|
12
Dockerfile
12
Dockerfile
@ -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/" ]
|
@ -1,4 +1,4 @@
|
||||
[server]
|
||||
host=0.0.0.0
|
||||
port=80
|
||||
port=3030
|
||||
endpoint=
|
@ -1,2 +1,3 @@
|
||||
[telegram]
|
||||
polling=true
|
||||
token=
|
12058
package-lock.json
generated
12058
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ussd-tg-proxy",
|
||||
"version": "0.2.1",
|
||||
"version": "0.0.2",
|
||||
"description": "ussd-tg-proxy",
|
||||
"main": "src/index.js",
|
||||
"repository": "https://git.grassecon.net/grassrootseconomics/ussd-tg-proxy.git",
|
||||
|
@ -6,7 +6,7 @@ const cache = require("./cache");
|
||||
const bot = require("./bot");
|
||||
const log = require("./log");
|
||||
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
if (config.get("TELEGRAM_POLLING")) {
|
||||
bot.api.deleteWebhook().then(() => {
|
||||
log.info("starting bot in polling mode");
|
||||
bot.start();
|
||||
|
Loading…
Reference in New Issue
Block a user