fix missing imports
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 56s

This commit is contained in:
Karl 2025-09-23 19:08:13 +01:00
parent 97bebfa773
commit 35c8e68428
2 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,10 @@
const fs = require('fs');
module.exports = {
competition: (bot, msg, logger) => {
const admins = JSON.parse(process.env.ADMIN_ID)
const startCompCalled = "start comp called"; const startCompCalled = "start comp called";
if (msg.text && msg.text.toString().toLowerCase().includes(startCompCalled)) { if (msg.text && msg.text.toString().toLowerCase().includes(startCompCalled)) {
logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Asked who is an admin"); logger.info("ID - " + msg.from.id + " First Name - " + msg.from.first_name + " Asked who is an admin");
@ -63,5 +69,5 @@
} }
} }
}), }
}

View File

@ -1,3 +1,4 @@
const fs = require('fs');
const utils = require('../../lib/utils'); const utils = require('../../lib/utils');
const admins = JSON.parse(process.env.ADMIN_ID) const admins = JSON.parse(process.env.ADMIN_ID)
const questions = require('../../lib/questions') const questions = require('../../lib/questions')