2022-08-26 15:10:27 +00:00
|
|
|
|
# debug 开关
|
|
|
|
|
DEBUG=false
|
|
|
|
|
|
2023-03-14 01:27:22 +00:00
|
|
|
|
AUTO_RELOAD=false
|
|
|
|
|
RELOAD_DELAY=0.25
|
|
|
|
|
RELOAD_DIRS=[]
|
|
|
|
|
RELOAD_INCLUDE=[]
|
|
|
|
|
RELOAD_EXCLUDE=[]
|
|
|
|
|
|
2023-03-25 03:17:38 +00:00
|
|
|
|
# Database
|
|
|
|
|
DB_DRIVER_NAME=mysql+asyncmy
|
2022-08-26 15:10:27 +00:00
|
|
|
|
DB_HOST=127.0.0.1
|
|
|
|
|
DB_PORT=3306
|
|
|
|
|
DB_USERNAME=user
|
|
|
|
|
DB_PASSWORD="password"
|
|
|
|
|
DB_DATABASE=paimon
|
|
|
|
|
|
|
|
|
|
# Redis
|
|
|
|
|
REDIS_HOST=127.0.0.1
|
|
|
|
|
REDIS_PORT=6379
|
|
|
|
|
REDIS_DB=0
|
2023-01-05 07:36:10 +00:00
|
|
|
|
REDIS_PASSWORD=""
|
2022-08-26 15:10:27 +00:00
|
|
|
|
|
2024-06-17 16:29:31 +00:00
|
|
|
|
# InfluxDB
|
|
|
|
|
INFLUXDB_HOST=localhost
|
|
|
|
|
INFLUXDB_PORT=8086
|
|
|
|
|
INFLUXDB_TOKEN="token"
|
|
|
|
|
INFLUXDB_ORG="paimon"
|
|
|
|
|
|
2022-08-26 15:10:27 +00:00
|
|
|
|
# 联系 https://t.me/BotFather 使用 /newbot 命令创建机器人并获取 token
|
|
|
|
|
BOT_TOKEN="xxxxxxx"
|
|
|
|
|
|
2023-03-14 01:27:22 +00:00
|
|
|
|
# bot 所有者
|
|
|
|
|
OWNER=0
|
2022-10-13 07:38:47 +00:00
|
|
|
|
|
2022-10-07 05:55:50 +00:00
|
|
|
|
# 记录错误并发送消息通知开发人员 可选配置项
|
2022-10-13 07:38:47 +00:00
|
|
|
|
# ERROR_NOTIFICATION_CHAT_ID=chat_id
|
2022-08-26 15:10:27 +00:00
|
|
|
|
|
2022-10-07 05:55:50 +00:00
|
|
|
|
# 文章推送群组 可选配置项
|
2023-03-14 01:27:22 +00:00
|
|
|
|
# CHANNELS=[]
|
2022-08-31 06:46:04 +00:00
|
|
|
|
|
2022-10-16 10:15:23 +00:00
|
|
|
|
# 是否允许机器人邀请到其他群 默认不允许 如果允许 可以允许全部人或有认证选项 可选配置项
|
|
|
|
|
# JOIN_GROUPS = "NO_ALLOW"
|
|
|
|
|
|
2022-10-07 05:55:50 +00:00
|
|
|
|
# 群验证功能 可选配置项
|
2022-10-13 07:38:47 +00:00
|
|
|
|
# VERIFY_GROUPS=[]
|
2022-09-10 15:30:13 +00:00
|
|
|
|
|
2022-10-13 07:38:47 +00:00
|
|
|
|
# logger 配置 可选配置项
|
2023-05-07 10:56:52 +00:00
|
|
|
|
# LOGGER_NAME="HonkaiStarRailGram"
|
2022-10-13 13:01:45 +00:00
|
|
|
|
# 打印时的宽度
|
2023-03-14 01:27:22 +00:00
|
|
|
|
# LOGGER_WIDTH=180
|
2022-10-13 13:01:45 +00:00
|
|
|
|
# log 文件存放目录
|
2023-03-14 01:27:22 +00:00
|
|
|
|
# LOGGER_LOG_PATH="logs"
|
2022-10-13 13:01:45 +00:00
|
|
|
|
# log 时间格式,参考 datetime.strftime
|
2023-03-14 01:27:22 +00:00
|
|
|
|
# LOGGER_TIME_FORMAT="[%Y-%m-%d %X]"
|
2022-10-13 13:01:45 +00:00
|
|
|
|
# log 高亮关键词
|
2023-03-14 01:27:22 +00:00
|
|
|
|
# LOGGER_RENDER_KEYWORDS=["BOT"]
|
2022-10-13 13:01:45 +00:00
|
|
|
|
# traceback 相关配置
|
2023-03-14 01:27:22 +00:00
|
|
|
|
# LOGGER_TRACEBACK_MAX_FRAMES=20
|
|
|
|
|
# LOGGER_LOCALS_MAX_DEPTH=0
|
|
|
|
|
# LOGGER_LOCALS_MAX_LENGTH=10
|
|
|
|
|
# LOGGER_LOCALS_MAX_STRING=80
|
2022-10-23 09:15:09 +00:00
|
|
|
|
# 可被 logger 打印的 record 的名称(默认包含了 LOGGER_NAME )
|
2022-12-10 12:37:43 +00:00
|
|
|
|
LOGGER_FILTERED_NAMES=["uvicorn","ErrorPush","ApiHelper"]
|
2022-10-23 09:15:09 +00:00
|
|
|
|
|
2023-02-19 12:40:27 +00:00
|
|
|
|
# Request 超时配置 可选配置项
|
|
|
|
|
# READ_TIMEOUT=7
|
|
|
|
|
# 指定等待服务器响应的最长时间
|
|
|
|
|
# WRITE_TIMEOUT=10
|
|
|
|
|
# 指定等待写入操作完成的最长时间(就网络套接字而言,即请求或上传一个文件)
|
|
|
|
|
# CONNECT_TIMEOUT=10
|
|
|
|
|
# 指定等待连接到服务器的最长时间
|
|
|
|
|
# POOL_TIMEOUT=10
|
|
|
|
|
# Bot.Update 超时配置
|
|
|
|
|
# TIMEOUT=10
|
|
|
|
|
# 服务器出现故障时Updater的引导阶段重试时间
|
|
|
|
|
# UPDATE_READ_TIMEOUT=42
|
|
|
|
|
# UPDATE_WRITE_TIMEOUT=10
|
|
|
|
|
# UPDATE_CONNECT_TIMEOUT=10
|
|
|
|
|
# UPDATE_POOL_TIMEOUT=10
|
2022-10-22 07:48:53 +00:00
|
|
|
|
|
2022-10-22 15:51:39 +00:00
|
|
|
|
# genshin.py 缓存配置 可选配置项
|
|
|
|
|
# GENSHIN_TTL = 3600
|
|
|
|
|
|
2022-10-07 05:55:50 +00:00
|
|
|
|
# mtp 客户端 可选配置项
|
2022-10-13 07:38:47 +00:00
|
|
|
|
# API_ID=12345
|
|
|
|
|
# API_HASH="abcdefg"
|
2022-10-07 05:55:50 +00:00
|
|
|
|
|
2023-05-07 10:56:52 +00:00
|
|
|
|
# ENKA_NETWORK_API 可选配置项(暂时无法使用)
|
2022-10-13 07:38:47 +00:00
|
|
|
|
# ENKA_NETWORK_API_AGENT=""
|
2022-10-12 13:39:47 +00:00
|
|
|
|
|
|
|
|
|
# Web Server
|
2023-05-07 10:56:52 +00:00
|
|
|
|
# WEB_ENABLE=False # 是否开启 WebServer
|
2022-10-12 13:39:47 +00:00
|
|
|
|
# WEB_HOST=localhost
|
|
|
|
|
# WEB_PORT=8080
|
2022-10-19 12:22:24 +00:00
|
|
|
|
|
|
|
|
|
# error
|
|
|
|
|
# ERROR_PB_URL=https://fars.ee
|
|
|
|
|
# ERROR_PB_SUNSET=43200
|
|
|
|
|
# ERROR_PB_MAX_LINES=1000
|
|
|
|
|
# ERROR_SENTRY_DSN=
|
2023-01-07 20:01:28 +00:00
|
|
|
|
|
|
|
|
|
# Notice
|
2024-06-07 14:58:13 +00:00
|
|
|
|
NOTICE_BOT_NAME="彦卿"
|
|
|
|
|
NOTICE_USER_NOT_FOUND="${NOTICE_BOT_NAME}没有找到您所绑定的账号信息,请先私聊${NOTICE_BOT_NAME}绑定账号"
|
|
|
|
|
NOTICE_USER_MISMATCH="再乱点我叫银鬃铁卫、云骑军和猎犬家族了!"
|
|
|
|
|
# 拒绝加入群聊
|
|
|
|
|
NOTICE_QUIT_STATUS="${NOTICE_BOT_NAME}不想进去!不是开拓者的邀请!"
|
2023-02-18 05:03:58 +00:00
|
|
|
|
|
|
|
|
|
# Plugin
|
|
|
|
|
# PLUGIN_DOWNLOAD_FILE_MAX_SIZE=5
|