Send plaintext instead of the file
So people don't have to download the example file.
This commit is contained in:
parent
74ed4d9059
commit
aae1da7bd4
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue