diff --git a/data/bot/functions/competition.js b/data/bot/functions/competition.js index 15171d8..8190b09 100644 --- a/data/bot/functions/competition.js +++ b/data/bot/functions/competition.js @@ -1,5 +1,11 @@ - const startCompCalled = "start comp called"; +const fs = require('fs'); + +module.exports = { + competition: (bot, msg, logger) => { + const admins = JSON.parse(process.env.ADMIN_ID) + + const startCompCalled = "start comp called"; 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"); test = msg.text.match(/\b(\w+)$/gm); @@ -63,5 +69,5 @@ } } -}), - \ No newline at end of file + } +} \ No newline at end of file diff --git a/data/bot/functions/requests/updateSubStatus.js b/data/bot/functions/requests/updateSubStatus.js index 9318201..a605a43 100644 --- a/data/bot/functions/requests/updateSubStatus.js +++ b/data/bot/functions/requests/updateSubStatus.js @@ -1,3 +1,4 @@ +const fs = require('fs'); const utils = require('../../lib/utils'); const admins = JSON.parse(process.env.ADMIN_ID) const questions = require('../../lib/questions')