2022-01-04 02:18:28 +05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<%- include("../includes/head") %>
|
|
|
|
|
|
|
|
<body class="hold-transition skin-red sidebar-mini">
|
|
|
|
|
|
|
|
<div class="wrapper">
|
|
|
|
|
|
|
|
<!-- The header is the topbar -->
|
|
|
|
<%- include("../includes/header") %>
|
|
|
|
|
|
|
|
<!-- The sidebar includes the menu -->
|
|
|
|
<%- include("../includes/sidebar") %>
|
|
|
|
|
|
|
|
<!-- Content Wrapper. Contains page content -->
|
|
|
|
<div class="content-wrapper">
|
|
|
|
|
|
|
|
<!-- Content Header (Page header) -->
|
|
|
|
<section class="content-header">
|
2022-08-09 23:48:33 +05:00
|
|
|
<h1> <%= translate("common:SETTINGS") %> <small> Dashboard v1.1 </small> </h1>
|
2022-01-04 02:18:28 +05:00
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li><a href="/"><i class="fa fa-home"></i> <%= translate("dashboard:SELECTOR") %></a></li>
|
|
|
|
<li class="active"><%= guild.name %></li>
|
|
|
|
</ol>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="content">
|
2022-01-12 21:39:34 +05:00
|
|
|
<!-- Info boxes -->
|
2022-01-04 02:18:28 +05:00
|
|
|
<div class="row">
|
2022-01-12 21:39:34 +05:00
|
|
|
<div class="col-md-2 col-sm-6 col-xs-12">
|
2022-01-12 20:31:47 +05:00
|
|
|
<div class="info-box">
|
2022-01-13 18:55:13 +05:00
|
|
|
<span class="info-box-icon bg-red"><i class="fa fa-area-chart"></i></span>
|
2022-01-12 20:31:47 +05:00
|
|
|
<div class="info-box-content">
|
|
|
|
<span class="info-box-text"><%= translate("common:LEVEL") %></span>
|
2022-01-13 15:37:21 +05:00
|
|
|
<span class="info-box-number"><%= memberData.level %></span>
|
2022-01-12 20:31:47 +05:00
|
|
|
</div>
|
|
|
|
<!-- /.info-box-content -->
|
|
|
|
</div>
|
2022-01-12 21:39:34 +05:00
|
|
|
<!-- /.info-box -->
|
|
|
|
</div>
|
|
|
|
<!-- /.col -->
|
|
|
|
<div class="col-md-2 col-sm-6 col-xs-12">
|
|
|
|
<div class="info-box">
|
2022-01-13 18:55:13 +05:00
|
|
|
<span class="info-box-icon bg-red"><i class="fa fa-line-chart"></i></span>
|
2022-01-12 21:39:34 +05:00
|
|
|
<div class="info-box-content">
|
2022-08-09 23:48:33 +05:00
|
|
|
<span class="info-box-text"><%= translate("economy/profile:XP").substr(2) %></span>
|
2022-01-13 15:37:21 +05:00
|
|
|
<span class="info-box-number"><%= memberData.exp %> / <%= 5 * (memberData.level * memberData.level) + 80 * memberData.level + 100 %></span>
|
2022-01-12 21:39:34 +05:00
|
|
|
</div>
|
|
|
|
<!-- /.info-box-content -->
|
|
|
|
</div>
|
|
|
|
<!-- /.info-box -->
|
|
|
|
</div>
|
|
|
|
<!-- /.col -->
|
|
|
|
<div class="col-md-2 col-sm-6 col-xs-12">
|
2022-01-12 20:31:47 +05:00
|
|
|
<div class="info-box">
|
|
|
|
<span class="info-box-icon bg-green"><i class="fa fa-money"></i></span>
|
|
|
|
<div class="info-box-content">
|
2022-01-13 18:55:13 +05:00
|
|
|
<span class="info-box-text"><%= translate("economy/profile:CASH").substr(2) %> / <%= translate("economy/profile:BANK").substr(2) %></span>
|
2022-01-13 15:37:21 +05:00
|
|
|
<span class="info-box-number"><%= memberData.money %> / <%= memberData.bankSold %></span>
|
2022-01-12 20:31:47 +05:00
|
|
|
</div>
|
|
|
|
<!-- /.info-box-content -->
|
|
|
|
</div>
|
|
|
|
<!-- /.info-box -->
|
2022-01-12 21:39:34 +05:00
|
|
|
</div>
|
|
|
|
<!-- /.col -->
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="box box-widget widget-user">
|
|
|
|
<div class="widget-user-header bg-red">
|
2022-02-07 00:30:08 +05:00
|
|
|
<h3 class="widget-user-username"><%= guild.name %> (<%= guild.id %>)</h3>
|
2022-01-12 21:39:34 +05:00
|
|
|
</div>
|
|
|
|
<div class="widget-user-image">
|
|
|
|
<img class="img-circle" src="<%= guild.iconURL %>" alt="Server icon">
|
|
|
|
</div>
|
|
|
|
<div class="box-footer">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12 border-right">
|
|
|
|
<div class="description-block">
|
|
|
|
<h5 class="description-header"><%= guild.memberCount %></h5>
|
|
|
|
<span class="description-text"><%= translate("common:MEMBERS") %></span>
|
|
|
|
</div>
|
|
|
|
<!-- /.description-block -->
|
|
|
|
</div>
|
|
|
|
<!-- /.col -->
|
|
|
|
</div>
|
|
|
|
<!-- /.row -->
|
|
|
|
</div>
|
|
|
|
<!-- /.box-footer -->
|
|
|
|
</div>
|
2022-01-04 02:18:28 +05:00
|
|
|
<!-- BASIC CONFIGURATION -->
|
|
|
|
<div class="box box-warning">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title"><%= translate("dashboard:BASIC_CONF") %></h3>
|
|
|
|
</div>
|
|
|
|
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
|
|
|
<!-- /.box-header -->
|
|
|
|
<div class="box-body">
|
|
|
|
<!-- select -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label><%= translate("common:LANGUAGE") %></label>
|
|
|
|
<select class="form-control" name="language">
|
2022-08-04 19:26:17 +05:00
|
|
|
<% bot.languages.forEach(language => { %>
|
2022-01-13 15:37:21 +05:00
|
|
|
<% if (guild.language === language.name) { %>
|
|
|
|
<option selected="selected"><%= language.nativeName %></option>
|
|
|
|
<% } else { %>
|
|
|
|
<option><%= language.nativeName %></options>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } %>
|
2022-01-13 15:37:21 +05:00
|
|
|
<% }) %>
|
2022-01-04 02:18:28 +05:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.box-body -->
|
|
|
|
<div class="box-footer">
|
|
|
|
<button type="submit"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-primary"><%= translate("common:APPLY") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- /.box -->
|
|
|
|
<!-- SPECIAL CHANNELS -->
|
|
|
|
<div class="box box-warning">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title"><%= translate("dashboard:CHANNELS_CONF") %></h3>
|
|
|
|
</div>
|
|
|
|
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
|
|
|
<!-- /.box-header -->
|
|
|
|
<div class="box-body">
|
|
|
|
<!-- select -->
|
|
|
|
<div class="form-group">
|
2022-08-08 18:19:56 +05:00
|
|
|
<label><%= translate("dashboard:NEWS") %></label>
|
|
|
|
<select class="form-control" name="news">
|
|
|
|
<% if (guild.plugins.news && bot.channels.cache.has(guild.plugins.news)) { %>
|
|
|
|
<option selected="selected">
|
|
|
|
#<%= bot.channels.cache.get(guild.plugins.news).name %></option>
|
|
|
|
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText && ch.id !== guild.plugins.news).forEach(ch => { %>
|
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
|
|
|
<option><%= translate("dashboard:NO_CHANNEL") %></option>
|
|
|
|
<% } else { %>
|
|
|
|
<option selected="selected"><%= translate("dashboard:NO_CHANNEL") %></option>
|
|
|
|
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).forEach(ch => { %>
|
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
|
|
|
<% } %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label><%= translate("dashboard:SUGGESTIONS") %></label>
|
2022-01-04 02:18:28 +05:00
|
|
|
<select class="form-control" name="suggestions">
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.suggestions && bot.channels.cache.has(guild.plugins.suggestions)) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option selected="selected">
|
|
|
|
#<%= bot.channels.cache.get(guild.plugins.suggestions).name %></option>
|
2022-08-08 18:19:56 +05:00
|
|
|
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText && ch.id !== guild.plugins.suggestions).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
2022-08-08 18:19:56 +05:00
|
|
|
<option><%= translate("dashboard:NO_CHANNEL") %></option>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } else { %>
|
2022-08-08 18:19:56 +05:00
|
|
|
<option selected="selected"><%= translate("dashboard:NO_CHANNEL") %></option>
|
|
|
|
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
|
|
|
<% } %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2022-08-08 18:19:56 +05:00
|
|
|
<label><%= translate("dashboard:REPORTS") %></label>
|
2022-01-04 02:18:28 +05:00
|
|
|
<select class="form-control" name="reports">
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.reports && bot.channels.cache.has(guild.plugins.reports)) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option selected="selected">
|
|
|
|
#<%= bot.channels.cache.get(guild.plugins.reports).name %></option>
|
2022-08-08 18:19:56 +05:00
|
|
|
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText && ch.id !== guild.plugins.reports).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
2022-08-08 18:19:56 +05:00
|
|
|
<option><%= translate("dashboard:NO_CHANNEL") %></option>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } else { %>
|
2022-08-08 18:19:56 +05:00
|
|
|
<option selected="selected"><%= translate("dashboard:NO_CHANNEL") %></option>
|
|
|
|
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
|
|
|
<% } %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2022-08-08 18:19:56 +05:00
|
|
|
<label><%= translate("dashboard:MODLOGS") %></label>
|
2022-01-04 02:18:28 +05:00
|
|
|
<select class="form-control" name="modlogs">
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.modlogs && bot.channels.cache.has(guild.plugins.modlogs)) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option selected="selected">
|
|
|
|
#<%= bot.channels.cache.get(guild.plugins.modlogs).name %></option>
|
2022-08-08 18:19:56 +05:00
|
|
|
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText && ch.id !== guild.plugins.modlogs).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
2022-08-08 18:19:56 +05:00
|
|
|
<option><%= translate("dashboard:NO_CHANNEL") %></option>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } else { %>
|
2022-08-08 18:19:56 +05:00
|
|
|
<option selected="selected"><%= translate("dashboard:NO_CHANNEL")%></option>
|
|
|
|
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
|
|
|
<% } %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2022-08-08 18:19:56 +05:00
|
|
|
<label><%= translate("dashboard:BIRTHDAYS") %></label>
|
2022-01-04 02:18:28 +05:00
|
|
|
<select class="form-control" name="birthdays">
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.birthdays && bot.channels.cache.has(guild.plugins.birthdays)) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option selected="selected">
|
|
|
|
#<%= bot.channels.cache.get(guild.plugins.birthdays).name %></option>
|
2022-08-08 18:19:56 +05:00
|
|
|
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText && ch.id !== guild.plugins.birthdays).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
2022-08-08 18:19:56 +05:00
|
|
|
<option><%= translate("dashboard:NO_CHANNEL") %></option>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } else { %>
|
2022-08-08 18:19:56 +05:00
|
|
|
<option selected="selected"><%= translate("dashboard:NO_CHANNEL") %></option>
|
|
|
|
<% guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
|
|
|
<% } %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.box-body -->
|
|
|
|
<div class="box-footer">
|
|
|
|
<button type="submit"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-primary"><%= translate("common:APPLY") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- /.box -->
|
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<!-- WELCOME CONFIGURATION -->
|
|
|
|
<div class="box box-success">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title"><%= translate("dashboard:WELCOME_CONF") %></h3>
|
|
|
|
</div>
|
|
|
|
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
|
|
|
<!-- /.box-header -->
|
|
|
|
<div class="box-body">
|
|
|
|
<!-- text input -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label><%= translate("common:MESSAGE") %></label>
|
|
|
|
<textarea rows="3" name="message" class="form-control"
|
|
|
|
required><%= (guild.plugins.welcome.message || translate("administration/welcome:DEFAULT_MESSAGE")) %></textarea>
|
|
|
|
</div>
|
|
|
|
<!-- select -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label><%= translate("common:CHANNEL") %></label>
|
|
|
|
<select class="form-control" name="channel">
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.welcome.enabled && bot.channels.cache.has(guild.plugins.welcome.channel)) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option selected="selected">
|
|
|
|
#<%= bot.channels.cache.get(guild.plugins.welcome.channel).name %>
|
|
|
|
</option>
|
2022-08-08 18:19:56 +05:00
|
|
|
<% guild.channels.cache.filter(ch => ch.id !== guild.plugins.welcome.channel && ch.type === ChannelType.GuildText).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); } else { %>
|
|
|
|
<option selected="selected">
|
2022-08-08 18:19:56 +05:00
|
|
|
#<%= guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).first().name %>
|
2022-01-04 02:18:28 +05:00
|
|
|
</option>
|
2022-08-08 18:19:56 +05:00
|
|
|
<% guild.channels.cache.filter(ch => ch.id !== guild.channels.cache.first().id && ch.type === ChannelType.GuildText).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
|
|
|
<% } %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<!-- select -->
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.welcome.withImage || !guild.plugins.welcome.enabled) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<input type="checkbox" name="withImage"
|
|
|
|
checked><%= translate("dashboard:WELCOME_IMG") %>
|
|
|
|
<% } else { %>
|
|
|
|
<input type="checkbox"
|
|
|
|
name="withImage"><%= translate("dashboard:WELCOME_IMG") %>
|
|
|
|
<% } %>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.box-body -->
|
|
|
|
<div class="box-footer">
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.welcome.enabled) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<button type="submit" name="welcomeDisable"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-danger"><%= translate("common:DISABLE") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
<button type="submit" name="welcomeUpdate"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-primary pull-right"><%= translate("common:APPLY") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } else { %>
|
|
|
|
<button type="submit" name="welcomeEnable"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-success"><%= translate("common:ENABLE") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- GOODBYE CONFIGURATION -->
|
|
|
|
<div class="box box-danger">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title"><%= translate("dashboard:GOODBYE_CONF") %></h3>
|
|
|
|
</div>
|
|
|
|
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
|
|
|
<!-- /.box-header -->
|
|
|
|
<div class="box-body">
|
|
|
|
<!-- text input -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label><%= translate("common:MESSAGE") %></label>
|
|
|
|
<textarea rows="3" name="message" class="form-control"
|
|
|
|
required><%= (guild.plugins.goodbye.message || translate("administration/goodbye:DEFAULT_MESSAGE")) %></textarea>
|
|
|
|
</div>
|
|
|
|
<!-- select -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label><%= translate("common:CHANNEL") %></label>
|
|
|
|
<select class="form-control" name="channel">
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.goodbye.enabled && bot.channels.cache.has(guild.plugins.goodbye.channel)) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option selected="selected">
|
|
|
|
#<%= bot.channels.cache.get(guild.plugins.goodbye.channel).name %>
|
|
|
|
</option>
|
2022-08-08 18:19:56 +05:00
|
|
|
<% guild.channels.cache.filter(ch => ch.id !== guild.plugins.goodbye.channel && ch.type === ChannelType.GuildText).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); } else { %>
|
|
|
|
<option selected="selected">
|
2022-08-08 18:19:56 +05:00
|
|
|
#<%= guild.channels.cache.filter(ch => ch.type === ChannelType.GuildText).first().name %>
|
2022-01-04 02:18:28 +05:00
|
|
|
</option>
|
2022-08-08 18:19:56 +05:00
|
|
|
<% guild.channels.cache.filter(ch => ch.id !== guild.channels.cache.first().id && ch.type === ChannelType.GuildText).forEach(ch => { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option>#<%= ch.name %></option>
|
|
|
|
<% }); %>
|
|
|
|
<% } %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<!-- select -->
|
|
|
|
<div class="form-group">
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.goodbye.withImage || !guild.plugins.goodbye.enabled) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<input type="checkbox" name="withImage"
|
|
|
|
checked><%= translate("dashboard:GOODBYE_IMG") %>
|
|
|
|
<% } else { %>
|
|
|
|
<input type="checkbox"
|
|
|
|
name="withImage"><%= translate("dashboard:GOODBYE_IMG") %>
|
|
|
|
<% } %>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.box-body -->
|
|
|
|
<div class="box-footer">
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.goodbye.enabled) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<button type="submit" name="goodbyeDisable"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-danger"><%= translate("common:DISABLE") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
<button type="submit" name="goodbyeUpdate"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-primary pull-right"><%= translate("common:APPLY") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } else { %>
|
|
|
|
<button type="submit" name="goodbyeEnable"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-success"><%= translate("common:ENABLE") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- AUTOROLE CONFIGURATION -->
|
|
|
|
<div class="box box-warning">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title"><%= translate("dashboard:AUTOROLE_CONF") %></h3>
|
|
|
|
</div>
|
|
|
|
<form role="form" action="/manage/<%= guild.id %>/" method="POST">
|
|
|
|
<!-- /.box-header -->
|
|
|
|
<div class="box-body">
|
|
|
|
<!-- select -->
|
|
|
|
<div class="form-group">
|
|
|
|
<label><%= translate("common:ROLE") %></label>
|
|
|
|
<select class="form-control" name="role">
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.autorole.enabled && guild.roles.cache.has(guild.plugins.autorole.role)) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<option selected="selected">
|
|
|
|
@<%= guild.roles.cache.get(guild.plugins.autorole.role).name %></option>
|
|
|
|
<% guild.roles.cache.filter((r) => r.id !== guild.plugins.autorole.role && r.name !== "@everyone").forEach((r) => { %>
|
|
|
|
<option>@<%= r.name %></option>
|
|
|
|
<% }); } else { %>
|
|
|
|
<option selected="selected">
|
|
|
|
@<%= guild.roles.cache.filter((r) => r.name !== "@everyone").first().name %>
|
|
|
|
</option>
|
|
|
|
<% guild.roles.cache.filter((r) => r.id !== guild.roles.cache.filter((r) => r.name !== "@everyone").first().id && r.name !== "@everyone").forEach((r) => { %>
|
|
|
|
<option>@<%= r.name %></option>
|
|
|
|
<% }); %>
|
|
|
|
<% } %>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.box-body -->
|
|
|
|
<div class="box-footer">
|
2022-01-12 20:31:47 +05:00
|
|
|
<% if (guild.plugins.autorole.enabled) { %>
|
2022-01-04 02:18:28 +05:00
|
|
|
<button type="submit" name="autoroleDisable"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-danger"><%= translate("common:DISABLE") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
<button type="submit" name="autoroleUpdate"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-primary pull-right"><%= translate("common:APPLY") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } else { %>
|
|
|
|
<button type="submit" name="autoroleEnable"
|
2022-08-09 23:48:33 +05:00
|
|
|
class="btn btn-success"><%= translate("common:ENABLE") %></button>
|
2022-01-04 02:18:28 +05:00
|
|
|
<% } %>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<!-- /.box -->
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Footer includes credits and version -->
|
|
|
|
</div>
|
|
|
|
<!-- /.content-wrapper -->
|
|
|
|
|
|
|
|
<%- include("../includes/footer") %>
|
|
|
|
</div>
|
|
|
|
<!-- ./wrapper -->
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|