Advertisement
BDFD_Berk

Giveaway with reactions and timer NO PREMIUM Bot Designer For Discord BDFD

Jan 25th, 2021 (edited)
10,152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.11 KB | None | 0 0
  1. Watch this to know how to "install" it: https://youtu.be/Oc6uJe07Eug
  2. Join here for more exclusive codes & APIs!: https://discord.gg/GfUYzXnA
  3. or https://dsc.gg/codes
  4.  
  5. Command usage: (prefix)giveaway Price
  6. or: (prefix)giveaway (time, max 40 minutes) (price)
  7. The timer of the second usage don't end the giveaway itself, you still needing to use (prefix)endgw to finish it, the timer just edit the embed saying that the giveaway finished after the time ends.
  8.  
  9. Trigger Example: (prefix)giveaway
  10. [THE COMMAND REQUIRE UNSTABLE MODE ENABLED]
  11. CODE:
  12.  
  13. $nomention
  14. $onlyIf[$message[1]!=;You need to specify what you want to giveaway!]
  15.  
  16. $onlyIf[$replaceText[$replaceText[$replaceText[$replaceText[%$checkContains[&&&$message[1];&&&1;&&&2;&&&3;&&&4]%;%true%;$message[1]%;1];%false%;5;1];s%;;1];m%;;1]<41;The maximal time is 41m! please]
  17.  
  18. $onlyPerms[manageserver;You need manage server permissions to start a giveaway!]
  19.  
  20. $onlyIf[$getUserVar[gw1;$serverOwner]==0;Finish your previous giveaways to make another one!]
  21. $author[New giveaway!]
  22. $description[**Price:** $replaceText[$replaceText[%$checkCondition[$message[2]==]%;%false%;$replaceText[$message;$message[1]; ;1];1];%true%;$message;1]
  23. **Time:** $replaceText[$replaceText[$replaceText[$replaceText[%$checkContains[$message[1];m;s;1m;2m;3m;4m;5m;6m;7m;8m;9m;0m;1s;2s;3s;4s;5s;6s;7s;8s;9s;0s]$checkContains[%$message[1];%1;%2;%3;%4;%5;%6;%7;%8;%9]%;%truetrue%;$message[1];1];%falsefalse%;Not defined;1];%falsetrue%;Not defined;1];%truefalse%;Not defined;1]
  24. **Winner:** No one yet!]
  25. $footer[React with 🎉 to enter the giveaway!]
  26. $color[ff0000]
  27. $addReactions[🎉]
  28. $setUserVar[gw1;$replaceText[$replaceText[%$checkCondition[$message[2]==]%;%false%;$replaceText[$message;$message[1]; ;1];1];%true%;$message;1];$serverOwner]
  29.  
  30. $setUserVar[gw3;$$replaceText[$replaceText[$replaceText[$replaceText[%$checkContains[$message[1];m;s;1m;2m;3m;4m;5m;6m;7m;8m;9m;0m;1s;2s;3s;4s;5s;6s;7s;8s;9s;0s]$checkContains[%$message[1];%1;%2;%3;%4;%5;%6;%7;%8;%9]%;%truetrue%;editEmbedIn;1];%falsefalse%;checkContains;1];%falsetrue%;checkContains;1];%truefalse%;checkContains;1][$replaceText[$replaceText[$replaceText[$replaceText[%$checkContains[$message[1];m;s;1m;2m;3m;4m;5m;6m;7m;8m;9m;0m;1s;2s;3s;4s;5s;6s;7s;8s;9s;0s]$checkContains[%$message[1];%1;%2;%3;%4;%5;%6;%7;%8;%9]%;%truetrue%;$message[1];1];%falsefalse%;NoN;1];%falsetrue%;NoN;1];%truefalse%;NoN;1];Giveaway ended;To know the results, a staff must do +endgw <this message ID>!;This giveaway ended at $hour:$minute:$second;C0C0C0]]
  31. $varExistError[gw1;Come on, add the "gw1" variable with value "0" and all in lowercase! i said it 100 times, join here for more detailed help: https://discord.gg/GfUYzXnA]
  32. $varExistError[gw2;Come on, add the "gw2" variable with value "0" and all in lowercase! i said it 100 times, join here for more detailed help: https://discord.gg/GfUYzXnA]
  33. $varExistError[gw3;Come on, add the "gw3" variable with value "0" and all in lowercase! i said it 100 times, join here for more detailed help: https://discord.gg/GfUYzXnA]
  34.  
  35.  
  36.  
  37.  
  38. // SECOND CODE, END GIVEAWAY:
  39.  
  40.  
  41. Trigger example: (prefix)endgw
  42. [THE COMMAND REQUIRE UNSTABLE MODE ENABLED]
  43. CODE:
  44.  
  45. $nomention
  46. $onlyIf[$message[1]!=;Type a valid message ID]
  47. $onlyPerms[manageserver;You need manage server permissions to end this giveaway!]
  48. $onlyIf[$getUserVar[gw1;$serverOwner]!=0;That giveaway was finished already! you can do another one.]
  49. $onlyIf[$checkContains[$getBotInvite;client_id=$getMessage[$channelID;$message[1];authorID]]==true;That isn't a giveaway created by the bot.]
  50. The user $replaceText[$replaceText[`$replaceText[$replaceText[%$checkCondition[$randomText[$joinSplitText[;]]==]%;%true%;$'randomText[$joinSplitText[;]];1];%false%;$randomText[$joinSplitText[;]];1]`;``;$username[$authorID]#$discriminator[$authorID];1];` `;$username[$authorID]#$discriminator[$authorID];1] won the giveaway of $replaceText[$replaceText[`$getUserVar[gw1;$serverOwner]`!;``!;`unknown :(`;1];` `!;`unknown :(`;1]
  51. $setUserVar[gw1;0;$serverOwner]
  52. $setUserVar[gw2;$replaceText[$replaceText[%$checkCondition[$randomText[$joinSplitText[;]]==]%;%true%;$'randomText[$joinSplitText[;]];1];%false%;$randomText[$joinSplitText[;]];1];$serverOwner]
  53. $textSplit[$getReactions[$channelID;$message[1];+;🎉];+]
  54. $suppressErrors[Invalid giveaway ID! type a valid message ID of a giveaway created by the bot next time.]
  55. $varExistError[gw1;Come on, add the "gw1" variable with value "0" and all in lowercase! i said it 100 times, join here for more detailed help: https://discord.gg/GfUYzXnA or https://dsc.gg/codes]
  56. $varExistError[gw2;Come on, add the "gw2" variable with value "0" and all in lowercase! i said it 100 times, join here for more detailed help: https://discord.gg/GfUYzXnA or https://dsc.gg/codes]
  57. $varExistError[gw3;Come on, add the "gw3" variable with value "0" and all in lowercase! i said it 100 times, join here for more detailed help: https://discord.gg/GfUYzXnA or https://dsc.gg/codes]
  58.  
  59.  
  60. //
  61.  
  62. VARIABLES
  63. gw1
  64. gw2
  65. gw3
  66. ALL THE VALUES "0", AND THE VARIABLES IN LOWERCASE.
  67.  
  68.  
  69.  
  70. 100% by BDFD: Guide (Berk Der Berserker, Berk#3506) if you wanna share the command, give credits.
  71. - https://discord.gg/GfUYzXnA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement