From 6bc33b93eb5d55fb855803b0bf8cf7658a60e2b1 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Fri, 7 Jan 2022 13:39:14 -0500 Subject: osu: Add link to beatmap --- src/commands/osu.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/commands') diff --git a/src/commands/osu.rs b/src/commands/osu.rs index 2b3961f..28d3cb3 100644 --- a/src/commands/osu.rs +++ b/src/commands/osu.rs @@ -114,6 +114,7 @@ struct OsuBeatMap { pub passcount: u32, pub playcount: u32, pub beatmapset: OsuBeatMapSet, + pub url: String, } #[derive(Deserialize, Debug, Clone)] @@ -152,7 +153,7 @@ pub async fn osubm(ctx: Context<'_>, m.embed(|e| { e.title(format!("osu! Beatmap: {} by {}", res.beatmapset.title, res.beatmapset.creator)); e.image(res.beatmapset.covers.list2); - e.description(format!("**Length:** {} **BPM:** {}\n**Difficulty:** {}:star:", res.total_length, res.bpm, res.difficulty_rating)); + e.description(format!("**Link:** {}\n**Length:** {} **BPM:** {}\n**Difficulty:** {}:star:", res.url, res.total_length, res.bpm, res.difficulty_rating)); e.footer(|f| { f.text(format!("BM ID {} | BM Set ID {}\nCreated {}", res.id, res.beatmapset.id, res.beatmapset.submitted_date)); f -- cgit v1.2.3