Add Linux themed madlib written by ChatGPT
This commit is contained in:
parent
a6077af7f5
commit
d63946514a
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user