Skip to content

fix: temporary fix pairing method#21

Merged
znanx merged 1 commit intoznanx:masterfrom
Kiznaiverr:moon
Dec 22, 2025
Merged

fix: temporary fix pairing method#21
znanx merged 1 commit intoznanx:masterfrom
Kiznaiverr:moon

Conversation

@Kiznaiverr
Copy link
Contributor

Temporary Fix: Pairing Configuration Not Loaded

Summary

This PR introduces a temporary fix for an issue where the pairing configuration is not loaded correctly at runtime.

The issue is suspected to originate from @znan/wabot, where the pairing configuration defined in config.json is not properly exported or consumed.


Changes

  • Explicitly import config.json and pass config.pairing directly to the Connection constructor.
  • Ensure the pairing configuration is correctly applied at runtime.
  • Fix a typo in the configuration key from verion to version.

Notes

  • This is a temporary workaround.
  • The upstream dependency cannot be modified as it is obfuscated.
  • The workaround should be removed once the configuration export issue is resolved upstream.

Copilot AI review requested due to automatic review settings December 22, 2025 07:01
Copy link

Copilot AI left a comment

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 implements a temporary workaround for a pairing configuration loading issue originating from the obfuscated @znan/wabot dependency. The fix directly imports and passes configuration data to ensure proper runtime behavior.

Key Changes:

  • Directly import config.json and pass config.pairing to the Connection constructor to bypass the configuration loading issue
  • Fix typo in config.json changing verion to version

Reviewed changes

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

File Description
main.js Added direct import of config.json and replaced inline pairing object with config.pairing reference
config.json Corrected typo from "verion" to "version" in the pairing configuration

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

@znanx znanx merged commit 201cf15 into znanx:master Dec 22, 2025
9 checks passed
Kiznaiverr added a commit to Kiznaiverr/nerisa that referenced this pull request Dec 22, 2025
Merge pull request znanx#21 from Kiznaiverr/moon
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.

2 participants