Skip to content

Commit

Permalink
Merge pull request #272 from MiguelMachado-dev/fix/remove-btr-restock
Browse files Browse the repository at this point in the history
Fix/remove btr restock
  • Loading branch information
Razzmatazzz authored Jan 16, 2024
2 parents 86f2758 + 3326574 commit cde865f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions commands/restock.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const subCommands = {
const t = getFixedT(interaction.locale);
try {
//let prog = progress.getProgress(interaction.user.id);
const traders = await gameData.traders.getAll();
const traders = (await gameData.traders.getAll()).filter(trader => trader.normalizedName !== 'lightkeeper' && trader.normalizedName !== 'btr-driver');
const embed = new EmbedBuilder();
embed.setTitle(`${t('Trader restocks')} 🛒`);
//embed.setDescription(``);
Expand Down Expand Up @@ -118,7 +118,7 @@ const defaultFunction = {
.setNameLocalizations(getCommandLocalizations('trader'))
.setDescriptionLocalizations(getCommandLocalizations('trader_desc'))
.setRequired(true)
.setChoices(...gameData.traders.choices({all: true, blacklist: ['Fence', 'Lightkeeper']}))
.setChoices(...gameData.traders.choices({all: true, blacklist: ['Fence', 'Lightkeeper', 'BTR Driver']}))
)
.addBooleanOption(option => option
.setName('send_alert')
Expand All @@ -133,7 +133,7 @@ const defaultFunction = {
.setDescription('Announce trader restocks in a Discord channel')
.setNameLocalizations(getCommandLocalizations('channel'))
.setDescriptionLocalizations(getCommandLocalizations('restock_channel_desc'))
.addChannelOption(option =>
.addChannelOption(option =>
option.setName('channel')
.setDescription('The channel on this server in which to make announcements')
.setNameLocalizations(getCommandLocalizations('channel'))
Expand Down

0 comments on commit cde865f

Please sign in to comment.