Streamline Help Page
This commit is contained in:
parent
b12301344c
commit
e484bf9962
@ -3,6 +3,7 @@
|
|||||||
"name": "trees grow"
|
"name": "trees grow"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
|
"title": "Silvanus Help",
|
||||||
"info": "This bot will analyze your tree (from the Grow A Tree Bot by Limbo Labs) and compare its growth to other trees displayed on the leaderboard.\n\nThis bot assumes that there is a single </tree:972648557796524032> message and a single </top trees:1051840665362894950> message that everyone uses. If everyone creates their own </tree:972648557796524032> and </top trees:1051840665362894950>, the reference messages will have to be updated every time, or old data will be displayed.\n\nSeeing old data? Try running </setup:1065407649363005561> again, sometimes configurations get lost.",
|
"info": "This bot will analyze your tree (from the Grow A Tree Bot by Limbo Labs) and compare its growth to other trees displayed on the leaderboard.\n\nThis bot assumes that there is a single </tree:972648557796524032> message and a single </top trees:1051840665362894950> message that everyone uses. If everyone creates their own </tree:972648557796524032> and </top trees:1051840665362894950>, the reference messages will have to be updated every time, or old data will be displayed.\n\nSeeing old data? Try running </setup:1065407649363005561> again, sometimes configurations get lost.",
|
||||||
"setup": "To begin analyzing your Tree, first you must set up the reference messages.\n\n1. Run </setup:1065407649363005561> in the channel(s) that contain your server's tree and leaderboard messages.\n2. Now simply run </compare:1065346941166297128> where you want your analysis to be visible.",
|
"setup": "To begin analyzing your Tree, first you must set up the reference messages.\n\n1. Run </setup:1065407649363005561> in the channel(s) that contain your server's tree and leaderboard messages.\n2. Now simply run </compare:1065346941166297128> where you want your analysis to be visible.",
|
||||||
"permissions": "At a minimum, Silvanus requires permissions to `Send Messages` and `Send Messages in Threads` if applicable. If Analyzer is given permission to `Manage Messages`, the bot will delete the `.settree` and `.setranks` messages to reduce spam."
|
"permissions": "At a minimum, Silvanus requires permissions to `Send Messages` and `Send Messages in Threads` if applicable. If Analyzer is given permission to `Manage Messages`, the bot will delete the `.settree` and `.setranks` messages to reduce spam."
|
||||||
|
@ -60,7 +60,7 @@ const functions = {
|
|||||||
helpEmbed(content, private) {
|
helpEmbed(content, private) {
|
||||||
const embed = new EmbedBuilder()
|
const embed = new EmbedBuilder()
|
||||||
.setColor(strings.embeds.color)
|
.setColor(strings.embeds.color)
|
||||||
.setTitle('Grow A Tree Analyzer Help')
|
.setTitle(strings.help.title)
|
||||||
.setDescription(content)
|
.setDescription(content)
|
||||||
.setFooter({ text: strings.embeds.footer });
|
.setFooter({ text: strings.embeds.footer });
|
||||||
const privateBool = private == 'true';
|
const privateBool = private == 'true';
|
||||||
|
@ -6,44 +6,15 @@ module.exports = {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('help')
|
.setName('help')
|
||||||
.setDescription('Get help using the bot')
|
.setDescription('Get help using the bot')
|
||||||
.addSubcommand(subcommand =>
|
|
||||||
subcommand
|
|
||||||
.setName('info')
|
|
||||||
.setDescription('Learn about the bot')
|
|
||||||
.addStringOption(o =>
|
.addStringOption(o =>
|
||||||
o.setName('private')
|
o.setName('private')
|
||||||
.setDescription('Should the response be sent privately?')
|
.setDescription('Should the response be sent privately?')
|
||||||
.setRequired(true)
|
.setRequired(true)
|
||||||
.addChoices(
|
.addChoices(
|
||||||
{ name: "True", value: "true" },
|
{ name: "True", value: "true" },
|
||||||
{ name: "False", value: "false" }
|
{ name: "False", value: "false" })),
|
||||||
)))
|
|
||||||
.addSubcommand(subcommand =>
|
|
||||||
subcommand
|
|
||||||
.setName('setup')
|
|
||||||
.setDescription('Learn how to setup the bot')
|
|
||||||
.addStringOption(o =>
|
|
||||||
o.setName('private')
|
|
||||||
.setDescription('Should the response be sent privately?')
|
|
||||||
.setRequired(true)
|
|
||||||
.addChoices(
|
|
||||||
{ name: "True", value: "true" },
|
|
||||||
{ name: "False", value: "false" }
|
|
||||||
)))
|
|
||||||
.addSubcommand(subcommand =>
|
|
||||||
subcommand
|
|
||||||
.setName('permissions')
|
|
||||||
.setDescription('Learn about the bot\'s permissions')
|
|
||||||
.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) {
|
execute(interaction) {
|
||||||
const helpEmbed = fn.builders.helpEmbed(strings.help[interaction.options.getSubcommand()], interaction.options.getString('private'));
|
const helpEmbed = fn.builders.helpEmbed(`${strings.help.info}\n\n**Setup**\n${strings.help.setup}`, interaction.options.getString('private'));
|
||||||
interaction.reply(helpEmbed);
|
interaction.reply(helpEmbed);
|
||||||
},
|
},
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user