Closed sweep-ai[bot] closed 6 months ago
Authors of pull request: @fernandomema
This pull request improved the formatting of the help command output in the help.ts
file to ensure better alignment of command names.
The main change involved modifying the way command names are displayed in the help message. Previously, command names were separated by a fixed number of spaces, which could lead to misalignment. The updated code now dynamically calculates the number of spaces needed to align each command name to a fixed width of 15 characters.
Specifically, the value
field in the addFields
method was updated to use Array(15 - commands[i]?.name.length).fill(" ").join('')
to calculate the required spaces for alignment. This change was applied to both the main help message and the initial values pushed to valuesToPush
.
These changes ensure that the help command output is more readable and commands are properly aligned regardless of their name lengths.
Description
This pull request introduces improvements to the command list formatting within the help command, making the display of commands more consistent and visually appealing.
Summary
src/modules/info/commands/help.ts
file, enhancing the readability and functionality of the help command's output.Fixes #131.
💡 To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.