Skip to content

fix: misc /li command issues#2787

Merged
mjeffw merged 5 commits into
mainfrom
bugfix/2134
Jul 15, 2026
Merged

fix: misc /li command issues#2787
mjeffw merged 5 commits into
mainfrom
bugfix/2134

Conversation

@rinickolous

Copy link
Copy Markdown
Collaborator

This should address all issues in #2134

Fixes #2134

Copilot AI 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.

Pull request overview

This PR addresses multiple /light (/li) chat-command bugs reported in #2134 by ensuring the command is recognized with no arguments, adding support for light.luminosity, and improving the help/usage output to better reflect available animation names.

Changes:

  • Updates /light parsing to accept no-argument invocation and prints available animation names.
  • Replaces the prior “color intensity” argument handling with light.luminosity.
  • Refreshes localized help text for /light across several languages.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
module/chat/chat-processors.js Adjusts /light matching/usage behavior and maps an argument to light.luminosity.
lang/en.json Updates /light help text to describe luminosity and expanded animation list.
lang/de.json Updates /light help text to describe luminosity and expanded animation list.
lang/es.json Updates /light help text to describe luminosity and expanded animation list.
lang/fr.json Updates /light help text to describe luminosity and expanded animation list.
lang/pt_br.json Updates /light help text to describe luminosity and expanded animation list.
lang/ru.json Updates /light help text to describe luminosity and expanded animation list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 859 to 861
this.match = line.match(
// /^\/(light|li) *(none|off)? *(\d+)? *(\d+)? *(\d+)? *(#\w\w\w\w\w\w)? *(\w+)? *(\d+)? *(\d+)?/i
/^\/(light|li) +(?<off>none|off)? *(?<dim>[\d\.]+)? *(?<bright>[\d\.]+)? *(?<angle>\d+)? *(?<color>#[0-9a-fA-F]{6})? *(?<colorint>[\d\.]+)? *(?<type>\w+)? *(?<speed>\d+)? *(?<intensity>\d+)?/i
/^\/(light|li) *(?<off>none|off)? *(?<dim>[\d\.]+)? *(?<bright>[\d\.]+)? *(?<angle>\d+)? *(?<color>#[0-9a-fA-F]{6})? *(?<luminosity>[\d\.]+)? *(?<type>\w+)? *(?<speed>\d+)? *(?<intensity>\d+)?/i
)
Comment thread module/chat/chat-processors.js Outdated

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Comment thread module/chat/chat-processors.js Outdated
Comment thread module/chat/chat-processors.js
rinickolous and others added 2 commits July 14, 2026 23:43
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI 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.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Comment on lines 859 to 861
this.match = line.match(
// /^\/(light|li) *(none|off)? *(\d+)? *(\d+)? *(\d+)? *(#\w\w\w\w\w\w)? *(\w+)? *(\d+)? *(\d+)?/i
/^\/(light|li) +(?<off>none|off)? *(?<dim>[\d\.]+)? *(?<bright>[\d\.]+)? *(?<angle>\d+)? *(?<color>#[0-9a-fA-F]{6})? *(?<colorint>[\d\.]+)? *(?<type>\w+)? *(?<speed>\d+)? *(?<intensity>\d+)?/i
/^\/(light|li)(?: +|$)(?<off>none|off)? *(?<dim>[\d\.]+)? *(?<bright>[\d\.]+)? *(?<angle>\d+)? *(?<color>#[0-9a-fA-F]{6})? *(?<luminosity>[\d\.]+)? *(?<type>\w+)? *(?<speed>\d+)? *(?<intensity>\d+)?/i
)
@rinickolous

Copy link
Copy Markdown
Collaborator Author

I think we'll probably end up re-doing this command later because quite frankly it's gross right now

@mjeffw
mjeffw merged commit 8ffc4b1 into main Jul 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

17.17 The /light command has multiple bugs

3 participants