Send plaintext instead of the file

So people don't have to download the example file.
This commit is contained in:
SileNce5k 2021-06-22 17:27:57 +02:00
parent 74ed4d9059
commit aae1da7bd4
No known key found for this signature in database
GPG key ID: C507260E7F2583AD

View file

@ -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;
}