Skip to content

Commit a437565

Browse files
committed
feat: add clock_rate as a parameter for /map
1 parent 7f9631f commit a437565

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • bathbot/src/commands/osu

bathbot/src/commands/osu/map.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ pub struct Map<'a> {
5555
cs: Option<f64>,
5656
#[command(desc = "Specify an HP value to override the actual one")]
5757
hp: Option<f64>,
58+
#[command(desc = "Specify a custom clock rate that overrides mods")]
59+
clock_rate: Option<f64>,
5860
}
5961

6062
#[derive(HasMods)]
@@ -182,6 +184,7 @@ impl<'a> TryFrom<Map<'a>> for MapArgs<'a> {
182184
od,
183185
cs,
184186
hp,
187+
clock_rate,
185188
} = args;
186189

187190
let map = match map.map(|arg| {
@@ -204,6 +207,7 @@ impl<'a> TryFrom<Map<'a>> for MapArgs<'a> {
204207
cs,
205208
hp,
206209
od,
210+
clock_rate,
207211
..Default::default()
208212
};
209213

0 commit comments

Comments
 (0)