mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-20 05:51:35 +02:00
Minor Changes in Help Command
This commit is contained in:
@@ -32,7 +32,7 @@ module.exports = class HelpCommand extends Command {
|
|||||||
if (commands.length === 1) {
|
if (commands.length === 1) {
|
||||||
return msg.say(stripIndents`
|
return msg.say(stripIndents`
|
||||||
__Command **${commands[0].name}**:__ *${commands[0].description}*
|
__Command **${commands[0].name}**:__ *${commands[0].description}*
|
||||||
${commands[0].guildOnly ? 'Usable Only in Servers' : 'Usable in Server and DM'}
|
${commands[0].guildOnly ? 'Usable Only in Servers' : 'Usable in Servers and DM'}
|
||||||
**Format:** ${msg.anyUsage(`${commands[0].name}${commands[0].format ? ` ${commands[0].format}` : ''}`)}
|
**Format:** ${msg.anyUsage(`${commands[0].name}${commands[0].format ? ` ${commands[0].format}` : ''}`)}
|
||||||
**Aliases:** ${commands[0].aliases.join(', ') || 'None'}
|
**Aliases:** ${commands[0].aliases.join(', ') || 'None'}
|
||||||
**Group:** ${commands[0].group.name}
|
**Group:** ${commands[0].group.name}
|
||||||
@@ -41,11 +41,9 @@ module.exports = class HelpCommand extends Command {
|
|||||||
} else if (commands.length > 1) {
|
} else if (commands.length > 1) {
|
||||||
return msg.say('Multiple Commands Found. Please be more specific.');
|
return msg.say('Multiple Commands Found. Please be more specific.');
|
||||||
} else {
|
} else {
|
||||||
return msg.say(
|
return msg.say(`Could not identify command. Use ${msg.usage(
|
||||||
`Could not identify command. Use ${msg.usage(
|
|
||||||
null, msg.channel.type === 'dm' ? null : undefined, msg.channel.type === 'dm' ? null : undefined
|
null, msg.channel.type === 'dm' ? null : undefined, msg.channel.type === 'dm' ? null : undefined
|
||||||
)} to view a list of commands you can use.`
|
)} to view a list of commands you can use.`);
|
||||||
);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const embed = new RichEmbed()
|
const embed = new RichEmbed()
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "17.2.9",
|
"version": "17.2.10",
|
||||||
"description": "A Discord Bot",
|
"description": "A Discord Bot",
|
||||||
"main": "shardingmanager.js",
|
"main": "shardingmanager.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user