Switched bot to use nodejs.

This commit is contained in:
2023-06-25 12:16:20 +02:00
parent 14a59e5c66
commit 949cb4be86
12 changed files with 2147 additions and 141 deletions

26
modules/logHandler.js Normal file
View File

@@ -0,0 +1,26 @@
const pino = require('pino');
const logger = pino();
function log(x) {
logger.info(x);
}
function debug(x) {
logger.debug(x);
}
function warn(x) {
logger.warn(x);
}
function error(x) {
logger.error(x);
}
module.exports = {
log,
debug,
warn,
error,
};