Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Reaction role command with confirmation, require setup, Part 1// https://discord.gg/GfUYzXnA
- //Follow the steps and do ++rstart (emote) to start the setup!
- +How this work after do the setup?
- -Users react to the message, then they say "confirm" and they get the provided role in the setup.
- Variables requireds:
- vsetup (with value: 1), vemote, vmessage, vmain, vuser, vrole, vchannel.
- Note: The only variable with value is vsetup//
- //Important: add the commands in order//
- //(prefix)vsetup
- $nomention
- $onlyBotPerms[manageroles;]
- $onlyPerms[manageroles;]
- $deletecommand
- $onlyIf[$getServerVar[vsetup]==2;]
- $onlyIf[$message[1]!=;Type the message ID of the bot message where the user should react.]
- $onlyIf[$isNumber[$message[1]]==true;Type the message ID of the bot message where the user should react.]
- $setServerVar[vsetup;3]
- $setServerVar[vmessage;$message[1]]
- $color[8000FF]
- $author[1 step more!]
- $description[``Now please do ++vsetup (@role, mention it), obviously without the "()"``
- ]
- $footer[This message gonna be deleted in 35s]
- $deleteIn[20s]
- $suppressErrors
- //Reaction role with confirm Part 2
- //(prefix)vstart
- $nomention
- $onlyBotPerms[manageroles;]
- $onlyPerms[manageroles;]
- $onlyIf[$getServerVar[vsetup]==1;]
- $onlyIf[$message[1]!=;Put a valid emote]
- $setServerVar[vsetup;2]
- $setServerVar[vemote;$message[1]]
- $setServerVar[vchannel;$channelID]
- $deletecommand
- $color[8000FF]
- $author[Verify]
- $description[``Admin, now copy the ID of this message, and do ++vsetup (The message ID) obviously without the "()" to finish``
- [Click here](https://cdn.discordapp.com/attachments/699498415968485407/721102197495955526/5And_.jpg) if you don't know how to copy the message ID, also you need turn on the developer mode, [click here](https://cdn.discordapp.com/attachments/699498415968485407/721102197672247326/1And_.jpg) if you don't know how turn it on.
- After doing two steps more the users can react to the reaction of this message and say "``confirm``" to get the role!]
- $editIn[50s;React to this message and say "confirm" to get the role!]
- $addReactions[$message[1]]
- $suppressErrors
- //Reaction role with confirm command, part 3
- //(prefix)vsetup
- $nomention
- $onlyBotPerms[manageroles;The bot don't have Permissions to do this, it need manage roles perms.]
- $onlyPerms[manageroles;]
- $deletecommand
- $onlyIf[$getServerVar[vsetup]==3;]
- $onlyIf[$message[1]!=;]
- $onlyIf[$mentionedRoles[<]!=;]
- $setServerVar[vsetup;1]
- $color[8000FF]
- $author[Ready!]
- $description[``Now the users can react to the first setup message, and say "confirm" to get the role!``
- Check if this information is right:
- ``Role to get:`` <@&$mentionedRoles[<]>
- ``Channel where is the bot first setup message:`` <#$getServerVar[vchannel]>
- ``message ID (from the message where the user should react):`` $getServerVar[vmessage]]
- $footer[This message gonna be deleted in 30s]
- $setServerVar[vrole;$mentionedRoles[<]]
- $deleteIn[30s]
- $suppressErrors
- //Important: All the confirm commands needs be in BDScript unstable mode, if you don't know how turn this mode on, join the support server//
- Trigger: confirm
- $nomention
- $deleteIn[1s]
- $deletecommand
- $setUserVar[vuser;$username[$authorID]#$discriminator[$authorID]]
- $suppressErrors
- //Trigger: confirm
- $nomention
- $deleteIn[1s]
- $setUserVar[vmain;$getReactions[$getServerVar[vchannel];$getServerVar[vmessage];$getUserVar[vuser];$getServerVar[vemote]]]
- $suppressErrors
- //Trigger: confirm
- $nomention
- $onlyIf[$hasRole[$authorID;$getServerVar[vrole]]==false;]
- $onlyIf[$checkContains[$getUserVar[vmain];$username#$discriminator[$authorID]$username#$discriminator[$authorID]]==true;]
- $deleteIn[1s]
- $addCmdReactions[👌]
- $giveRole[$authorID;$getServerVar[vrole]]
- $suppressErrors
- //(Try don't edit the functions if you don't know how the command works)
Add Comment
Please, Sign In to add comment