2019-11-26 21:22:24 +00:00
|
|
|
const config = {
|
|
|
|
"ownerID": "123456789123456",
|
|
|
|
|
|
|
|
"admins": [],
|
|
|
|
|
|
|
|
"support": [],
|
|
|
|
|
|
|
|
"token": "mfa.VkO_2G4Qv3T--NO--lWetW_tjND--TOKEN--QFTm6YGtzq9PH--4U--tG0",
|
|
|
|
|
|
|
|
"defaultSettings" : {
|
2019-12-24 01:43:35 +00:00
|
|
|
"prefix": "/",
|
2019-11-26 21:22:24 +00:00
|
|
|
"modLogChannel": "mod-log",
|
|
|
|
"modRole": "Moderator",
|
|
|
|
"adminRole": "Administrator",
|
2019-12-24 01:43:35 +00:00
|
|
|
"systemNotice": "true",
|
2019-11-26 21:22:24 +00:00
|
|
|
"welcomeChannel": "welcome",
|
|
|
|
"welcomeMessage": "Say hello to {{user}}, everyone! We all need a warm welcome sometimes :D",
|
|
|
|
"welcomeEnabled": "false"
|
|
|
|
},
|
|
|
|
|
|
|
|
permLevels: [
|
|
|
|
{ level: 0,
|
|
|
|
name: "User",
|
|
|
|
check: () => true
|
|
|
|
},
|
|
|
|
|
|
|
|
{ level: 2,
|
|
|
|
name: "Moderator",
|
|
|
|
check: (message) => {
|
|
|
|
try {
|
|
|
|
const modRole = message.guild.roles.find(r => r.name.toLowerCase() === message.settings.modRole.toLowerCase());
|
|
|
|
if (modRole && message.member.roles.has(modRole.id)) return true;
|
|
|
|
} catch (e) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
{ level: 3,
|
|
|
|
name: "Administrator",
|
|
|
|
check: (message) => {
|
|
|
|
try {
|
|
|
|
const adminRole = message.guild.roles.find(r => r.name.toLowerCase() === message.settings.adminRole.toLowerCase());
|
|
|
|
return (adminRole && message.member.roles.has(adminRole.id));
|
|
|
|
} catch (e) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2019-12-24 01:43:35 +00:00
|
|
|
|
2019-11-26 21:22:24 +00:00
|
|
|
{ level: 4,
|
|
|
|
name: "Server Owner",
|
|
|
|
check: (message) => message.channel.type === "text" ? (message.guild.ownerID === message.author.id ? true : false) : false
|
|
|
|
},
|
|
|
|
|
|
|
|
{ level: 8,
|
|
|
|
name: "Bot Support",
|
|
|
|
check: (message) => config.support.includes(message.author.id)
|
|
|
|
},
|
|
|
|
|
|
|
|
{ level: 9,
|
|
|
|
name: "Bot Admin",
|
|
|
|
check: (message) => config.admins.includes(message.author.id)
|
|
|
|
},
|
|
|
|
|
|
|
|
{ level: 10,
|
|
|
|
name: "Bot Owner",
|
|
|
|
check: (message) => message.client.config.ownerID === message.author.id
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = config;
|