From f5960f605fc7fdd7af3d6904fea6c061c3061f5e Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Thu, 6 Apr 2023 18:12:11 -0500 Subject: [PATCH] Implement madlibs --- commands/endMadlib.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/endMadlib.cjs b/commands/endMadlib.cjs index 8ae8861..1e3dd60 100644 --- a/commands/endMadlib.cjs +++ b/commands/endMadlib.cjs @@ -6,7 +6,8 @@ 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: [], storyLength: undefined}; + global.madlibState = { gameChannel: undefined, storyTitle:undefined, currentStory: undefined, storyIterate: 0, storyReplaceContent: []}; + console.log("User " + interaction.user.tag + " ran /ping"); }, };