woomy/configTemplate.js

76 lines
2.1 KiB
JavaScript
Raw Normal View History

2020-01-25 11:10:56 +00:00
const config = {
2020-03-09 23:17:32 +00:00
// ID's
"owners": [], // Adding your ID here will give you access to dangerous commands like eval. Please be careful with who you add here! Eval can be used to modify the host machine.
2020-03-26 07:26:22 +00:00
// Host options
"devmodeEnabled": false, // true or false
"loggingServer": "", // server ID, or blank to disable
"startupLogs": "", // Channel ID, or blank to disable
"consoleLogs": "", // Channel ID, or blank to disable
2020-03-09 23:17:32 +00:00
// Tokens
"token": "", // Your bot's token.
"devtoken": "", // (optional) another token, meant for a bot used for development
"ytkey": "", // Youtube API key, needed for music searching to work
"dblkey": "", // top.gg key, sends bot statistics to top.gg. You do not need this.
// Default per-server settings
"defaultSettings" : {
"prefix": "~",
"devprefix": "!",
"modRole": "None set",
"adminRole": "None set",
"mutedRole": "None set",
"autorole": "off",
"welcomeChannel": "off",
"welcomeMessage": "off",
"leaveMessage": "off",
"chatlogsChannel": "off",
"modlogsChannel": "off",
"raidMode": "off",
"raidModeStrict": "off",
"blacklisted": "ARRAY",
"botChannels": "ARRAY",
"AFK": "ARRAY",
"SAR": "ARRAY",
"customCommands": "ARRAY",
},
// Perm levels
permLevels: [
{ level: 0,
name: "User",
check: () => true
2020-01-25 11:10:56 +00:00
},
2020-03-09 23:17:32 +00:00
{ level: 1,
name: "Moderator",
check: (message) => {
try {
if (message.member.roles.cache.has(message.settings.modRole)) return true;
} catch (e) {
return false;
2020-01-25 11:10:56 +00:00
}
2020-03-09 23:17:32 +00:00
}
},
{ 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;
2020-01-25 11:10:56 +00:00
}
2020-03-09 23:17:32 +00:00
}
},
{ level: 3,
name: "Server Owner",
check: (message) => message.channel.type === "text" ? (message.guild.ownerID === message.author.id ? true : false) : false
},
]
};
module.exports = config;