2021-09-22 17:15:31 +00:00
|
|
|
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 replyBody = '';
|
|
|
|
let iconUrl;
|
|
|
|
if (!client.pastas.has(commandData.args)) {
|
|
|
|
commandData.content = 'Sorry I couldn\'t find that pasta.';
|
|
|
|
} else {
|
|
|
|
commandData.content = client.pastas.get(commandData.args).content;
|
|
|
|
}
|
2024-09-22 16:17:09 +00:00
|
|
|
const messagePayload = fn.embeds.pasta(commandData);
|
|
|
|
message.reply(messagePayload);
|
2021-09-22 17:15:31 +00:00
|
|
|
}
|
|
|
|
}
|