From a48c557771d1a728fe221d1f090187943c3e0e7c Mon Sep 17 00:00:00 2001 From: baz Date: Sun, 9 Feb 2025 23:48:44 +0000 Subject: [PATCH] Add URL links to IGDB on video game titles --- commands/100-games/beatGame.js | 1 + commands/100-games/deletebeatengame.js | 1 + commands/100-games/deleteplannedgame.js | 1 + commands/100-games/deleteplayinggame.js | 1 + commands/100-games/planGame.js | 1 + commands/100-games/randomplannedgame.js | 2 +- commands/100-games/recentbeat.js | 1 + commands/100-games/recentplanned.js | 1 + commands/100-games/recentplaying.js | 1 + commands/100-games/startplaying.js | 1 + 10 files changed, 10 insertions(+), 1 deletion(-) diff --git a/commands/100-games/beatGame.js b/commands/100-games/beatGame.js index 07a7259..6ec6be5 100644 --- a/commands/100-games/beatGame.js +++ b/commands/100-games/beatGame.js @@ -70,6 +70,7 @@ module.exports = { .setColor(0xFFD700) .setAuthor({ name: `${interaction.user.displayName} beat a new game!`, iconURL: interaction.user.avatarURL() }) .setTitle(`${game.name} beaten!`) + .setURL(game.url) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); diff --git a/commands/100-games/deletebeatengame.js b/commands/100-games/deletebeatengame.js index 29ebdb8..a6f6783 100644 --- a/commands/100-games/deletebeatengame.js +++ b/commands/100-games/deletebeatengame.js @@ -38,6 +38,7 @@ module.exports = { .setColor(0xFF0000) .setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() }) .setTitle(`${game.name} deleted!`) + .setURL(game.url) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); diff --git a/commands/100-games/deleteplannedgame.js b/commands/100-games/deleteplannedgame.js index 444febd..f995591 100644 --- a/commands/100-games/deleteplannedgame.js +++ b/commands/100-games/deleteplannedgame.js @@ -65,6 +65,7 @@ module.exports = { .setColor(0xFF0000) .setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() }) .setTitle(`${game.name} deleted!`) + .setURL(game.url) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); diff --git a/commands/100-games/deleteplayinggame.js b/commands/100-games/deleteplayinggame.js index 4dfc0a3..829b4fc 100644 --- a/commands/100-games/deleteplayinggame.js +++ b/commands/100-games/deleteplayinggame.js @@ -38,6 +38,7 @@ module.exports = { .setColor(0xFF0000) .setAuthor({ name: `${interaction.user.displayName} deleted a game!`, iconURL: interaction.user.avatarURL() }) .setTitle(`${game.name} deleted!`) + .setURL(game.url) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); diff --git a/commands/100-games/planGame.js b/commands/100-games/planGame.js index 622706a..7bd18d7 100644 --- a/commands/100-games/planGame.js +++ b/commands/100-games/planGame.js @@ -64,6 +64,7 @@ module.exports = { .setColor(0x43ABEC) .setAuthor({ name: `${interaction.user.displayName} is planning to beat a game!`, iconURL: interaction.user.avatarURL() }) .setTitle(`${game.name}!`) + .setURL(game.url) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); diff --git a/commands/100-games/randomplannedgame.js b/commands/100-games/randomplannedgame.js index 8f5345e..8a1d8e8 100644 --- a/commands/100-games/randomplannedgame.js +++ b/commands/100-games/randomplannedgame.js @@ -44,7 +44,7 @@ module.exports = { const coverUrl = await getCoverURL(game.cover); embed.setThumbnail(`${coverUrl}`); } - desc = `It has chosen **${game.name}**, glory be to The Ochulus!`; + desc = `It has chosen **[${game.name}](${game.url})**, glory be to The Ochulus!`; } embed.setDescription(desc); diff --git a/commands/100-games/recentbeat.js b/commands/100-games/recentbeat.js index be53d0f..84e18c8 100644 --- a/commands/100-games/recentbeat.js +++ b/commands/100-games/recentbeat.js @@ -36,6 +36,7 @@ module.exports = { .setColor(0xFFD700) .setAuthor({ name: `${user.displayName}'s most recent beat game!`, iconURL: user.avatarURL() }) .setTitle(game.name) + .setURL(game.url) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); diff --git a/commands/100-games/recentplanned.js b/commands/100-games/recentplanned.js index 7ce6041..46b7ba7 100644 --- a/commands/100-games/recentplanned.js +++ b/commands/100-games/recentplanned.js @@ -36,6 +36,7 @@ module.exports = { .setColor(0xFFD700) .setAuthor({ name: `${user.displayName}'s most recent planned game`, iconURL: user.avatarURL() }) .setTitle(game.name) + .setURL(game.url) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); diff --git a/commands/100-games/recentplaying.js b/commands/100-games/recentplaying.js index 6ffd7f5..06b7e08 100644 --- a/commands/100-games/recentplaying.js +++ b/commands/100-games/recentplaying.js @@ -36,6 +36,7 @@ module.exports = { .setColor(0xFFD700) .setAuthor({ name: `${user.displayName}'s most recent planned game`, iconURL: user.avatarURL() }) .setTitle(game.name) + .setURL(game.url) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp(); diff --git a/commands/100-games/startplaying.js b/commands/100-games/startplaying.js index 1909c89..a56f168 100644 --- a/commands/100-games/startplaying.js +++ b/commands/100-games/startplaying.js @@ -67,6 +67,7 @@ module.exports = { .setColor(0x00C921) .setAuthor({ name: `${interaction.user.displayName} has started playing a new game!`, iconURL: interaction.user.avatarURL() }) .setTitle(`${game.name}!`) + .setURL(game.url) .setFooter({ text: 'The Ochulus • 100 Games Challenge', iconURL: interaction.client.user.avatarURL() }) .setTimestamp();