make chart difficulty case insensitive

pull/1/head
qwewqa 4 years ago
parent 38c79c8faa
commit ac9f77e888
  1. 2
      miyu_bot/commands/cogs/music.py

@ -336,7 +336,7 @@ class Music(commands.Cog):
difficulty = ChartDifficulty.Expert difficulty = ChartDifficulty.Expert
if len(split_args) >= 2: if len(split_args) >= 2:
final_word = split_args[-1] final_word = split_args[-1].lower()
if final_word in self.difficulty_names: if final_word in self.difficulty_names:
difficulty = self.difficulty_names[final_word] difficulty = self.difficulty_names[final_word]
arg = ''.join(split_args[:-1]) arg = ''.join(split_args[:-1])

Loading…
Cancel
Save