Files
xiao/commands/edit-text/txt.js
T
Dragon Fire ee13f568f8 TXT Command
2020-06-21 10:58:43 -04:00

24 lines
540 B
JavaScript

const Command = require('../../structures/Command');
module.exports = class TxtCommand extends Command {
constructor(client) {
super(client, {
name: 'txt',
group: 'edit-text',
memberName: 'txt',
description: 'Generates a TXT file from the text you provide.',
args: [
{
key: 'content',
prompt: 'What content do you want to include in the TXT file?',
type: 'string'
}
]
});
}
run(msg, { content }) {
return msg.say({ files: [{ attachment: Buffer.from(content), name: 'txt.txt' }] });
}
};