commit 3426acbb77d878e2b9a2f6b1c4c8ba4c6f053b7a Author: Matrix Music Bot Dev Date: Thu Jul 2 01:08:45 2026 +0800 chore: 初始化仓库结构(.gitignore + data/ 占位) - 排除 /target、/data、secret.bin、.env 等敏感与构建产物 - 保留 data/.gitkeep 占位以便运行时生成 bot.db / crypto.db diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..108a39a --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# Rust build artifacts +/target/ +**/*.rs.bk +Cargo.lock.bak + +# Runtime data (bot 运行时生成) +/data/ +!data/.gitkeep + +# Secrets +*.pem +*.key +*.secret +secret.bin + +# Editor +.vscode/ +.idea/ +*.swp +*.swo +.DS_Store +Thumbs.db + +# Environment +.env +.env.local + +# Logs +*.log +logs/ + +# Cache +.cache/ \ No newline at end of file diff --git a/data/.gitkeep b/data/.gitkeep new file mode 100644 index 0000000..256249c --- /dev/null +++ b/data/.gitkeep @@ -0,0 +1 @@ +# placeholder so the directory is tracked even though contents are ignored \ No newline at end of file