Add bell curve generator
All checks were successful
NodBot Production Dockerization / build (push) Successful in 22s

This commit is contained in:
Skylar Grant 2025-02-26 18:33:22 -05:00
parent 14556a50c5
commit 28d0cc0446

View File

@ -1,5 +1,4 @@
const { SlashCommandBuilder } = require('@discordjs/builders'); const { SlashCommandBuilder } = require('@discordjs/builders');
const { MessageActionRow, Modal, TextInputComponent } = require('discord.js');
const fn = require('../functions.js'); const fn = require('../functions.js');
module.exports = { module.exports = {
@ -17,58 +16,72 @@ module.exports = {
{ name: 'We Are Not The Same', value: '342785297' }, { name: 'We Are Not The Same', value: '342785297' },
{ name: 'Surprised Pikachu', value: '155067746' }, { name: 'Surprised Pikachu', value: '155067746' },
{ name: 'Two Buttons', value: '87743020' }, { name: 'Two Buttons', value: '87743020' },
{ name: 'Uno Draw 25', value: '217743513' } { name: 'Uno Draw 25', value: '217743513' },
) { name: 'Bell Curve', value: '533936279' },
), )),
async execute(interaction) { async execute(interaction) {
try { try {
const template = interaction.options.getString('template'); const template = interaction.options.getString('template');
let memeModal; let memeModal;
// Switch the template // Switch the template
switch (template) { switch (template) {
// One-Field Memes // One-Field Memes
// Two-Field Memes // Two-Field Memes
case '181913649': // Drake Hotline Bling // Drake Hotline Bling
// Generate a modal with two text inputs case '181913649':
memeModal = fn.memes.twoFieldModal(template, ['Drake No', 'Drake Yes']); // Generate a modal with two text inputs
await interaction.showModal(memeModal); memeModal = fn.memes.twoFieldModal(template, ['Drake No', 'Drake Yes']);
break; await interaction.showModal(memeModal);
case '124055727': // Y'all Got Any More... break;
// Generate a modal with two text inputs // Y'all Got Any More...
memeModal = fn.memes.twoFieldModal(template, ['Top', 'Bottom Text'], ['Y\'all got any more of ', '']); case '124055727':
await interaction.showModal(memeModal); // Generate a modal with two text inputs
break; memeModal = fn.memes.twoFieldModal(template, ['Top', 'Bottom Text'], ['Y\'all got any more of ', '']);
case '217743513': // Uno Draw 25 await interaction.showModal(memeModal);
// Generate a modal with two text inputs break;
memeModal = fn.memes.twoFieldModal(template, ['<blank> or draw 25', 'Caption Above Person'], ['', 'Me']); // Uno Draw 25
await interaction.showModal(memeModal); case '217743513':
break; // Generate a modal with two text inputs
// Three-Field Memes memeModal = fn.memes.twoFieldModal(template, ['<blank> or draw 25', 'Caption Above Person'], ['', 'Me']);
case '322841258': // Anakin & Padme await interaction.showModal(memeModal);
// Generate a modal with three text inputs break;
memeModal = fn.memes.threeFieldModal(template, ['Anakin', 'Padme', 'Padme'], ['', '', 'Right?']); // Three-Field Memes
await interaction.showModal(memeModal); // Bell Curve
break; case '533936279':
case '342785297': // We are not the same // Generate a modal with two text inputs
// Generate a modal with three text inputs memeModal = fn.memes.threeFieldModal(template, ['Left', 'Middle', 'Right']);
memeModal = fn.memes.threeFieldModal(template, ['You...', 'I...', 'We...'], ['', '', 'We are not the same.']); await interaction.showModal(memeModal);
await interaction.showModal(memeModal); break;
break; // Anakin & Padme
case '155067746': // Surprised Pikachu case '322841258':
memeModal = fn.memes.threeFieldModal(template); // Generate a modal with three text inputs
await interaction.showModal(memeModal); memeModal = fn.memes.threeFieldModal(template, ['Anakin', 'Padme', 'Padme'], ['', '', 'Right?']);
break; await interaction.showModal(memeModal);
case '87743020': // Two Buttons break;
// Generate a modal with three text inputs // We are not the same
memeModal = fn.memes.threeFieldModal(template, ['Button 1', 'Button 2', 'Person Caption']); case '342785297':
await interaction.showModal(memeModal); // Generate a modal with three text inputs
break; memeModal = fn.memes.threeFieldModal(template, ['You...', 'I...', 'We...'], ['', '', 'We are not the same.']);
default: await interaction.showModal(memeModal);
await interaction.reply('Invalid meme template'); break;
break; // Surprised Pikachu
case '155067746':
memeModal = fn.memes.threeFieldModal(template);
await interaction.showModal(memeModal);
break;
// Two Buttons
case '87743020':
// Generate a modal with three text inputs
memeModal = fn.memes.threeFieldModal(template, ['Button 1', 'Button 2', 'Person Caption']);
await interaction.showModal(memeModal);
break;
default:
await interaction.reply('Invalid meme template');
break;
} }
} catch (error) { }
catch (error) {
console.error(error); console.error(error);
await interaction.reply('There was an error while executing this command!'); await interaction.reply('There was an error while executing this command!');
} }