Blacklists / Topic Settings / many more changes

This commit is contained in:
ry 2020-01-03 17:27:32 +01:00
parent 3793241426
commit 34c1822e97
19 changed files with 317 additions and 131 deletions

View file

@ -1,6 +1,8 @@
const Command = require('../../src/structures/Command');
const { MessageEmbed, version: DiscordVersion } = require('discord.js');
const { developers, contributors, source, color } = require('../../config');
const {
MessageEmbed,
version: DiscordVersion
} = require('discord.js');
const db = require('quick.db');
const Backend = new db.table('backend');
module.exports = class Info extends Command {
@ -8,7 +10,7 @@ module.exports = class Info extends Command {
super({
name: 'info',
description: 'Show the Makers and Contributors of the Bot',
aliases: [ 'about' ],
aliases: ['about'],
module: 'General',
cooldown: 0,
guildOnly: false,
@ -18,8 +20,18 @@ module.exports = class Info extends Command {
async command(ctx) {
let result;
const {
developers,
contributors,
source,
color
} = ctx.vars
const contribs = [];
for (const { id, nick, reason } of contributors) {
for (const {
id,
nick,
reason
} of contributors) {
const user = await ctx.client.users.fetch(id);
contribs.push(`${user} (${nick}) - ${reason}`);
}
@ -50,4 +62,4 @@ module.exports = class Info extends Command {
ctx.send(CreditEmbed);
}
};
};