fix missing imports
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 56s
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 56s
This commit is contained in:
parent
97bebfa773
commit
35c8e68428
@ -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)) {
|
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");
|
||||||
test = msg.text.match(/\b(\w+)$/gm);
|
test = msg.text.match(/\b(\w+)$/gm);
|
||||||
@ -63,5 +69,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}),
|
}
|
||||||
|
}
|
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user