2023-04-06 18:10:13 -05:00
|
|
|
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.');
|
2023-04-06 18:14:03 -05:00
|
|
|
global.madlibState = { gameChannel: undefined, storyTitle:undefined, currentStory: undefined, storyIterate: 0, storyReplaceContent: [], storyLength: undefined};
|
2023-04-06 18:10:13 -05:00
|
|
|
console.log("User " + interaction.user.tag + " ran /ping");
|
|
|
|
},
|
|
|
|
};
|