%- include("../includes/head") %>
<%- include("../includes/header") %> <%- include("../includes/sidebar") %>
<%= translate("common:CONFIGURATION") %>
Dashboard v1.0
<%= translate("dashboard:SELECTOR") %>
<%= guild.name %>
<%= guild.name %>
<%= guild.id %>
<%= translate("common:LEVEL") %>
<%= guild.members.find(u => u.id === user.id).level %>
<%= translate("common:CREDITS") %> / <%= translate("economy/transactions:BANK") %>
<%= guild.members.find(u => u.id === user.id).money %> / <%= guild.members.find(u => u.id === user.id).bankSold %>
<%= translate("dashboard:COOLDOWNS") %>
<% for (const c in memberData.cooldowns) { %> <% if (c !== "rob") { %>
<%= translate("dashboard:" + c.toUpperCase()) %>: <%= memberData.cooldowns[c] !== 0 ? convertTime(memberData.cooldowns[c]) : translate("dashboard:CAN_USE") %>
<% } else { %>
<%= translate("dashboard:" + c.toUpperCase()) %>: <%= memberData.cooldowns[c] !== 0 ? convertTime(memberData.cooldowns[c]) : translate("dashboard:NO_DEFENCE") %>
<% }; %> <% }; %>
<%= translate("dashboard:BASIC_CONF") %>
<%= translate("common:PREFIX") %>
<%= translate("common:LANGUAGE") %>
<% bot.languages.forEach((language) => { %> <% if (guild.language === language.name) { %>
<%= language.aliases[0] %>
<% } else { %>
<%= language.aliases[0] %> <% } %> <% }) %>
<%= translate("dashboard:CHANNELS_CONF") %>
<%= translate("common:SUGGESTIONS") %>
<% if (guild.plugins.suggestions && bot.channels.cache.has(guild.plugins.suggestions)) { %>
#<%= bot.channels.cache.get(guild.plugins.suggestions).name %>
<% guild.channels.cache.filter((ch) => ch.type === "GUILD_TEXT" && ch.id !== guild.plugins.suggestions).forEach((ch) => { %>
#<%= ch.name %>
<% }); %>
<%= translate("common:NO_CHANNEL") %>
<% } else { %>
<%= translate("common:NO_CHANNEL") %>
<% guild.channels.cache.filter((ch) => ch.type === "GUILD_TEXT").forEach((ch) => { %>
#<%= ch.name %>
<% }); %> <% } %>
<%= translate("common:REPORTS") %>
<% if (guild.plugins.reports && bot.channels.cache.has(guild.plugins.reports)) { %>
#<%= bot.channels.cache.get(guild.plugins.reports).name %>
<% guild.channels.cache.filter((ch) => ch.type === "GUILD_TEXT" && ch.id !== guild.plugins.reports).forEach((ch) => { %>
#<%= ch.name %>
<% }); %>
<%= translate("common:NO_CHANNEL") %>
<% } else { %>
<%= translate("common:NO_CHANNEL") %>
<% guild.channels.cache.filter((ch) => ch.type === "GUILD_TEXT").forEach((ch) => { %>
#<%= ch.name %>
<% }); %> <% } %>
<%= translate("common:MODLOGS") %>
<% if (guild.plugins.modlogs && bot.channels.cache.has(guild.plugins.modlogs)) { %>
#<%= bot.channels.cache.get(guild.plugins.modlogs).name %>
<% guild.channels.cache.filter((ch) => ch.type === "GUILD_TEXT" && ch.id !== guild.plugins.modlogs).forEach((ch) => { %>
#<%= ch.name %>
<% }); %>
<%= translate("common:NO_CHANNEL") %>
<% } else { %>
<%= translate("common:NO_CHANNEL")%>
<% guild.channels.cache.filter((ch) => ch.type === "GUILD_TEXT").forEach((ch) => { %>
#<%= ch.name %>
<% }); %> <% } %>
<%= translate("common:BIRTHDAYS") %>
<% if (guild.plugins.birthdays && bot.channels.cache.has(guild.plugins.birthdays)) { %>
#<%= bot.channels.cache.get(guild.plugins.birthdays).name %>
<% guild.channels.cache.filter((ch) => ch.type === "GUILD_TEXT" && ch.id !== guild.plugins.birthdays).forEach((ch) => { %>
#<%= ch.name %>
<% }); %>
<%= translate("common:NO_CHANNEL") %>
<% } else { %>
<%= translate("common:NO_CHANNEL") %>
<% guild.channels.cache.filter((ch) => ch.type === "GUILD_TEXT").forEach((ch) => { %>
#<%= ch.name %>
<% }); %> <% } %>
<%= translate("dashboard:WELCOME_CONF") %>
<%= translate("common:MESSAGE") %>
<%= (guild.plugins.welcome.message || translate("administration/welcome:DEFAULT_MESSAGE")) %>
<%= translate("common:CHANNEL") %>
<% if (guild.plugins.welcome.enabled && bot.channels.cache.has(guild.plugins.welcome.channel)) { %>
#<%= bot.channels.cache.get(guild.plugins.welcome.channel).name %>
<% guild.channels.cache.filter((ch) => ch.id !== guild.plugins.welcome.channel && ch.type === "GUILD_TEXT").forEach((ch) => { %>
#<%= ch.name %>
<% }); } else { %>
#<%= guild.channels.cache.filter((ch) => ch.type === "GUILD_TEXT").first().name %>
<% guild.channels.cache.filter((ch) => ch.id !== guild.channels.cache.first().id && ch.type === "GUILD_TEXT").forEach((ch) => { %>
#<%= ch.name %>
<% }); %> <% } %>
<% if (guild.plugins.welcome.withImage || !guild.plugins.welcome.enabled) { %>
<%= translate("dashboard:WELCOME_IMG") %> <% } else { %>
<%= translate("dashboard:WELCOME_IMG") %> <% } %>
<%= translate("dashboard:GOODBYE_CONF") %>
<%= translate("common:MESSAGE") %>
<%= (guild.plugins.goodbye.message || translate("administration/goodbye:DEFAULT_MESSAGE")) %>
<%= translate("common:CHANNEL") %>
<% if (guild.plugins.goodbye.enabled && bot.channels.cache.has(guild.plugins.goodbye.channel)) { %>
#<%= bot.channels.cache.get(guild.plugins.goodbye.channel).name %>
<% guild.channels.cache.filter((ch) => ch.id !== guild.plugins.goodbye.channel && ch.type === "GUILD_TEXT").forEach((ch) => { %>
#<%= ch.name %>
<% }); } else { %>
#<%= guild.channels.cache.filter((ch) => ch.type === "GUILD_TEXT").first().name %>
<% guild.channels.cache.filter((ch) => ch.id !== guild.channels.cache.first().id && ch.type === "GUILD_TEXT").forEach((ch) => { %>
#<%= ch.name %>
<% }); %> <% } %>
<% if (guild.plugins.goodbye.withImage || !guild.plugins.goodbye.enabled) { %>
<%= translate("dashboard:GOODBYE_IMG") %> <% } else { %>
<%= translate("dashboard:GOODBYE_IMG") %> <% } %>
<%= translate("dashboard:AUTOROLE_CONF") %>
<%= translate("common:ROLE") %>
<% if (guild.plugins.autorole.enabled && guild.roles.cache.has(guild.plugins.autorole.role)) { %>
@<%= guild.roles.cache.get(guild.plugins.autorole.role).name %>
<% guild.roles.cache.filter((r) => r.id !== guild.plugins.autorole.role && r.name !== "@everyone").forEach((r) => { %>
@<%= r.name %>
<% }); } else { %>
@<%= guild.roles.cache.filter((r) => r.name !== "@everyone").first().name %>
<% guild.roles.cache.filter((r) => r.id !== guild.roles.cache.filter((r) => r.name !== "@everyone").first().id && r.name !== "@everyone").forEach((r) => { %>
@<%= r.name %>
<% }); %> <% } %>
<%- include("../includes/footer") %>