Update configTemplate.js

This commit is contained in:
Emily 2020-03-10 10:17:32 +11:00
parent 3af8fdb2b0
commit 85be37097d

View file

@ -1,12 +1,12 @@
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" : {
@ -26,7 +26,8 @@ const config = {
"blacklisted": "ARRAY", "blacklisted": "ARRAY",
"botChannels": "ARRAY", "botChannels": "ARRAY",
"AFK": "ARRAY", "AFK": "ARRAY",
"SAR": "ARRAY" "SAR": "ARRAY",
"customCommands": "ARRAY",
}, },
// Perm levels // Perm levels
@ -40,7 +41,7 @@ const config = {
name: "Moderator", name: "Moderator",
check: (message) => { check: (message) => {
try { try {
if (message.member.roles.has(message.settings.modRole)) return true; if (message.member.roles.cache.has(message.settings.modRole)) return true;
} catch (e) { } catch (e) {
return false; return false;
} }
@ -51,7 +52,7 @@ const config = {
name: "Administrator", name: "Administrator",
check: (message) => { check: (message) => {
try { try {
if (message.member.roles.has(message.settings.adminRole)) return true; if (message.member.roles.cache.has(message.settings.adminRole) || message.member.permissions.has("ADMINISTRATOR")) return true;
} catch (e) { } catch (e) {
return false; return false;
} }