const { SlashCommandBuilder, Discord } = require('discord.js');

module.exports = {
	data: new SlashCommandBuilder()
		.setName('endmadlib')
		.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};
		console.log("User " + interaction.user.tag + " ran /ping");
	},
};