mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-06-04 09:03:50 -04:00
deno fmt
This commit is contained in:
@@ -3,7 +3,8 @@ import config from '~config';
|
||||
import { HelpContents, HelpPage } from 'commands/helpLibrary/helpLibrary.d.ts';
|
||||
|
||||
const name = 'Roll20 Dice Options';
|
||||
const description = `\`${config.prefix}xdydzracsq!${config.postfix}\` Rolls all configs requested, you may repeat the command multiple times in the same message (just ensure you close each roll with \`${config.postfix}\`).`;
|
||||
const description =
|
||||
`\`${config.prefix}xdydzracsq!${config.postfix}\` Rolls all configs requested, you may repeat the command multiple times in the same message (just ensure you close each roll with \`${config.postfix}\`).`;
|
||||
const dict = new Map<string, HelpContents>([
|
||||
[
|
||||
'dice',
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { HelpContents, HelpPage } from 'commands/helpLibrary/helpLibrary.d.ts';
|
||||
|
||||
const name = 'Results Formatting';
|
||||
const description =
|
||||
'The results have some formatting applied on them to provide details on what happened during this roll. These options can be stacked on each other to show complicated results.';
|
||||
const description = 'The results have some formatting applied on them to provide details on what happened during this roll. These options can be stacked on each other to show complicated results.';
|
||||
const dict = new Map<string, HelpContents>([
|
||||
[
|
||||
'bold',
|
||||
|
||||
@@ -25,7 +25,7 @@ const generateActionRowWithSelectMenu = (selected: string, helpDict: HelpDict, p
|
||||
label: page[1].name,
|
||||
value: parent ? `${parent}${InteractionValueSeparator}${page[0]}` : page[0],
|
||||
default: page[0] === selected,
|
||||
})
|
||||
}),
|
||||
),
|
||||
},
|
||||
],
|
||||
@@ -38,15 +38,14 @@ const makeHelpEmbed = (helpDict: HelpContents | HelpPage, parentTitle?: string):
|
||||
},
|
||||
title: helpDict.name,
|
||||
description: helpDict.description,
|
||||
fields:
|
||||
!helpDict.isPage && helpDict.example
|
||||
? [
|
||||
{
|
||||
name: `Example${helpDict.example.length > 1 ? 's' : ''}:`,
|
||||
value: helpDict.example.join('\n').replaceAll('@$', `<@${botId}>`).replaceAll('[[', config.prefix).replaceAll(']]', config.postfix),
|
||||
},
|
||||
]
|
||||
: [],
|
||||
fields: !helpDict.isPage && helpDict.example
|
||||
? [
|
||||
{
|
||||
name: `Example${helpDict.example.length > 1 ? 's' : ''}:`,
|
||||
value: helpDict.example.join('\n').replaceAll('@$', `<@${botId}>`).replaceAll('[[', config.prefix).replaceAll(']]', config.postfix),
|
||||
},
|
||||
]
|
||||
: [],
|
||||
});
|
||||
|
||||
const defaultHelpMessage = (showError = ''): CreateMessage => ({
|
||||
|
||||
@@ -41,7 +41,8 @@ Damage: 14`,
|
||||
'variable',
|
||||
{
|
||||
name: 'Variables',
|
||||
description: `${config.name}'s variable system allows reusing results as a value inside one message. This is useful when you want to use a result as a part of the final message, but also want to use that result in a follow-up roll.
|
||||
description:
|
||||
`${config.name}'s variable system allows reusing results as a value inside one message. This is useful when you want to use a result as a part of the final message, but also want to use that result in a follow-up roll.
|
||||
|
||||
This message must contain multiple roll commands in it (such as \`[[d4]] [[d8]]\`). Nested dice rolls are not able to be used as a variable, but can use variables inside them.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user