silvanus/slash-commands/commands.js
Skylar Grant 5ef905449d
Dev-v1.1.4 (#9)
* Add 24h growth indicator

* Fix float math

* Fix some bugs

* Trim decimals

* Add 24 hour observed growth

* Add beginning height option

* Changed startup message to ping me

* Add a ping reminder and setup command for it

* Setup automatic water reminders

* Improved workflows

* New water readiness system

* Documentation Time

* Fix slash command link

* Fix linebreaks

* Readability improvements

* Forgot to allow checking in prod

* Switch to ephemeral reply

* Restructuring and new help messages

* Not meant to be uploaded

* Documentation update

* Changing the way reminders are deleted

* Tweak timings

* Adjust readiness detection system

* moar tweekz

* fix reminders

* Updates to water reminders
2023-01-31 22:51:10 -05:00

20 lines
716 B
JavaScript

const { SlashCommandBuilder, messageLink } = require('discord.js');
const fn = require('../modules/functions.js');
const strings = require('../data/strings.json');
module.exports = {
data: new SlashCommandBuilder()
.setName('commands')
.setDescription('Get a list of all my commands')
.addStringOption(o =>
o.setName('private')
.setDescription('Should the response be sent privately?')
.setRequired(true)
.addChoices(
{ name: "True", value: "true" },
{ name: "False", value: "false" })),
execute(interaction) {
const helpEmbed = fn.builders.helpEmbed(`**All Commands**\n${strings.help.allCommands}`, interaction.options.getString('private'));
interaction.reply(helpEmbed);
},
};