Created new function isAuthorDev

This commit is contained in:
Christer 2020-04-04 09:23:18 +03:00
parent 8db8115ce3
commit 430456a565
2 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,7 @@ module.exports = class extends Client {
this.funcs.check = require('./funcs/check.js');
this.funcs.msToTime = require('./funcs/msToTime.js');
this.funcs.statisticsUpdate = require('./funcs/statisticsUpdate.js');
this.funcs.isAuthorDev = require('./funcs/isAuthorDev.js');
this.config = require('../config.js');
this.messages = require('./messages.js');

View File

@ -0,0 +1,10 @@
module.exports = function (devList, authorID){
let response = false;
Object.keys(devList).forEach(function(oneDev) {
devID = devList[oneDev];
if(authorID == devID){
response = true;
}
});
return response;
}