We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b4695b commit 2be2874Copy full SHA for 2be2874
nonebot_plugin_omikuji/config.py
@@ -41,10 +41,12 @@ def check(self) -> Config:
41
raise ValueError("omikuji_long_cache_update_days must be greater than 0")
42
return self
43
44
+CONFIG: Config = get_plugin_config(Config)
45
+CAHCE_DIR: Path = get_cache_dir()
46
47
def get_config() -> Config:
- return get_plugin_config(Config)
48
+ return CONFIG
49
50
51
def get_cache_dir() -> Path:
- return get_plugin_cache_dir()
52
+ return CACHE_DIR
0 commit comments