BDFD_Berk

Reaction roles with CONFIRM system V2 | Bot Designer For Discord | BDFD

Nov 11th, 2020 (edited)
6,421
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Watch this to see how it looks, and see the description:
  2. https://youtu.be/qFVG_rUjOSg
  3. https://discord.gg/GfUYzXnA
  4.  
  5. ================================================================================================
  6.  
  7. Variables requireds (create all of them), KEEP THE VALUES EMPTY, AND ALL THE VARIABLES IN LOWERCASE (no caps, like this)!:
  8.  
  9. message
  10.  
  11. channel
  12.  
  13. emote
  14.  
  15. step
  16.  
  17. role
  18.  
  19. ================================================================================================
  20.  
  21. IMPORTANT: ADD THE COMMANDS IN ORDER, FROM THE FIRST ONE TO THE LAST ONE, AND ENABLE UNSTABLE MODE ON THE ONES THAT REQUIRE IT!
  22. Only the command 1 and the command 2 require unstable mode.
  23.  
  24. ================================================================================================
  25.  
  26. COMMAND 1:
  27. Trigger: (prefix)setup
  28. Mode: BDscript UNSTABLE
  29. Code:
  30.  
  31. $disableSpecialEscaping
  32. $nomention
  33. $deletecommand
  34. $suppressErrors
  35. $onlyIf[$message!=;]
  36. $onlyIf[$getServerVar[step]==2;]
  37. $onlyPerms[manageroles;You don't have enough permissions to do this, need manage roles permissions.]
  38. $onlyIf[$isNumber[$message[1]]==true;Invalid message ID! please check if you write a valid one.]
  39. $onlyIf[$charCount[$message[1]]==18;Invalid message ID! please check if you write a valid one.]
  40. $onlyIf[$getServerVar[step]==2;]
  41. $setServerVar[message;$message[1]]
  42. $author[Setup 2/2]
  43. $authorIcon[https://creazilla-store.fra1.digitaloceanspaces.com/emojis/48800/check-mark-button-emoji-clipart-md.png]
  44. $setServerVar[step;]
  45. $description[The message ID **$message[1]** has been set as Reaction message, now the users that want the role <@&$getServerVar[role]> just need **react** to that message, and type "**++confirm**"
  46.  
  47. Channel: <#$getServerVar[channel]>
  48. Role: <@&$getServerVar[role]>
  49. Message ID: $message[1]
  50. Emote: $getServerVar[emote]]
  51. $deleteIn[15s]
  52.  
  53. $color[00FF00]
  54.  
  55. ================================================================================================
  56.  
  57. COMMAND 2:
  58. Trigger: (prefix, yes, just the prefix, nothing more in the trigger! just your bot prefix)
  59. Mode: BDscript UNSTABLE
  60. Code:
  61.  
  62. $disableSpecialEscaping
  63. $nomention
  64. $disableSpecialEscaping
  65. $onlyIf[$toLowercase[$message]==confirm;]
  66. $disableSpecialEscaping
  67.  
  68. $$replaceText[$replaceText[%$checkContains[$getReactions[$getServerVar[channel];$getServerVar[message];|;$getServerVar[emote]];$username#$discriminator[$authorID]]%;%false%;takeRole;1];%true%;giveRole;1][$authorID;$getServerVar[role]]
  69. $disableSpecialEscaping
  70. $suppressErrors
  71. $disableSpecialEscaping
  72.  
  73. ================================================================================================
  74.  
  75. COMMAND 3:
  76. Trigger: (prefix)setup
  77. Mode: BDscript
  78. Code:
  79.  
  80. $disableSpecialEscaping
  81. $nomention
  82. $onlyPerms[manageroles;To use this you need manage roles permissions!]
  83. $onlyBotPerms[manageroles;I need manage roles permissions!]
  84. $onlyIf[$getServerVar[step]!=2;Step]
  85. $onlyIf[$message!=;**First** setup step: `++setup (#channel) (emote) (@role)` | **Second** step: `++setup (message ID)`]
  86. $onlyIf[$message[2]!=;]
  87. $onlyIf[$message!=;**First** setup step: `++setup (#channel) (emote) (@role)` | **Second** step: `++setup (message ID)`]
  88.  
  89. $onlyIf[$mentionedRoles[>]!=;Please mention a role, usage: ++setup (#channel) (emote) (@role)]
  90.  
  91. $setServerVar[channel;$mentionedChannels[>;yes]]
  92. $setServerVar[emote;$message[2]]
  93. $setServerVar[role;$mentionedRoles[>]]
  94. $setServerVar[step;2]
  95.  
  96. $author[Setup 1/2]
  97. $authorIcon[https://creazilla-store.fra1.digitaloceanspaces.com/emojis/48800/check-mark-button-emoji-clipart-md.png]
  98.  
  99. $description[The channel <#$mentionedChannels[>]> has been set as reaction role channel, and they will get the role <@&$mentionedRoles[>]>, the emoji is $message[2], now please **copy the message ID of the next bot message**, and do **++setup (messageID) to finish.**]
  100. $deleteIn[20s]
  101. $color[00FF00]
  102.  
  103. ================================================================================================
  104.  
  105. COMMAND 4 (last one):
  106. Trigger: (prefix)setup
  107. Mode: BDscript
  108. Code:
  109.  
  110. $disableSpecialEscaping
  111. $nomention
  112. $suppressErrors
  113. $onlyIf[$getServerVar[step]==2;]
  114. $onlyPerms[manageroles;You don't have enough permissions to do this, need manage roles permissions.]
  115.  
  116. $useChannel[$getServerVar[channel]]
  117. $replyIn[6s]
  118. $author[Get the "$roleName[$getServerVar[role]]" role]
  119. $authorIcon[https://beeimg.com/images/a20830977742.png]
  120.  
  121. $description[Now, do **++setup (This message ID)**, if you don't know how copy the message ID, [click here](https://www.youtube.com/watch?v=uq4LJDbIIj0)!]
  122. $editIn[37s;React with the emoji $getServerVar[emote] and type "++confirm" to get the role <@&$getServerVar[role]>!]
  123. $addReactions[$getServerVar[emote]]
  124.  
  125. $color[2aaafa]
  126.  
  127. ================================================================================================
  128.  
  129. Join here to ask for codes, add your bot, get or share BDFD codes & APIs:
  130. https://discord.gg/GfUYzXnA
Add Comment
Please, Sign In to add comment