From 4a90333965cdaef3432d5f1054e40c59869e05a3 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Thu, 6 Apr 2023 18:14:03 -0500 Subject: [PATCH] Implement madlibs --- commands/endMadlib.cjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/endMadlib.cjs b/commands/endMadlib.cjs index 1e3dd60..8ae8861 100644 --- a/commands/endMadlib.cjs +++ b/commands/endMadlib.cjs @@ -6,8 +6,7 @@ module.exports = { .setDescription('Ends an existing madlib session.'), async execute(interaction, client) { await interaction.reply('Game aborted.'); - global.madlibState = { gameChannel: undefined, storyTitle:undefined, currentStory: undefined, storyIterate: 0, storyReplaceContent: []}; - + global.madlibState = { gameChannel: undefined, storyTitle:undefined, currentStory: undefined, storyIterate: 0, storyReplaceContent: [], storyLength: undefined}; console.log("User " + interaction.user.tag + " ran /ping"); }, };