mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 14:18:36 +02:00
Various Fixes and Improvements
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user