Skip to content

Fix list command cutting off last command#173

Open
Mitchdev wants to merge 1 commit into
masterfrom
fix/list-command
Open

Fix list command cutting off last command#173
Mitchdev wants to merge 1 commit into
masterfrom
fix/list-command

Conversation

@Mitchdev

@Mitchdev Mitchdev commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Mitchdev Mitchdev requested a review from 11k April 8, 2026 14:19
@Mitchdev Mitchdev added the bug Something isn't working label Apr 8, 2026

@11k 11k left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the commands list is sufficiently long, it won't fit into a single chat message. Something like

commands.match(/.{1,240}(,|$)/g)

would fix the bug by continuing to split the commands into chunks, but accounting for there being no comma after the final command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants