2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-30 13:47:54 +00:00

Fix masterById

This commit is contained in:
GingerPlusPlus
2019-01-28 12:25:17 +01:00
parent ae1080fc54
commit 8115e3959e

View File

@@ -11,9 +11,11 @@ if (!masterById && !masterByUsername) {
config.master); config.master);
} }
const isMaster = masterByUsername const isMaster = masterById
? user => user && user.username && eq.username(user.username, config.master) ? user =>
: user => user && user.id === Number(config.master); user && user.id === Number(config.master)
: user =>
user && user.username && eq.username(user.username, config.master);
module.exports = { module.exports = {
isMaster, isMaster,