nodbot/dot-commands/pasta.js
Skylar Grant 82f65a800c
Some checks reported warnings
NodBot Production Dockerization / build (pull_request) Has been cancelled
bugfixes
2023-12-13 16:49:48 -05:00

19 lines
475 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 {
pastaData = client.pastas.get(commandData.args);
}
message.reply(fn.embeds.pasta(commandData, pastaData));
}
}