Fix leaderboard case where HTML file doesn't exist yet

This commit is contained in:
Elnu 2022-04-26 11:31:39 -07:00
parent ddef4f326b
commit 463808cb75

View file

@ -407,6 +407,7 @@ pub async fn leaderboard(ctx: &Context) -> CommandResult {
}
leaderboard_html.push_str("</table>");
let mut file = std::fs::OpenOptions::new()
.create(true)
.write(true)
.open(env::var("LEADERBOARD").unwrap())
.unwrap();