Skip to content

Commit

Permalink
Allow opening own presents
Browse files Browse the repository at this point in the history
  • Loading branch information
holzmaster committed Jan 21, 2025
1 parent 70d2c0b commit d4a1c32
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/service/lootDrop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,6 @@ export async function postLootDrop(
return;
}

if (donor !== undefined && interaction.user.id === donor.id) {
await message.edit({
content: `${interaction.user} hat versucht, das Geschenki selbst zu öffnen. Das geht aber nichti ${hamster}\nDas Geschenk macht plopp und ist weg! 🎈`,
embeds: [],
components: [],
});
return;
}

const defaultWeights = lootTemplates.map(t => t.weight);
const { messages, weights } = await getDropWeightAdjustments(interaction.user, defaultWeights);

Expand Down

0 comments on commit d4a1c32

Please sign in to comment.