Add Linux themed madlib written by ChatGPT

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-06 20:03:03 +07:00
parent 144153ee94
commit a6077af7f5
1 changed files with 2 additions and 0 deletions

@ -41,12 +41,14 @@ module.exports = {
const channel = client.channels.cache.get(interaction.channel.id);
channel.send({ content: 'Select a story', components: [row], fetchMessage: true });
client.on(Events.InteractionCreate, interaction => {
interaction.deferUpdate();
if (!interaction.isStringSelectMenu()) return;
selectedStory = interaction.values[0];
console.log("User selected: " +selectedStory);
initGame(interaction.channel.id, client, interaction, selectedStory);
//storySelectMessage.delete();
console.log(interaction);
interaction.channel.send("Started game!");
});
}