November Update

A variety of bot updates, verify setup, and match request info
This commit is contained in:
VinceC
2024-11-23 22:25:10 -06:00
parent bb06fb7d9b
commit 530ecc8e17
11 changed files with 1984 additions and 8 deletions

View File

@@ -0,0 +1,43 @@
// src/utils/embedBuilders.js
const { EmbedBuilder } = require('discord.js');
function createMatchRequestEmbed(matchData) {
const matchDateTime = new Date(matchData.match_date);
const formattedDateTime = matchDateTime.toLocaleString();
return new EmbedBuilder()
.setColor('#00ff00')
.setTitle('🎮 New Match Request')
.setDescription(`A new match has been requested for ${matchData.game_name}`)
.addFields(
{
name: 'Game Details',
value: [
`🎮 **Game:** ${matchData.game_name}`,
`📋 **Match Type:** ${matchData.match_type}`,
`👥 **Team Size:** ${matchData.team_size}v${matchData.team_size}`,
].join('\n'),
inline: false
},
{
name: 'Match Settings',
value: [
`🌍 **Region:** ${matchData.region}`,
`🎯 **Class:** ${matchData.match_class}`,
`📅 **Date & Time:** ${formattedDateTime}`,
].join('\n'),
inline: false
},
{
name: 'Status',
value: `📊 **Current Status:** ${matchData.status}`,
inline: false
}
)
.setTimestamp()
.setFooter({ text: `Match Request ID: ${matchData.game_id}` });
}
module.exports = {
createMatchRequestEmbed
};