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;
|
2023-08-08 18:34:46 +00:00
|
|
|
let pastaData;
|
2021-09-22 17:15:31 +00:00
|
|
|
if (!client.pastas.has(commandData.args)) {
|
2023-12-13 21:49:48 +00:00
|
|
|
pastaData = {
|
|
|
|
content: "Sorry, I couldn't find that pasta."
|
|
|
|
};
|
2021-09-22 17:15:31 +00:00
|
|
|
} else {
|
2023-08-08 18:34:46 +00:00
|
|
|
pastaData = client.pastas.get(commandData.args);
|
2021-09-22 17:15:31 +00:00
|
|
|
}
|
2023-08-08 18:34:46 +00:00
|
|
|
message.reply(fn.embeds.pasta(commandData, pastaData));
|
2021-09-22 17:15:31 +00:00
|
|
|
}
|
|
|
|
}
|