Skip to content

[enhancement] Centralize management of configuration files #184

@YuevUwU

Description

@YuevUwU

你想怎樣? What do you want?

希望所需配置集中管理,必要時考慮更換配置文件格式
Centralized management of configuration files, with consideration for changing the file format if necessary

為什麼? Why?

目前的配置文件亂成一團,分散在多個文件內,server_id 還跟 GUILD_ID 的值一樣...
(日後重寫 app.py 可省略)
exclude_point 可改成亦可透過鍵值軟連結,以提高辨識度

The current configuration files are a mess, scattered across multiple files, and server_id even shares the same value as GUILD_ID...
(Can be omitted when rewriting app.py in the future.)
exclude_point can be modified to use key names to link, improving readability and recognition.

To-do

  • Migrate all configuration to .env @YuevUwU
  • Create ConfigSchema @winstonsung
  • Create a centralized Config object from .env @winstonsung
  • Create a new environmental variable about root/endpoint of store to inferences DISCORD_REDIRECT_URI, GITHUB_REDIRECT_URI, and GITHUB_DISCORD_REDIRECT_URI

Metadata

Metadata

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions