I have a webpage, and on that webpage is a file called b.txt, (http://#####.###/b.txt), how am I able to get my DiscordJS bot to display the contents of b.txt (the file just says hilly in plaintext")
Currently I just have const txtfile = "http://example.ml/b.txt";
And have a simple command to output the variable.
client.on('message', message => {
if (message.content === 'b') {
message.channel.send(mcdonal);
}
});
Any help would be appreciated.