Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Watch this to see how it looks, and see the description:
- https://youtu.be/qFVG_rUjOSg
- https://discord.gg/GfUYzXnA
- ================================================================================================
- Variables requireds (create all of them), KEEP THE VALUES EMPTY, AND ALL THE VARIABLES IN LOWERCASE (no caps, like this)!:
- message
- channel
- emote
- step
- role
- ================================================================================================
- IMPORTANT: ADD THE COMMANDS IN ORDER, FROM THE FIRST ONE TO THE LAST ONE, AND ENABLE UNSTABLE MODE ON THE ONES THAT REQUIRE IT!
- Only the command 1 and the command 2 require unstable mode.
- ================================================================================================
- COMMAND 1:
- Trigger: (prefix)setup
- Mode: BDscript UNSTABLE
- Code:
- $disableSpecialEscaping
- $nomention
- $deletecommand
- $suppressErrors
- $onlyIf[$message!=;]
- $onlyIf[$getServerVar[step]==2;]
- $onlyPerms[manageroles;You don't have enough permissions to do this, need manage roles permissions.]
- $onlyIf[$isNumber[$message[1]]==true;Invalid message ID! please check if you write a valid one.]
- $onlyIf[$charCount[$message[1]]==18;Invalid message ID! please check if you write a valid one.]
- $onlyIf[$getServerVar[step]==2;]
- $setServerVar[message;$message[1]]
- $author[Setup 2/2]
- $authorIcon[https://creazilla-store.fra1.digitaloceanspaces.com/emojis/48800/check-mark-button-emoji-clipart-md.png]
- $setServerVar[step;]
- $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**"
- Channel: <#$getServerVar[channel]>
- Role: <@&$getServerVar[role]>
- Message ID: $message[1]
- Emote: $getServerVar[emote]]
- $deleteIn[15s]
- $color[00FF00]
- ================================================================================================
- COMMAND 2:
- Trigger: (prefix, yes, just the prefix, nothing more in the trigger! just your bot prefix)
- Mode: BDscript UNSTABLE
- Code:
- $disableSpecialEscaping
- $nomention
- $disableSpecialEscaping
- $onlyIf[$toLowercase[$message]==confirm;]
- $disableSpecialEscaping
- $$replaceText[$replaceText[%$checkContains[$getReactions[$getServerVar[channel];$getServerVar[message];|;$getServerVar[emote]];$username#$discriminator[$authorID]]%;%false%;takeRole;1];%true%;giveRole;1][$authorID;$getServerVar[role]]
- $disableSpecialEscaping
- $suppressErrors
- $disableSpecialEscaping
- ================================================================================================
- COMMAND 3:
- Trigger: (prefix)setup
- Mode: BDscript
- Code:
- $disableSpecialEscaping
- $nomention
- $onlyPerms[manageroles;To use this you need manage roles permissions!]
- $onlyBotPerms[manageroles;I need manage roles permissions!]
- $onlyIf[$getServerVar[step]!=2;Step]
- $onlyIf[$message!=;**First** setup step: `++setup (#channel) (emote) (@role)` | **Second** step: `++setup (message ID)`]
- $onlyIf[$message[2]!=;]
- $onlyIf[$message!=;**First** setup step: `++setup (#channel) (emote) (@role)` | **Second** step: `++setup (message ID)`]
- $onlyIf[$mentionedRoles[>]!=;Please mention a role, usage: ++setup (#channel) (emote) (@role)]
- $setServerVar[channel;$mentionedChannels[>;yes]]
- $setServerVar[emote;$message[2]]
- $setServerVar[role;$mentionedRoles[>]]
- $setServerVar[step;2]
- $author[Setup 1/2]
- $authorIcon[https://creazilla-store.fra1.digitaloceanspaces.com/emojis/48800/check-mark-button-emoji-clipart-md.png]
- $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.**]
- $deleteIn[20s]
- $color[00FF00]
- ================================================================================================
- COMMAND 4 (last one):
- Trigger: (prefix)setup
- Mode: BDscript
- Code:
- $disableSpecialEscaping
- $nomention
- $suppressErrors
- $onlyIf[$getServerVar[step]==2;]
- $onlyPerms[manageroles;You don't have enough permissions to do this, need manage roles permissions.]
- $useChannel[$getServerVar[channel]]
- $replyIn[6s]
- $author[Get the "$roleName[$getServerVar[role]]" role]
- $authorIcon[https://beeimg.com/images/a20830977742.png]
- $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)!]
- $editIn[37s;React with the emoji $getServerVar[emote] and type "++confirm" to get the role <@&$getServerVar[role]>!]
- $addReactions[$getServerVar[emote]]
- $color[2aaafa]
- ================================================================================================
- Join here to ask for codes, add your bot, get or share BDFD codes & APIs:
- https://discord.gg/GfUYzXnA
Add Comment
Please, Sign In to add comment