Skip to content

Commit

Permalink
增加config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Perseus037 authored Sep 14, 2024
1 parent 932a3a2 commit a999e85
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nonebot_plugin_batarot/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from pydantic import BaseSettings

class Config(BaseSettings):
forward_mode: bool = False # 默认值为 False,如果未在 .env 文件中配置

class Config:
env_file = ".env.prod"

config = Config()

0 comments on commit a999e85

Please sign in to comment.