Giveaway System

Full-featured Container Giveaway System. Use ?gw [prize] to start.
Requires variables: giveawayPrize (value= ) and giveawayParticipants (value= )

BDScript 2
$nomention
$deletecommand
$suppressErrors
$onlyPerms[managemessages;You need perms]
$onlyBotPerms[managemessages;I need perms]

$if[$message==]
Correct usage: !giveaway {prize}
$else
$c[Set dummy value so it's never empty]
$setServerVar[giveawayParticipants;]
$c[Store the prize]
$setServerVar[giveawayPrize;$message]
$textSplit[$getServerVar[giveawayParticipants];\;]
$var[participantCount;$sub[$getTextSplitLength;1]]

$addContainer[gw;#000000]
$addTextDisplay[## ✨ $getServerVar[giveawayPrize] ✨]
$addSeparator[true;Small;gw]
$addTextDisplay[✴️ **Winners:** 1
✴️ **Ends:** Anytime
✴️ **Hosted by:** <@$authorID>;gw]
$addSeparator[true;Small;gw]
$addActionRow[gwr;gw]
$addButtonCV2[join_giveaway;;success;false;🎉;gwr]
$addButtonCV2[pick_winner-$authorID;End;secondary;false;;gwr]
$addButtonCV2[part;;primary;false;👤;gwr]
$addSeparator[true;Small;gw]
$addTextDisplay[-# Click 🎉 to participate!;gw]

$endif