Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
dm user
Browse files Browse the repository at this point in the history
  • Loading branch information
Malachi authored and Malachi committed Apr 17, 2021
1 parent b359d9f commit 76174a2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
28 changes: 18 additions & 10 deletions commands/util/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,24 @@ module.exports = class Help extends Command {
await fields.push({ name: `**__${group.name}__**`, value: cmdList })
})

await message.embed({
title: `Mars Bot Help (Prefix: \`${message.guild.commandPrefix}\`)`,
url: 'https://github.com/mebrooks01/Mars-Bot/blob/main/README.md',
description:
"**Key**:\n⚠️ Guild Only\nArgument names enclosed in `[square brackets]` are optional. Ones enclosed in `<angle brackets>` are required. Ones enclosed in `['single quotes']` mean that you should type their name to toggle an option (instead of providing a value of your own). Ones separated by `<vertical | bars>` mean you can choose between one of them (this also applies to quoted arguments).\nPS Thx catte for the arguments explanation",
fields,
color: config.embed_color,
timestamp: new Date(),
thumbnail: { url: config.pfp }
})
try {
await message.author.send({
embed: {
title: `Mars Bot Help (Prefix: \`${message.guild.commandPrefix}\`)`,
url: 'https://github.com/mebrooks01/Mars-Bot/blob/main/README.md',
description:
"**Key**:\n⚠️ Guild Only\nArgument names enclosed in `[square brackets]` are optional. Ones enclosed in `<angle brackets>` are required. Ones enclosed in `['single quotes']` mean that you should type their name to toggle an option (instead of providing a value of your own). Ones separated by `<vertical | bars>` mean you can choose between one of them (this also applies to quoted arguments).\nPS Thx catte for the arguments explanation",
fields,
color: config.embed_color,
timestamp: new Date(),
thumbnail: { url: config.pfp }
}
})
await message.react('✅')
} catch (error) {
await message.reply('Could not send a DM to you\nYou probably have DMs off')
await message.react('❌')
}
fields = []
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mars-bot",
"version": "2.1.4",
"version": "2.1.5",
"description": "Using NASA's API it send mars related stuff via commands.",
"main": "index.js",
"scripts": {},
Expand Down

0 comments on commit 76174a2

Please sign in to comment.