Compare commits
2 Commits
f020df5709
...
35c8e68428
| Author | SHA1 | Date | |
|---|---|---|---|
| 35c8e68428 | |||
| 97bebfa773 |
@ -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')
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "http://kithub.cf/TelegramBots/BobbyIPTV_Suzie.git"
|
"url": "https://kithub.k-world.me.uk/TelegramBots/BobbyIPTV_Suzie.git"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user