Various Fixes and Improvements

This commit is contained in:
Dragon Fire
2020-11-22 01:02:11 -05:00
parent 134836de7e
commit aa95415abb
9 changed files with 18 additions and 27 deletions
+2 -1
View File
@@ -183,7 +183,8 @@ module.exports = class YuGiOhGenCommand extends Command {
return res.toLowerCase();
}
async determineName(msg) {
async determineName(msg, monsterType) {
if (monsterType === 'token') return 'Token';
await msg.reply(stripIndents`
What name should your card have?
Respond with \`cancel\` to cancel the command. The command will automatically be cancelled in 60 seconds.
+4 -2
View File
@@ -30,7 +30,10 @@ module.exports = class HelpCommand extends Command {
const nsfw = msg.channel.nsfw || this.client.isOwner(msg.author);
const embed = new MessageEmbed()
.setTitle(`Command List (Page ${i + 1})`)
.setDescription(nsfw ? '' : 'Use in an NSFW channel to see NSFW commands.')
.setDescription(stripIndents`
To run a command, use ${msg.anyUsage('<command>')}.
${nsfw ? '' : 'Use in an NSFW channel to see NSFW commands.'}
`)
.setColor(0x00AE86);
embeds.push(embed);
}
@@ -52,7 +55,6 @@ module.exports = class HelpCommand extends Command {
embeds[embedIndex].addField(` ${group.name}`, commands.map(cmd => `\`${cmd.name}\``).join(' '));
}
const allShown = cmdCount === this.client.registry.commands.size;
embeds[0].setDescription(`To run a command, use ${msg.anyUsage('<command>')}.`);
embeds[embeds.length - 1]
.setFooter(`${this.client.registry.commands.size} Commands${allShown ? '' : ` (${cmdCount} Shown)`}`);
try {
+2 -1
View File
@@ -1,7 +1,8 @@
const Command = require('../../structures/Command');
const path = require('path');
const { reactIfAble } = require('../../util/Util');
const sounds = require('../../assets/json/airhorn');
const fs = require('fs');
const sounds = fs.readdirSync(path.join(__dirname, '..', '..', 'assets', 'sounds', 'airhorn'));
module.exports = class AirhornCommand extends Command {
constructor(client) {