mongodb支持配置用户名密码,向下兼容

This commit is contained in:
NepPure
2025-02-28 20:41:07 +08:00
parent cd2cd28a62
commit f20fca0c01
6 changed files with 37 additions and 13 deletions

View File

@@ -2,6 +2,9 @@
host = "127.0.0.1"
port = 27017
name = "MegBot"
username = "" # 默认空值
password = "" # 默认空值
auth_source = "" # 默认空值
[bot]
qq = #填入你的机器人QQ