aboutsummaryrefslogtreecommitdiff
path: root/src/bot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bot.rs')
-rw-r--r--src/bot.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bot.rs b/src/bot.rs
index 4942c98..b74bf0d 100644
--- a/src/bot.rs
+++ b/src/bot.rs
@@ -364,6 +364,11 @@ fn after_handle(ctx: PoiseContext) -> BoxFuture<()> {
}
pub async fn run() -> anyhow::Result<()> {
+ #[cfg(all(windows, feature = "windows_autostart_postgres"))]
+ unsafe {
+ crate::windows_util::ensure_postgres_started()?;
+ };
+
let token = &CONFIG.discord.auth.token;
let sb_config = songbird::Config::default();