Skip to content

Commit

Permalink
feat: added text in embed and on end
Browse files Browse the repository at this point in the history
  • Loading branch information
Destinea committed Dec 15, 2024
1 parent fe057a3 commit 5ee68b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bot/giveaway/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ async def produce_giveaway_event(producer, event_type, giveaway):
"prize": giveaway['prize'],
"mentions": giveaway.get('mentions', []),
"winner_count": giveaway.get('winners'),
"message": giveaway.get('text_above_embed', "") if event_type == "giveaway_start" else None,
"text_above_embed": giveaway.get('text_above_embed', "") if event_type == "giveaway_start" else None,
"text_in_embed": giveaway.get('text_in_embed', "") if event_type == "giveaway_start" else None,
"text_on_end": giveaway.get('text_on_end', "") if event_type == "giveaway_end" else None,
"image_url": giveaway.get('image_url', None),
}

Expand Down

0 comments on commit 5ee68b1

Please sign in to comment.