Discord.js: playFile from text file not working

Created on 3 Mar 2018  Â·  2Comments  Â·  Source: discordjs/discord.js

Hello !
I'm trying to read a path in a textfile to play a song but it's not working...
What I have :
Selfmade Browser that is writing a path to a textfile :
image

When button is clicked a textfile is created (or content from this textfile is replaced by the path of my selected song)
image

This textfile contains something like this :
image

So in my discord bot I did :

image

It seems like "connection.playFile(chemin)" isn't working because when I write the path instead of my variable "chemin" it works fine like "connection.playFile('D:/Musique/Hardtek/1.mp3')"
Can someone help me fix this please ?

question (please use Discord instead)

Most helpful comment

The issue tracker is only for bug reports and enhancement suggestions. If you have a question, please ask it in the Discord server instead of opening an issue – you will get redirected there anyway.

All 2 comments

The issue tracker is only for bug reports and enhancement suggestions. If you have a question, please ask it in the Discord server instead of opening an issue – you will get redirected there anyway.

Ok i'll try there thanks !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tiritto picture tiritto  Â·  3Comments

Brawaru picture Brawaru  Â·  3Comments

shukriadams picture shukriadams  Â·  3Comments

xCuzImPro picture xCuzImPro  Â·  3Comments

Acaretia picture Acaretia  Â·  3Comments