Skip to content

Commit

Permalink
add information embed
Browse files Browse the repository at this point in the history
  • Loading branch information
FaiThiX committed Oct 12, 2024
1 parent c94dadd commit 147599b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/discordTools/discordEmbeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,12 +759,14 @@ module.exports = {
const smallOilRigFieldName = Client.client.intlGet(guildId, 'smallOilRig');
const largeOilRigFieldName = Client.client.intlGet(guildId, 'largeOilRig');
const chinook47FieldName = Client.client.intlGet(guildId, 'chinook47');
const travelingVenderFieldName = Client.client.intlGet(guildId, 'travelingVendor');

const cargoShipMessage = rustplus.getCommandCargo(true);
const patrolHelicopterMessage = rustplus.getCommandHeli(true);
const smallOilMessage = rustplus.getCommandSmall(true);
const largeOilMessage = rustplus.getCommandLarge(true);
const ch47Message = rustplus.getCommandChinook(true);
const travelingVenderMessage = rustplus.getCommandTravelingVendor(true);

return module.exports.getEmbed({
title: Client.client.intlGet(guildId, 'eventInfo'),
Expand All @@ -777,7 +779,8 @@ module.exports = {
{ name: patrolHelicopterFieldName, value: `\`${patrolHelicopterMessage}\``, inline: true },
{ name: smallOilRigFieldName, value: `\`${smallOilMessage}\``, inline: true },
{ name: largeOilRigFieldName, value: `\`${largeOilMessage}\``, inline: true },
{ name: chinook47FieldName, value: `\`${ch47Message}\``, inline: true }],
{ name: chinook47FieldName, value: `\`${ch47Message}\``, inline: true },
{ name: travelingVenderFieldName, value: `\`${travelingVenderMessage}\``, inline: true }],
timestamp: true
});
},
Expand Down
1 change: 1 addition & 0 deletions src/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@
"trackerRemovePlayerDesc": "Remove Player from {tracker}",
"trademarkShownBeforeMessage": "{trademark} will be shown before messages.",
"trainYard": "Train Yard",
"travelingVendor": "Traveling Vendor",
"travelingVendorDetectedSetting": "When the Traveling Vendor is detected, send a notification.",
"travelingVendorHaltedAt": "The Traveling Vendor stopped at {location}.",
"travelingVendorHaltedSetting": "When the Traveling Vendor stops moving, send a notification.",
Expand Down

0 comments on commit 147599b

Please sign in to comment.