Blacklists / Topic Settings / many more changes
This commit is contained in:
parent
3793241426
commit
34c1822e97
19 changed files with 317 additions and 131 deletions
|
@ -1,10 +1,15 @@
|
|||
const Command = require('../../src/structures/Command');
|
||||
|
||||
function Toggle(bool, ctx) {
|
||||
return bool ? `${ctx.utils.emotes.settings.on}*_ _*` : `${ctx.utils.emotes.settings.off}*_ _*`
|
||||
}
|
||||
|
||||
module.exports = class Settings extends Command {
|
||||
constructor() {
|
||||
super({
|
||||
name: 'settings',
|
||||
description: 'Show the Settings of this Server',
|
||||
aliases: [ 'config' ],
|
||||
aliases: ['config'],
|
||||
module: 'Settings',
|
||||
cooldown: 5,
|
||||
guildOnly: true,
|
||||
|
@ -12,6 +17,7 @@ module.exports = class Settings extends Command {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
async command(ctx) {
|
||||
const SettingsEmbed = new ctx.utils.discord.MessageEmbed();
|
||||
SettingsEmbed.setColor(ctx.config.color);
|
||||
|
@ -22,24 +28,19 @@ module.exports = class Settings extends Command {
|
|||
.addField('Prefixes', Server.prefix.join(', ') || `<@${ctx.client.user.id}> or \`'\``, false)
|
||||
.addField(
|
||||
'SourceFynnder',
|
||||
Server.SourceFynnder ? ctx.utils.emotes.settings.on : ctx.utils.emotes.settings.off,
|
||||
true
|
||||
Toggle(Server.SourceFynnder, ctx), true
|
||||
)
|
||||
.addField(
|
||||
'Shortlinks',
|
||||
Server.Shortlinks ? ctx.utils.emotes.settings.on : ctx.utils.emotes.settings.off,
|
||||
true
|
||||
)
|
||||
Toggle(Server.Shortlinks, ctx), true)
|
||||
.addBlankField(true)
|
||||
.addField(
|
||||
'Image Embeds',
|
||||
Server.embeds ? ctx.utils.emotes.settings.on : ctx.utils.emotes.settings.off,
|
||||
true
|
||||
Toggle(Server.embeds, ctx), true
|
||||
)
|
||||
.addField(
|
||||
'Image Text',
|
||||
Server.rp_text ? ctx.utils.emotes.settings.on : ctx.utils.emotes.settings.off,
|
||||
true
|
||||
Toggle(Server.rp_text, ctx), true
|
||||
);
|
||||
// .addField('Default Yiff', Server.default_yiff, true);
|
||||
ctx.send(SettingsEmbed);
|
||||
|
@ -51,4 +52,4 @@ module.exports = class Settings extends Command {
|
|||
ctx.send(SettingsEmbed);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue