woomy/config.js

58 lines
1.2 KiB
JavaScript
Raw Normal View History

2020-03-30 16:01:13 +00:00
const config = {
// Users added to this embed get access to developer-level commands
devs: ['433790467830972417', '324937993972350976', '343081377249493044'],
// Default settings for individual users
defaultUserSettings: {
2020-03-31 07:59:09 +00:00
prefixes: ['~']
2020-03-30 16:01:13 +00:00
},
// Default per-guild settings
defaultGuildSettings: {
prefixes: ['~'],
systemNotice: true
},
2020-04-01 08:33:02 +00:00
// Permission levels
2020-03-30 16:01:13 +00:00
permLevels: [
{
level: 0,
name: 'User',
check: () => true
2020-04-01 08:33:02 +00:00
},
{
level: 1,
name: 'Moderator',
check: (message) => {
try {
if (message.member.roles.cache.has(message.settings.modRole)) return true
} catch (e) {
return false
}
}
},
{
level: 2,
name: 'Administrator',
check: (message) => {
try {
if (message.member.roles.cache.has(message.settings.adminRole) || message.member.permissions.has('ADMINISTRATOR')) return true
} catch (e) {
return false
}
}
},
{
level: 3,
name: 'Server Owner',
check: (message) => message.channel.type === 'text' ? (message.guild.ownerID === message.author.id) : false
2020-03-30 16:01:13 +00:00
}
]
}
module.exports = config