among us fix

This commit is contained in:
ChomeNS 2022-12-22 20:34:08 +07:00
parent fd497ded84
commit 74a7c6776f

View file

@ -23,7 +23,7 @@ async function play (bot, values, discord, channeldc, selector, config) {
const songs = await fileList(SONGS_PATH)
const filepath = values.join(' ')
const file = songs.filter((song) => song.toLowerCase().includes(filepath))[0]
const file = songs.filter((song) => song.toLowerCase().includes(filepath.toLowerCase()))[0]
let absolutePath
if (!path.isAbsolute(filepath) &&