From 463808cb7534cfdc3217d91b5582c47211a7eaf3 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 26 Apr 2022 11:31:39 -0700 Subject: [PATCH] Fix leaderboard case where HTML file doesn't exist yet --- src/utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils.rs b/src/utils.rs index f59eab6..777736d 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -407,6 +407,7 @@ pub async fn leaderboard(ctx: &Context) -> CommandResult { } leaderboard_html.push_str(""); let mut file = std::fs::OpenOptions::new() + .create(true) .write(true) .open(env::var("LEADERBOARD").unwrap()) .unwrap();