Add Linux themed madlib written by ChatGPT

This commit is contained in:
2023-04-06 20:19:39 -05:00
parent a6077af7f5
commit d63946514a

View File

@@ -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]}); 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 => { client.on(Events.InteractionCreate, interaction => {
interaction.deferUpdate();
if (!interaction.isButton()) return; if (!interaction.isButton()) return;
if (interaction.customId == 'yes') { if (interaction.customId == 'yes') {
console.log("User selected yes"); console.log("User selected yes");
@@ -59,7 +60,7 @@ module.exports = {
channel.send("Game aborted."); channel.send("Game aborted.");
} }
} }
message.delete(); //message.delete();
}); });
console.log("User " + interaction.user.tag + " ran /startmadlib"); console.log("User " + interaction.user.tag + " ran /startmadlib");