nodbot/commands/pasta.js

17 lines
572 B
JavaScript
Raw Normal View History

2021-07-14 01:20:17 +00:00
const functions = require('../functions.js');
2021-06-30 22:59:24 +00:00
module.exports = {
name: 'pasta',
description: 'Send a copypasta.',
execute(message, file) {
const client = message.client;
const replyHeader = `\'${file.name}\' requested by: ${message.author.username}\n`;
let replyBody = '';
if (!client.pastas.has(file.name)) {
replyBody = 'Sorry I couldn\'t find that pasta.';
} else {
replyBody = client.pastas.get(file.name).content;
}
2021-07-14 01:13:46 +00:00
message.channel.send(functions.createTextEmbed({ content: replyBody }, message.author, `${file.name}.${file.extension}`));
2021-06-30 22:59:24 +00:00
}
}