mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Add final site link
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user