From d63946514abf6f7142c32f5820c6093c2e935f3a Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Thu, 6 Apr 2023 20:19:39 -0500 Subject: [PATCH 1/2] Add Linux themed madlib written by ChatGPT --- commands/startMadlib.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/startMadlib.cjs b/commands/startMadlib.cjs index b71c0be..76a0253 100644 --- a/commands/startMadlib.cjs +++ b/commands/startMadlib.cjs @@ -23,6 +23,7 @@ module.exports = { ); const message = await interaction.reply({ content: "You have requested to start a madlib game in the current channel. I will intercept any message sent in this channel as game input until the game is over. Please refrain from using this in a busy channel, as it can be annoying for others. Would you like to continue?", fetchReply: true, components: [row]}); client.on(Events.InteractionCreate, interaction => { + interaction.deferUpdate(); if (!interaction.isButton()) return; if (interaction.customId == 'yes') { console.log("User selected yes"); @@ -59,7 +60,7 @@ module.exports = { channel.send("Game aborted."); } } - message.delete(); + //message.delete(); }); console.log("User " + interaction.user.tag + " ran /startmadlib"); From a7ada53ddefce0190d79e5379e6a3be3bf3679c4 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Thu, 6 Apr 2023 20:26:25 -0500 Subject: [PATCH 2/2] Add additional stories --- madlibs/stories.json | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/madlibs/stories.json b/madlibs/stories.json index 6123aeb..22797d6 100644 --- a/madlibs/stories.json +++ b/madlibs/stories.json @@ -1,11 +1,13 @@ { "stories": { - "MadLib Gameshow": " on down! You're the next contestant on 's new gameshow, MadLib! Here's how it works. You will over a at a rate of mph. After you jump over that item, you will over to the and press the at the end. time wins! Oh. I forgot to introduce our host. He's a person who can't wait to in to the show. Please welcome, ! Alright players, on your mark. Get set. ! Alright, here goes on the first stage of the competition. And.. WOAH! He just over the thing! That's gonna hurt him tommorow. But it'll be all worth it after he wins the grand prize of dollars! Which he says will go towards . Very investment, but it's his money! Here he comes around the second leg. AND WOAH, AGAIN HE LOOKS ON NETWORK TELEVISION! This is what primetime is all about here on the network of . And, he presses it! He finishes with a time of