mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-27 09:35:35 -05:00
so bad
This commit is contained in:
parent
36d514a516
commit
fd497ded84
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue