diff --git a/app.js b/app.js index 091b40b..5e8e039 100644 --- a/app.js +++ b/app.js @@ -23,8 +23,9 @@ const { startup } = require("./lib/zmq"); const { CronJobs } = require("./cron-jobs"); const { google } = require("googleapis"); const { EventEmitter } = require("stream"); +const fs = require('fs/promises'); -const nproc = require('./lib/nproc'); +// const nproc = require('./lib/nproc'); require("dotenv").config(); @@ -103,18 +104,18 @@ const drive = GoogleFunctions.Drive(auth); // // -let client = new nproc.NprocClient("127.0.0.1:36540", () => { - client.subscribe("self"); - client.publish("self", { - msg: "test" - }); +// let client = new nproc.NprocClient("127.0.0.1:36540", () => { +// client.subscribe("self"); +// client.publish("self", { +// msg: "test" +// }); - if(client.history.length > 1){ - Log.info("connected!"); - } -}, () => { - Log.debug("closed connection"); -}); +// if(client.history.length > 1){ +// Log.info("connected!"); +// } +// }, () => { +// Log.debug("closed connection"); +// }); const pm = new PluginsManager(cronTasks, CronJobs); @@ -136,6 +137,9 @@ for (let scriptName of Object.keys(pm.scripts)) { endpointMap = undefined; // reset } +// const filePath = new URL('./package.json', import.meta.url); + // const contents = await readFile(filePath, { encoding: 'utf8' }); + // pm.loop() // catch 404 and forward to error handler diff --git a/lib/common.js b/lib/common.js index 54d1eb1..a90901a 100644 --- a/lib/common.js +++ b/lib/common.js @@ -181,6 +181,8 @@ function getSlotFunctionByIndex(index) { return (price) => "HIDE"; case 9: return (price) => price * 0.60; + case 17: + return (price) => price * 4.0; default: return (price) => price; } @@ -200,6 +202,7 @@ const ProfilePrice = { changelogs: [ "2/4/25 initialized version 2, fix timeout on trigger", "8/4/25 initialized version 3, express server", + "17/11/25 add slot 17 price times 4" ], maximum_slots: MAXIMUM_SLOTS, };