Implement madlibs
This commit is contained in:
parent
42a42f2594
commit
b84c032be7
12
commands/endMadlib.cjs
Normal file
12
commands/endMadlib.cjs
Normal file
@ -0,0 +1,12 @@
|
||||
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");
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user