Update help message

This commit is contained in:
Charlie Laabs
2022-01-02 14:17:58 -06:00
parent 0bc0dae36e
commit a7699f1992

View File

@@ -435,21 +435,24 @@ function helpMessage(): Discord.MessageOptions {
const embed = new Discord.MessageEmbed() const embed = new Discord.MessageEmbed()
.setAuthor(client.user.username || packageJson().name, avatarURL) .setAuthor(client.user.username || packageJson().name, avatarURL)
.setThumbnail(avatarURL as string) .setThumbnail(avatarURL as string)
.setDescription('A Markov chain chatbot that speaks based on previous chat input.') .setDescription(
`A Markov chain chatbot that speaks based on learned messages from previous chat input.`
)
.addField( .addField(
`${config.messageCommandPrefix} or /${messageCommand.name}`, `${config.messageCommandPrefix} or /${messageCommand.name}`,
'Generates a sentence to say based on the chat database. Send your ' + `Generates a sentence to say based on the chat database. Send your message as TTS to recieve it as TTS.`
'message as TTS to recieve it as TTS.' )
.addField(
`/${listenChannelCommand.name}`,
`Add, remove, list, or modify the list of channels the bot listens to.`
) )
.addField( .addField(
`${config.messageCommandPrefix} train or /${trainCommand.name}`, `${config.messageCommandPrefix} train or /${trainCommand.name}`,
'Fetches the maximum amount of previous messages in the current ' + `Fetches the maximum amount of previous messages in the listened to text channels. This takes some time.`
'text channel, adds it to the database, and regenerates the corpus. Takes some time.'
) )
.addField( .addField(
`${config.messageCommandPrefix} invite or /${inviteCommand.name}`, `${config.messageCommandPrefix} invite or /${inviteCommand.name}`,
"Don't invite this bot to other servers. The database is shared " + `Post this bot's invite URL.`
'between all servers and text channels.'
) )
.addField( .addField(
`${config.messageCommandPrefix} debug or /${messageCommand.name} debug: True`, `${config.messageCommandPrefix} debug or /${messageCommand.name} debug: True`,
@@ -670,7 +673,7 @@ client.on('interactionCreate', async (interaction) => {
} else if (interaction.commandName === trainCommand.name) { } else if (interaction.commandName === trainCommand.name) {
await interaction.deferReply(); await interaction.deferReply();
const responseMessage = await saveGuildMessageHistory(interaction); const responseMessage = await saveGuildMessageHistory(interaction);
await interaction.editReply(responseMessage); await interaction.editReply({ content: responseMessage });
} }
} else if (interaction.isSelectMenu()) { } else if (interaction.isSelectMenu()) {
if (interaction.customId === 'listen-modify-select') { if (interaction.customId === 'listen-modify-select') {