Skip to content

Commit

Permalink
Added TOTD Exchange Info
Browse files Browse the repository at this point in the history
  • Loading branch information
GreepTheSheep committed Nov 6, 2023
1 parent 3781caf commit 6f8fe8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/totd/totdInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,10 @@ async function renderTOTDEmbed(tmio, month, day, year){
.setFooter({text: `Map UID: ${map.uid}`})
.setImage(map.thumbnailCached);

map.exchange().then(exchange=>{
if (exchange != null) embed.addFields({name:'TMX Info:', value:`🎮 ${exchange.difficulty}\n🏆 ${exchange.awards} Awards`, inline:true});
}).catch(err=>{});

// create 2 interaction rows (button or select menus)
const interactionComponentRows = [];
for (let i = 0; i < 1; i++) {
Expand Down
4 changes: 4 additions & 0 deletions src/events/totd.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ exports.sendTOTD = async function(dataChannel, client, tmio, map, totd){
.setFooter({text: `Map UID: ${map.uid}`})
.setImage(map.thumbnailCached);

map.exchange().then(exchange=>{
if (exchange != null) embed.addFields({name:'TMX Info:', value:`🎮 ${exchange.difficulty}\n🏆 ${exchange.awards} Awards`, inline:true});
}).catch(err=>{});

const interactionComponentRows = [];
for (let i = 0; i < 1; i++) {
interactionComponentRows.push(new MessageActionRow());
Expand Down

0 comments on commit 6f8fe8f

Please sign in to comment.