removed redundant giveaway code

This commit is contained in:
kingomes
2024-11-24 01:17:48 -06:00
parent cd311a219d
commit 8f0402d49a

View File

@@ -139,15 +139,6 @@ export default commandModule({
if (stmt.length > 0 && stmt[winnerIndex].user_id !== ctx.userId) {
const winnerId = stmt[winnerIndex].user_id
embed.setDescription('\u200b')
embed.setFields(
{name: '\u200b', value: `Winner: <@${winnerId}>`},
{name: '\u200b', value: `Hosted by: <@${ctx.userId}>`},
{name: '\u200b', value: `Ended: ${new Timestamp(Number(endTimeStamp2)).getRelativeTime()} (${endTimeStamp})`}
)
embedMessage.edit({embeds: [embed]})
embedMessage.edit({content: `Congratulations <@${winnerId}> on winning the ${item} giveaway!`, embeds: []})
}
else if (stmt.length > 1 && stmt[winnerIndex].user_id === ctx.userId) {
@@ -156,15 +147,6 @@ export default commandModule({
}
const winnerId = stmt[winnerIndex].user_id
embed.setDescription('\u200b')
embed.setFields(
{name: '\u200b', value: `Winner: <@${winnerId}>`},
{name: '\u200b', value: `Hosted by: <@${ctx.userId}>`},
{name: '\u200b', value: `Ended: ${new Timestamp(Number(endTimeStamp2)).getRelativeTime()} (${endTimeStamp})`}
)
embedMessage.edit({embeds: [embed]})
embedMessage.edit({content: `Congratulations <@${winnerId}> on winning the ${item} giveaway!`, embeds: []})
}