update game urls and embed info

This commit is contained in:
VinceC
2024-11-24 01:35:04 -06:00
parent 82354dcfea
commit 12722b6fd4
2 changed files with 16 additions and 8 deletions

View File

@@ -1,9 +1,19 @@
const { ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');
// Define exact game URLs
const GAME_URLS = {
"Big Ballers VR": "https://www.vrbattles.gg/games/Big%20Ballers%20VR",
"Blacktop Hoops": "https://www.vrbattles.gg/games/Blacktop%20Hoops",
"Breachers": "https://www.vrbattles.gg/games/Breachers",
"Echo Arena": "https://www.vrbattles.gg/games/Echo%20Arena",
"Echo Combat": "https://www.vrbattles.gg/games/Echo%20Combat",
"Gun Raiders": "https://www.vrbattles.gg/games/Gun%20Raiders",
"Nock": "https://www.vrbattles.gg/games/Nock",
"VAIL": "https://www.vrbattles.gg/games/VAIL"
};
function createMatchActionRow(gameName) {
// Encode the game name for the URL
const encodedGameName = encodeURIComponent(gameName);
const matchhubUrl = `https://www.vrbattles.gg/games/${encodedGameName}`;
const matchhubUrl = GAME_URLS[gameName] || "https://www.vrbattles.gg/games";
return new ActionRowBuilder()
.addComponents(