feat: env variable to not clear presences on bonfire boot

This commit is contained in:
IAmTomahawkx
2024-12-12 01:47:06 -08:00
parent 72e3129557
commit 49f7f9549c

View File

@@ -19,7 +19,10 @@ async fn main() {
database::connect().await; database::connect().await;
// Clean up the current region information. // Clean up the current region information.
clear_region(None).await; let no_clear_region = env::var("NO_CLEAR_PRESENCE").unwrap_or_else(|_| "0".into()) == "1";
if !no_clear_region {
clear_region(None).await;
}
// Setup a TCP listener to accept WebSocket connections on. // Setup a TCP listener to accept WebSocket connections on.
// By default, we bind to port 14703 on all interfaces. // By default, we bind to port 14703 on all interfaces.