This commit is contained in:
ChomeNS 2022-12-22 20:11:22 +07:00
parent 36d514a516
commit fd497ded84

View file

@ -27,6 +27,7 @@ async function play (bot, values, discord, channeldc, selector, config) {
let absolutePath let absolutePath
if (!path.isAbsolute(filepath) && if (!path.isAbsolute(filepath) &&
!filepath.includes('/') && // please improve, this is so bad
filepath !== '') absolutePath = await resolve(file) filepath !== '') absolutePath = await resolve(file)
else absolutePath = await resolve(filepath) else absolutePath = await resolve(filepath)