Welcome to CoreMart!

By registering with us, you'll be able to discuss, share, download resources and private message with other members of our community.

Sign-Up Now!
Advanced Giveaways | Corebot Addon

Outdated Addon Advanced Giveaways | Corebot Addon 1.1.4

Current Features
  • WebPage Giveaway Timer
    • Customize HTML
    • SelfHosted Webpage
    • REQUIRES OPEN PORT & IP
    • Countdown till giveaway ends
  • Giveaway Entry Requirements
    • Coin Requirement
    • Level Requirement
    • Role Requirement
    • Blacklist Roles From Joining
  • Give Role On Winning Giveaway
  • Blacklist Users From Winning (silent)
    • gblacklist
    • Prevents a user from winning even if they joined
  • List Giveaways
  • ReRoll Giveaways
  • End Giveaways
  • Create Giveaways
  • Custom Emoji Support
screenshots.png

2BDLBdkdXA.gif

hYGgsRtFFz.gif

lq07c4fjaa.gif

preview1.PNG

preview12.PNG

QpIV379SfA.gif

configuration.png

YAML:
Emoji: 🎁
RequireEntries: false
Webpage:
  Ip: 0.0.0.0
  Port: 1890
  HTML: >-
    <!DOCTYPE html>
          <html>
         
          <head>
              <meta charset="utf-8">
              <meta name="viewport" content="width=device-width, initial-scale=1.0">
              <title>AdvancedGiveaways - Timer</title>
              <style type="text/css">
                  @import url('https://fonts.googleapis.com/css2?family=Suez+One&display=swap');
         
                  body {
                      background-image: url("https://cdn.discordapp.com/attachments/879056234945335369/879484812329648198/background.png");
                      background-repeat: no-repeat;
                      background-size: cover;
                  }
         
                  .center {
                      display: block;
                      margin-left: auto;
                      margin-right: auto;
                      margin-top: 10ch;
                      width: 15%;
                  }
         
                  .countdown {
                      font-size: 75px;
                      color: #fefefe;
                      text-align: center;
                  }
              </style>
         
          </head>
         
          <body onload="myTimezone()">
              <img src="https://cdn.discordapp.com/attachments/879056234945335369/879487183076073562/party-popper_1.png"
                  class="center">
              <div>
                  <h1 id="countdown" class="countdown">00 : 00 : 00 : 00</h1>
              </div>
          </body>
          <script>
              function myTimezone() {
                  var time = parseInt("{end_date}", 10);
                  if (isNaN(time)) return $.error('Invalid Time');
                  var theDate = new Date(time);
         
                  document.getElementById("convert")
                      .innerHTML = "Local time: "
                      + theDate.toLocaleString();
              }
              var countDownDate = new Date(parseInt("{end_date}", 10)).getTime();
         
              var x = setInterval(function () {
                  var now = new Date().getTime();
                  var distance = countDownDate - now;
         
                  var days = Math.floor(distance / (1000 * 60 * 60 * 24));
                  var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
                  var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
                  var seconds = Math.floor((distance % (1000 * 60)) / 1000);
         
                  document.getElementById("countdown").innerHTML = days + "d " + hours + "h " + minutes + "m " + seconds + "s ";
         
                  if (distance < 0) {
                      clearInterval(x);
                      document.getElementById("countdown").innerHTML = "Giveaway Ended!";
                  }
              }, 1000);
          </script>
         
          </html>
TimerLayout: "[Timer](http://localhost:1980/giveaway?message={id})"
Commands:
  End:
    RequiredRole: Admin
  Create:
    RequiredRole: Admin
  List:
    name: glist
    usage: glist <page>
    type: giveaways
    aliases: []
    description: List all giveaways in your guild
    RequiredRole: Admin
    GiveawaysPerPage: 10
  Reroll:
    RequiredRole: Admin
  Blacklist:
    name: gblacklist
    usage: gblacklist <user> <true/false>
    type: giveaways
    aliases: []
    description: Blacklist a user from winning giveaways
    RequiredRole: Admin
Embeds:
  Success:
    Setup:
      Title: Giveaway Setup • {pos}
      Description: >-
        {question}

        **Note:** You can type cancel at any moment to cancel the giveaway creation
    addRequirement:
      Title: Giveaway Setup • {pos}
      Description: >-
        {question}

        **Note:** You can type cancel at any moment to cancel the giveaway creation
    Canceled:
      Title: Giveaway Setup Canceled
      Description: Giveaway creation canceled.
      Color: "#f52c2c"
    GiveawayEmbed:
      Author: New Giveaway, React with 🎉 to join!
      Description: |-
        🎁 • {prize}
        🏅**Winners:** {winners}
         **Time left:** {time}
        {requirements}
      Footer: Ends on • {end}
    EndedGiveaway:
      Author: Giveaway Ended
      Description: |-
        🎁 • {reward}
        🏅**Winners:**
        {winners}
      Footer: Ended
    RequirementEmbed:
      Title: Which requirement would you like?
      Description: |-
        :one: • Level Requirement.
        :two: • Coin Requirement.
        :three: • Role Requirement.
        :four: • Blacklist Role Requirement.
        :five: • Role Rewards on Winning.
        :gift: • Start your giveaway!
      Footer: "Please select an option:"
    GiveawayCreated:
      Title: New giveaway
      Description: Your giveaway has been created. You can view it [here]({url})
    JoinedGiveaway:
      Title: Your giveaway entry has been approved!
      Description: Your giveaway entry for **{reward}** has been approved.
    EndedGiveawayMessage:
      Title: Giveaway Ended
      Description: >-
        The giveaway for [{reward}]({url}) has ended and the winners are as
        follows:
        {winners}
    GiveawayEnded:
      Title: Success
      Description: Your giveaway has successfully ended.
    GiveawayRerolled:
      Title: Success
      Description: Your giveaway has been successfully rerolled.
    GiveawayList:
      Title: Current Giveaways ({curPage}/{maxPages})
      Description: "{description}"
    UserBlacklisted:
      Author: User Blacklisted
      Description: The user <@{user}>'s blacklist status has been set to ``{status}``
      Color: "#25de1f"
  Errors:
    InvalidChannel:
      Title: Invalid Channel
      Description: Please mention or type the name of a channel.
      Color: "#f52c2c"
    InvalidTime:
      Title: Invalid Time
      Description: Please use a valid time format such as ``1m|1h|1d``
      Color: "#f52c2c"
    InvalidWinners:
      Title: Invalid Winners
      Description: Please use a valid number for the amount of winners.
      Color: "#f52c2c"
    InvalidLevel:
      Title: Invalid Level
      Description: Please use a valid number for the required level.
      Color: "#f52c2c"
    InvalidCoins:
      Title: Invalid Coins
      Description: Please use a valid number for the required coins.
      Color: "#f52c2c"
    MustBeYesNo:
      Title: Invalid Response
      Description: Please respond with ``Yes|No``
      Color: "#f52c2c"
    MissingRole:
      Title: Your giveaway entry has been denied.
      Description: Your giveaway entry for **{reward}** has been denied as you do not
        have the role required in **{guild}**
      Color: "#f52c2c"
    MissingCoins:
      Title: Your giveaway entry has been denied.
      Description: Your giveaway entry for **{reward}** has been denied as you do not
        have enough coins in **{guild}**
      Color: "#f52c2c"
    MissingLevel:
      Title: Your giveaway entry has been denied.
      Description: Your giveaway entry for **{reward}** has been denied as you are not
        high enough level in **{guild}**
      Color: "#f52c2c"
    BlacklistedRole:
      Title: Your giveaway entry has been denied.
      Description: Your giveaway entry for **{reward}** has been denied as you have a
        blacklisted role in **{guild}**
      Color: "#f52c2c"
    InvalidMessageId:
      Title: Please send a valid message id
      Description: The message id you sent is not a valid. View active giveaways with
        ``glist``
      Color: "#f52c2c"
    AlreadyEnded:
      Title: Invalid Giveaway
      Description: |-
        The giveaway you have tried to end has already been marked as ended.
         If you wish to reroll do ``greroll <messageId>``
      Color: "#f52c2c"
    IsntEnded:
      Title: Invalid Giveaway
      Description: |-
        The giveaway you have tried to end has not been marked as ended.
         If you wish to end a giveaway do ``gend <messageId>``
      Color: "#f52c2c"
    NotEnoughEntries:
      Title: Missing Entries
      Description: The giveaway for [{reward}]({url}) has ended with not enough winners.
      Color: "#f52c2c"
    NoGiveaways:
      Title: No Giveaways
      Description: There are no giveaways in this guild.
      Color: "#f52c2c"
GiveawayQuestions:
  - Please mention or type the name of the channel you want to host the giveaway
    in.
  - |-
    How long do you want the giveaway to last?
     You can use `m` for minutes, `h` for hours and `d` for days.
  - How many winners will there be?
  - What will you be giving away?
  - >-
    Do you want to add any extra options such as: giveaway requirements,
    scheduling rewards, custom options?
     `Yes | No`
RequirementQuestions:
  Level: What level is required to join this giveaway?
  Coin: How many coins are required to join this giveaway?
  RoleReward: What role(s) would you like to be given upon winning the giveaway?
  Role: What role(s) are required to join the giveaway?
  BlacklistedRoles: What role(s) are blacklisted from joining this giveaway?
Lang:
  RequiredRoles: |
    :mega: You must have <@&{role}> role.
  RequiredLevel: |
    :mega: You must be atleast level {level}.
  RequiredCoins: |
    :mega: You must have atleast {coins} coins.
  BlacklistedRoles: |
    ❌ The role <@&{role}> is blacklisted from joining.
59L_encrypted.png

59L_Discord.PNG
Author
Zorino
Type
Digital product
License duration
Unlimited
Price
6.99 GBP
Views
984
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from Zorino

Latest updates

  1. Advanced Giveaways Update v1.1.4

    Added AutoInstall Function AutoInstalls Express module on startup WITHOUT --no-install
Back
Top