Update configTemplate.js
This commit is contained in:
parent
3af8fdb2b0
commit
85be37097d
1 changed files with 65 additions and 64 deletions
|
@ -1,68 +1,69 @@
|
||||||
const config = {
|
const config = {
|
||||||
// ID's
|
// ID's
|
||||||
"owners": ["433790467830972417", "324937993972350976"],
|
"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.
|
||||||
|
|
||||||
// Tokens
|
// Tokens
|
||||||
"token": "",
|
"token": "", // Your bot's token.
|
||||||
"devtoken": "",
|
"devtoken": "", // (optional) another token, meant for a bot used for development
|
||||||
"ytkey": "",
|
"ytkey": "", // Youtube API key, needed for music searching to work
|
||||||
"dblkey": "",
|
"dblkey": "", // top.gg key, sends bot statistics to top.gg. You do not need this.
|
||||||
|
|
||||||
// Default per-server settings
|
// Default per-server settings
|
||||||
"defaultSettings" : {
|
"defaultSettings" : {
|
||||||
"prefix": "~",
|
"prefix": "~",
|
||||||
"devprefix": "!",
|
"devprefix": "!",
|
||||||
"modRole": "None set",
|
"modRole": "None set",
|
||||||
"adminRole": "None set",
|
"adminRole": "None set",
|
||||||
"mutedRole": "None set",
|
"mutedRole": "None set",
|
||||||
"autorole": "off",
|
"autorole": "off",
|
||||||
"welcomeChannel": "off",
|
"welcomeChannel": "off",
|
||||||
"welcomeMessage": "off",
|
"welcomeMessage": "off",
|
||||||
"leaveMessage": "off",
|
"leaveMessage": "off",
|
||||||
"chatlogsChannel": "off",
|
"chatlogsChannel": "off",
|
||||||
"modlogsChannel": "off",
|
"modlogsChannel": "off",
|
||||||
"raidMode": "off",
|
"raidMode": "off",
|
||||||
"raidModeStrict": "off",
|
"raidModeStrict": "off",
|
||||||
"blacklisted": "ARRAY",
|
"blacklisted": "ARRAY",
|
||||||
"botChannels": "ARRAY",
|
"botChannels": "ARRAY",
|
||||||
"AFK": "ARRAY",
|
"AFK": "ARRAY",
|
||||||
"SAR": "ARRAY"
|
"SAR": "ARRAY",
|
||||||
|
"customCommands": "ARRAY",
|
||||||
|
},
|
||||||
|
|
||||||
|
// Perm levels
|
||||||
|
permLevels: [
|
||||||
|
{ level: 0,
|
||||||
|
name: "User",
|
||||||
|
check: () => true
|
||||||
},
|
},
|
||||||
|
|
||||||
// Perm levels
|
{ level: 1,
|
||||||
permLevels: [
|
name: "Moderator",
|
||||||
{ level: 0,
|
check: (message) => {
|
||||||
name: "User",
|
try {
|
||||||
check: () => true
|
if (message.member.roles.cache.has(message.settings.modRole)) return true;
|
||||||
},
|
} catch (e) {
|
||||||
|
return false;
|
||||||
{ level: 1,
|
|
||||||
name: "Moderator",
|
|
||||||
check: (message) => {
|
|
||||||
try {
|
|
||||||
if (message.member.roles.has(message.settings.modRole)) return true;
|
|
||||||
} catch (e) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
},
|
||||||
{ level: 2,
|
|
||||||
name: "Administrator",
|
{ level: 2,
|
||||||
check: (message) => {
|
name: "Administrator",
|
||||||
try {
|
check: (message) => {
|
||||||
if (message.member.roles.has(message.settings.adminRole)) return true;
|
try {
|
||||||
} catch (e) {
|
if (message.member.roles.cache.has(message.settings.adminRole) || message.member.permissions.has("ADMINISTRATOR")) return true;
|
||||||
return false;
|
} catch (e) {
|
||||||
}
|
return false;
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
|
},
|
||||||
{ level: 3,
|
|
||||||
name: "Server Owner",
|
{ level: 3,
|
||||||
check: (message) => message.channel.type === "text" ? (message.guild.ownerID === message.author.id ? true : false) : false
|
name: "Server Owner",
|
||||||
},
|
check: (message) => message.channel.type === "text" ? (message.guild.ownerID === message.author.id ? true : false) : false
|
||||||
]
|
},
|
||||||
};
|
]
|
||||||
|
};
|
||||||
module.exports = config;
|
|
||||||
|
module.exports = config;
|
||||||
|
|
Loading…
Reference in a new issue