Skip to content

Conversation

@bluefield-creator
Copy link
Contributor

@bluefield-creator bluefield-creator commented May 10, 2025

The previous code only worked if you launched the bot using npm, but if you launch using any other launchers / supervisors, it wont display the correct version.

Fixes by importing package.json and reading the version off from it.

  • The changes you've made are accurate and correct
  • Made sure that the bot will build, run, and all commands are working.
  • Distinct changes for separate issues are in separate PRs (do not combine multiple issues into one PR)
  • Ran ESlint to keep code in proper formatting - npm run lint

WIP

The previous code only worked if you launched the bot using npm, but if you launch using any other launchers / supervisors, it wont display the correct version.

Fixes by importing package.json and reading the version off from it.
i think idk im running this on web not locally, so cant tell lmfao
@StarManTheGamer
Copy link
Member

Thank you for this! I’ll keep tabs on this

@indexxing
Copy link
Contributor

Ok

@StarManTheGamer
Copy link
Member

Got around to fixing this. The GitHub Build is failing due to a bug with the workflow, but it works on my local version now, so I'm going to merge it now. Thanks for contributing!

@StarManTheGamer StarManTheGamer merged commit e04075b into Polytoria:main Jun 20, 2025
1 check failed
@bluefield-creator bluefield-creator deleted the patch-3 branch June 20, 2025 09:46
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.

3 participants