aboutsummaryrefslogtreecommitdiff
path: root/src/commands/osu.rs
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-04-14 13:06:54 -0400
committerCara Salter <cara@devcara.com>2022-04-18 23:05:25 -0400
commitffacf1c8fc820de3890ba6231b644e9e4a65ce28 (patch)
tree475537cef44f8eb0e7ed1269fd8c76e700c62918 /src/commands/osu.rs
parent9b4707192557cdd64dd82c5883e54758d0d66512 (diff)
downloadglitch-ng-ffacf1c8fc820de3890ba6231b644e9e4a65ce28.tar.gz
glitch-ng-ffacf1c8fc820de3890ba6231b644e9e4a65ce28.zip
FLAKE
Diffstat (limited to 'src/commands/osu.rs')
-rw-r--r--src/commands/osu.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/osu.rs b/src/commands/osu.rs
index 8d91f56..5e0b563 100644
--- a/src/commands/osu.rs
+++ b/src/commands/osu.rs
@@ -18,6 +18,9 @@ struct OsuTokenRequest {
pub scope: String,
}
+/// This is kinda loose, and we should really be caching the osu token
+///
+/// Eh well, this *works* (sort of)
async fn setup_reqwest() -> Result<reqwest::Client, Error> {
let client_id = std::env::var("OSU_CLIENT_ID").unwrap();
let client_secret = std::env::var("OSU_CLIENT_SECRET").unwrap();