%- include("../includes/head") %>
<%- include("../includes/header") %> <%- include("../includes/sidebar") %>
<%= translate("common:SETTINGS") %>
Dashboard v1.1
<%= translate("dashboard:SELECTOR") %>
<%= guild.name %>
<%= translate("common:LEVEL") %>
<%= memberData.level %>
<%= translate("economy/profile:XP").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:LANGUAGE") %>
<% bot.languages.forEach(language => { %> <% if (guild.language === language.name) { %>
<%= language.nativeName %>
<% } else { %>
<%= language.nativeName %> <% } %> <% }) %>
<%= translate("dashboard:CHANNELS_CONF") %>
<%= translate("dashboard:NEWS") %>
<% if (guild.plugins.news && bot.channels.cache.has(guild.plugins.news)) { %>
#<%= bot.channels.cache.get(guild.plugins.news).name %>
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText && ch.id !== guild.plugins.news).forEach(ch => { %>
#<%= ch.name %>
<% }); %>
<%= translate("dashboard:NO_CHANNEL") %>
<% } else { %>
<%= translate("dashboard:NO_CHANNEL") %>
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).forEach(ch => { %>
#<%= ch.name %>
<% }); %> <% } %>
<%= translate("dashboard: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 === ChannelType.GuildText && ch.id !== guild.plugins.suggestions).forEach(ch => { %>
#<%= ch.name %>
<% }); %>
<%= translate("dashboard:NO_CHANNEL") %>
<% } else { %>
<%= translate("dashboard:NO_CHANNEL") %>
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).forEach(ch => { %>
#<%= ch.name %>
<% }); %> <% } %>
<%= translate("dashboard: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 === ChannelType.GuildText && ch.id !== guild.plugins.reports).forEach(ch => { %>
#<%= ch.name %>
<% }); %>
<%= translate("dashboard:NO_CHANNEL") %>
<% } else { %>
<%= translate("dashboard:NO_CHANNEL") %>
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).forEach(ch => { %>
#<%= ch.name %>
<% }); %> <% } %>
<%= translate("dashboard: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 === ChannelType.GuildText && ch.id !== guild.plugins.modlogs).forEach(ch => { %>
#<%= ch.name %>
<% }); %>
<%= translate("dashboard:NO_CHANNEL") %>
<% } else { %>
<%= translate("dashboard:NO_CHANNEL")%>
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).forEach(ch => { %>
#<%= ch.name %>
<% }); %> <% } %>
<%= translate("dashboard: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 === ChannelType.GuildText && ch.id !== guild.plugins.birthdays).forEach(ch => { %>
#<%= ch.name %>
<% }); %>
<%= translate("dashboard:NO_CHANNEL") %>
<% } else { %>
<%= translate("dashboard:NO_CHANNEL") %>
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).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 === ChannelType.GuildText).forEach(ch => { %>
#<%= ch.name %>
<% }); } else { %>
#<%= guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).first().name %>
<% guild.channels.cache.filter(ch => ch.id !== guild.channels.cache.first().id && ch.type === ChannelType.GuildText).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 === ChannelType.GuildText).forEach(ch => { %>
#<%= ch.name %>
<% }); } else { %>
#<%= guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).first().name %>
<% guild.channels.cache.filter(ch => ch.id !== guild.channels.cache.first().id && ch.type === ChannelType.GuildText).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") %>