nitpicks
This commit is contained in:
parent
ea11dbba01
commit
c282448d5b
12 changed files with 20 additions and 19 deletions
|
@ -9,10 +9,12 @@ export const cmd: Command = {
|
|||
const embed = new MessageEmbed()
|
||||
.setTitle('Help Menu')
|
||||
.setColor('DARK_GREEN');
|
||||
let comman = commands;
|
||||
|
||||
const comman = commands;
|
||||
comman.sort((x, y) => {
|
||||
return x.name == 'help' ? -1 : y.name == 'help' ? 1 : 0;
|
||||
});
|
||||
|
||||
for (const i in comman) {
|
||||
const cmd = comman[i];
|
||||
const resp = [];
|
||||
|
@ -27,6 +29,7 @@ export const cmd: Command = {
|
|||
}
|
||||
embed.addField('!' + cmd.name, resp.join('\n'));
|
||||
}
|
||||
|
||||
return e.reply({ embeds: [embed] });
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Command } from '../index';
|
||||
import type { Command } from '../index';
|
||||
|
||||
export const cmd: Command = {
|
||||
name: 'members',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Command } from '../index';
|
||||
import type { Command } from '../index';
|
||||
|
||||
export const cmd: Command = {
|
||||
name: 'ping',
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Command } from '../index';
|
||||
import type { Command } from '../index';
|
||||
|
||||
export const cmd: Command = {
|
||||
name: 'stars',
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { MessageEmbed } from 'discord.js';
|
||||
import { Command } from '../index';
|
||||
import type { Command } from '../index';
|
||||
import { tags } from '../index';
|
||||
|
||||
export const cmd: Command = {
|
||||
|
@ -8,11 +8,11 @@ export const cmd: Command = {
|
|||
exec: async (e) => {
|
||||
const em = new MessageEmbed().setTitle('tags').setColor('DARK_GREEN');
|
||||
|
||||
for (let i in tags) {
|
||||
for (const i in tags) {
|
||||
const tag = tags[i];
|
||||
let text = '';
|
||||
if (tag.aliases && tag.aliases[0]) {
|
||||
text += '**Aliases**: ' + tag.aliases.join(', ') + "\n";
|
||||
text += '**Aliases**: ' + tag.aliases.join(', ') + '\n';
|
||||
}
|
||||
|
||||
if (tag.text) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue