Files
xiao/commands/edit-text/txt.js
T
2024-05-21 21:02:12 -04:00

22 lines
448 B
JavaScript

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