Add Linux themed madlib written by ChatGPT

master
Chloe Fontenot 🏳️‍⚧️ 2023-04-06 20:19:39 +07:00
parent a6077af7f5
commit d63946514a
1 changed files with 2 additions and 1 deletions

@ -23,6 +23,7 @@ module.exports = {
);
const message = await interaction.reply({ content: "You have requested to start a madlib game in the current channel. I will intercept any message sent in this channel as game input until the game is over. Please refrain from using this in a busy channel, as it can be annoying for others. Would you like to continue?", fetchReply: true, components: [row]});
client.on(Events.InteractionCreate, interaction => {
interaction.deferUpdate();
if (!interaction.isButton()) return;
if (interaction.customId == 'yes') {
console.log("User selected yes");
@ -59,7 +60,7 @@ module.exports = {
channel.send("Game aborted.");
}
}
message.delete();
//message.delete();
});
console.log("User " + interaction.user.tag + " ran /startmadlib");