add robots txt detection

This commit is contained in:
2025-10-09 15:26:36 +08:00
parent 10b89aee17
commit d660f25fb1
8 changed files with 1268 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
use std::path::{PathBuf};
use ini::Ini;
use crate::config::types::{ApplicationConfig, BasicConfig};
use crate::constants::APP_CONFIG_DIR;
pub mod types;
@@ -20,7 +21,7 @@ impl ApplicationConfig {
pub fn new() -> Self {
Self {
basic_config: BasicConfig {
db_path: "games.db".to_string(),
db_path: APP_CONFIG_DIR.clone().to_str().unwrap().to_string(),
tick_rate: 250
}
}