20 lines
523 B
JavaScript
20 lines
523 B
JavaScript
const fn = require('../functions.js');
|
|
|
|
module.exports = {
|
|
name: 'pasta',
|
|
description: 'Send a copypasta.',
|
|
usage: '<Copypasta Name>.pasta',
|
|
execute(message, commandData) {
|
|
const client = message.client;
|
|
let pastaData;
|
|
if (!client.pastas.has(commandData.args)) {
|
|
pastaData = {
|
|
content: "Sorry, I couldn't find that pasta."
|
|
};
|
|
} else {
|
|
commandData.content = client.pastas.get(commandData.args).content;
|
|
}
|
|
const messagePayload = fn.embeds.pasta(commandData);
|
|
message.reply(messagePayload);
|
|
}
|
|
} |