%- include('../includes/head') %>
<%- include('../includes/header') %> <%- include('../includes/sidebar') %>
<%= translate("common:CONFIGURATION") %>
Dashboard v1.0
<%= translate("dashboard:SELECTOR") %>
<%= guild.name %>
<%= guild.name %>
<%= 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 === "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 === "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 === "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 === "text").forEach((ch) => { %>
#<%= ch.name %>
<% }); %> <% } %>
<%= translate("common:FORTNITESHOP") %>
<% if(guild.plugins.fortniteshop && bot.channels.cache.has(guild.plugins.fortniteshop)){ %>
#<%= bot.channels.cache.get(guild.plugins.fortniteshop).name %>
<% guild.channels.cache.filter((ch) => ch.type === "text" && ch.id !== guild.plugins.fortniteshop).forEach((ch) => { %>
#<%= ch.name %>
<% }); %>
<%= translate("common:NO_CHANNEL") %>
<% } else { %>
<%= translate("common:NO_CHANNEL")%>
<% guild.channels.cache.filter((ch) => ch.type === "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 === "text").forEach((ch) => { %>
#<%= ch.name %>
<% }); } else { %>
#<%= guild.channels.cache.filter((ch) => ch.type === "text").first().name %>
<% guild.channels.cache.filter((ch) => ch.id !== guild.channels.cache.first().id && ch.type === "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 === "text").forEach((ch) => { %>
#<%= ch.name %>
<% }); } else { %>
#<%= guild.channels.cache.filter((ch) => ch.type === "text").first().name %>
<% guild.channels.cache.filter((ch) => ch.id !== guild.channels.cache.first().id && ch.type === "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') %>