From aae1da7bd4c4648f5295dfff91b8ea37c5ca5ded Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Tue, 22 Jun 2021 17:27:57 +0200 Subject: [PATCH] Send plaintext instead of the file So people don't have to download the example file. --- commands/netload.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/netload.js b/commands/netload.js index 9cc3672..51975ce 100644 --- a/commands/netload.js +++ b/commands/netload.js @@ -24,7 +24,10 @@ module.exports = { return; } if (args[0] == "example") { - message.channel.send({ files: [{ attachment: "./commands/.example" }] }) + + let example = fs.readFileSync("./commands/.example") + + message.channel.send(`\`\`\`js\n${example}\n\`\`\``) return; }