mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-10 08:18:12 +03:00
Patch counterintuitive BMS chart stuff
This commit is contained in:
@@ -48,7 +48,15 @@ const command: SlashCommand = {
|
||||
return (err as Error).message;
|
||||
}
|
||||
|
||||
const search = interaction.options.getString("song_name", true);
|
||||
let search = interaction.options.getString("song_name", true);
|
||||
|
||||
// bms and pms don't deal with 'difficulties' the way you would expect
|
||||
// them to.
|
||||
// As such, we just treat a difficulty (if it exists) as being part of the
|
||||
// song title.
|
||||
if ((game === "bms" || game === "pms") && difficulty) {
|
||||
search += ` ${difficulty}`;
|
||||
}
|
||||
|
||||
const chartsRes = await TachiServerV1Get<ChartQueryReturns>(
|
||||
`/games/${game}/${playtype}/charts`,
|
||||
|
||||
@@ -49,7 +49,7 @@ export function ParseDifficulty(
|
||||
playtype: Playtype,
|
||||
input: string | null
|
||||
): Difficulties[IDStrings] | null {
|
||||
if (input === null) {
|
||||
if (input === null || game === "bms" || game === "pms") {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
const MAJOR = 2;
|
||||
const MINOR = 0;
|
||||
const PATCH = 1;
|
||||
const PATCH = 2;
|
||||
|
||||
const TOKYO_SHOEGAZER_MOONDIVER = [
|
||||
"Into the Deep Sky",
|
||||
|
||||
Reference in New Issue
Block a user