From cd33d3f6cbba82f042b4f9fc2b8fb31092021cb6 Mon Sep 17 00:00:00 2001 From: Stefan080106 Date: Tue, 18 Apr 2023 23:06:20 +0200 Subject: [PATCH] WIP --- src/index.js | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/src/index.js b/src/index.js index 1d520c5..f71df50 100644 --- a/src/index.js +++ b/src/index.js @@ -1,11 +1,11 @@ import pdfLib from "pdf-to-printer"; import { jsPDF } from "jspdf"; import fs from "fs"; -import puppeteer from 'puppeteer'; -import express from 'express'; -import Joi from 'joi'; -import TelegramBot from 'node-telegram-bot-api'; -import https from 'https'; +import puppeteer from "puppeteer"; +import express from "express"; +import Joi from "joi"; +import TelegramBot from "node-telegram-bot-api"; +import https from "https"; const Logo = fs.readFileSync("./assets/Logo_fwaur.png", { encoding: "latin1" }); const config = JSON.parse(fs.readFileSync("./config.json", "utf8")); @@ -25,16 +25,14 @@ const PORT = config.port || 2000; const cacheFolder = "./cache/"; // Certificate -const privateKey = fs.readFileSync('./assets/ssl/localhost/localhost.decrypted.key'); -const certificate = fs.readFileSync('./assets/ssl/localhost/localhost.crt'); +const privateKey = fs.readFileSync("./assets/ssl/localhost/localhost.decrypted.key"); +const certificate = fs.readFileSync("./assets/ssl/localhost/localhost.crt"); const credentials = { key: privateKey, - cert: certificate + cert: certificate, }; - - let bot = null; const messageIDs = [1034133487]; @@ -198,8 +196,4 @@ const httpsServer = https.createServer(credentials, app); httpsServer.listen(PORT, () => { console.log(`PDF Printing Service listening on port ${PORT}`); -<<<<<<< HEAD }); -======= -}); ->>>>>>> f7a7fa7d73eb3cc7af05ff42d4a8f9eefeae2aec