mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
22 lines
448 B
JavaScript
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' }] });
|
|
}
|
|
};
|