Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker 環境上で起動した際にクライアントバージョンが正しく取得できていない #750

Closed
2 tasks done
m1sk9 opened this issue Feb 25, 2023 · 1 comment · Fixed by #1114
Closed
2 tasks done
Labels
C-bug Category: bug T-@oreorebot2/bot Type: OreOreBot2 Bot (packages/bot)

Comments

@m1sk9
Copy link
Contributor

m1sk9 commented Feb 25, 2023

バグレポートの提出を行う前に

  • すでに同じバグを報告するIssueが存在しないか確認しましたか?
  • セキュリティーに関する不具合ではありませんか? セキュリティーに関する不具合はIssueで報告せず適切な方法で報告してください

バグの詳細

============

起動完了しました。

有効になっている機能> MESSAGE_CREATE, MESSAGE_UPDATE, COMMAND, VOICE_ROOM, ROLE, EMOJI

接続クライアント> OreOreBot2
接続クライアントID> 937234060282069003
接続クライアントバージョン> 不明

discord.js バージョン> 14.7.1

--------------------------------------------------
Core Dependencies
- @discordjs/voice: 0.14.0
- prism-media: 1.3.4

Opus Libraries
- @discordjs/opus: 0.9.0
- opusscript: not found

Encryption Libraries
- sodium-native: not found
- sodium: not found
- libsodium-wrappers: not found
- tweetnacl: 1.0.3

FFmpeg
- version: 5.1.2
- libopus: yes
--------------------------------------------------

============

起動時に本来表示されるバージョンが 不明 になっている

再現方法

  1. Docker Imageをpullする
  2. 起動する

期待する動作

正常にバージョンが表示される

はらちょのバージョン

v1.39.0

追加情報

No response

@m1sk9 m1sk9 added the C-bug Category: bug label Feb 25, 2023
@m1sk9 m1sk9 added the T-@oreorebot2/bot Type: OreOreBot2 Bot (packages/bot) label Sep 24, 2023
@MikuroXina
Copy link
Collaborator

version コマンドは package.json から取得してきているので正常に動作しますが, エントリポイント側が process.env.npm_package_version を使っているせいのようです

該当箇所:

const projectVersion = process.env.npm_package_version;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug T-@oreorebot2/bot Type: OreOreBot2 Bot (packages/bot)
Projects
None yet
2 participants