%- include("../includes/head") %>
<%- include("../includes/header") %> <%- include("../includes/sidebar") %>
<%= translate("common:CONFIGURATION") %>
Dashboard v1.1
<%= translate("dashboard:SELECTOR") %>
<%= guild.name %>
<%= translate("common:LEVEL") %>
<%= memberData.level %>
<%= translate("economy/profile:EXP").substr(2) %>
<%= memberData.exp %> / <%= 5 * (memberData.level * memberData.level) + 80 * memberData.level + 100 %>
<%= translate("economy/profile:CASH").substr(2) %> / <%= translate("economy/profile:BANK").substr(2) %>
<%= memberData.money %> / <%= memberData.bankSold %>
<%= guild.name %> (<%= guild.id %>)
<%= translate("dashboard:BASIC_CONF") %>
<%= translate("common:PREFIX") %>
<%= translate("common:LANGUAGE") %>
<% bot.languages.forEach((language) => { %> <% if (guild.language === language.name) { %>
<%= language.nativeName %>
<% } else { %>
<%= language.nativeName %> <% } %> <% }) %>
<%= 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") %>