From 434e7bd288aa365b2f1cab44f26b92ed52d519a4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 7 Jun 2021 20:19:02 -0400 Subject: [PATCH] Add final site link --- commands/games-sp/akinator.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/commands/games-sp/akinator.js b/commands/games-sp/akinator.js index 194e767e..b0f2691b 100644 --- a/commands/games-sp/akinator.js +++ b/commands/games-sp/akinator.js @@ -157,9 +157,17 @@ module.exports = class AkinatorCommand extends Command { } } this.client.games.delete(msg.channel.id); - if (win === 'time') return buttonPress.editReply('I guess your silence means I have won.', { components: [] }); - if (win) return buttonPress.editReply('Bravo, you have defeated me.', { components: [] }); - return buttonPress.editReply('Guessed right one more time! I love playing with you!', { components: [] }); + const row = new MessageActionRow(); + row.addComponents( + new MessageButton().setLabel('Akinator Website').setStyle('LINK').setURL('https://akinator.com/') + ); + if (win === 'time') { + return buttonPress.editReply('I guess your silence means I have won.', { components: [row] }); + } + if (win) { + return buttonPress.editReply('Bravo, you have defeated me.', { components: [row] }); + } + return buttonPress.editReply('Guessed right one more time! I love playing with you!', { components: [row] }); } catch (err) { this.client.games.delete(msg.channel.id); throw err;