Implement madlibs

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2023-04-06 18:12:11 -05:00
parent b84c032be7
commit f5960f605f

View File

@ -6,7 +6,8 @@ module.exports = {
.setDescription('Ends an existing madlib session.'), .setDescription('Ends an existing madlib session.'),
async execute(interaction, client) { async execute(interaction, client) {
await interaction.reply('Game aborted.'); 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"); console.log("User " + interaction.user.tag + " ran /ping");
}, },
}; };