mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-22 22:43:17 +00:00
Created new function isAuthorDev
This commit is contained in:
parent
8db8115ce3
commit
430456a565
@ -19,6 +19,7 @@ module.exports = class extends Client {
|
|||||||
this.funcs.check = require('./funcs/check.js');
|
this.funcs.check = require('./funcs/check.js');
|
||||||
this.funcs.msToTime = require('./funcs/msToTime.js');
|
this.funcs.msToTime = require('./funcs/msToTime.js');
|
||||||
this.funcs.statisticsUpdate = require('./funcs/statisticsUpdate.js');
|
this.funcs.statisticsUpdate = require('./funcs/statisticsUpdate.js');
|
||||||
|
this.funcs.isAuthorDev = require('./funcs/isAuthorDev.js');
|
||||||
|
|
||||||
this.config = require('../config.js');
|
this.config = require('../config.js');
|
||||||
this.messages = require('./messages.js');
|
this.messages = require('./messages.js');
|
||||||
|
10
client/funcs/isAuthorDev.js
Normal file
10
client/funcs/isAuthorDev.js
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user