Advertisement
BDFD_Berk

Autorole Bot designer for discord

Sep 21st, 2020 (edited)
7,185
2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. https://discord.gg/GfUYzXnA
  2. // Setup command
  3. // VARIABLES (add in the app): //
  4. // wchannel // Value 0
  5. // wrole // Value 0
  6.  
  7. //First command//
  8. // Trigger: (your prefix)setup // you can change the name if you want!
  9. // CODE: //
  10.  
  11. $nomention
  12.  
  13. $onlyPerms[manageroles;You need manage roles permissions to setup the autorole]
  14. $onlyIf[$mentionedChannels[<;yes]!=;Mention a channel!]
  15. $onlyIf[$mentionedRoles[<]!=;Mention a role!]
  16.  
  17. $color[$random[100000;999999]]
  18. $author[Autorole setup]
  19. $description[When a user join, i'll give him the role <@&$mentionedRoles[<]>, and i'll send a message on <#$mentionedChannels[>;yes]>]
  20.  
  21. $setServerVar[wchannel;$mentionedChannels[<;yes]]
  22. $setServerVar[wrole;$mentionedRoles[>]]
  23.  
  24. //Second command//
  25. //Trigger: $onJoined[$getServerVar[wchannel]]//
  26. //CODE://
  27.  
  28. $nomention
  29. $suppressErrors
  30.  
  31. $giveRole[$authorID;$getServerVar[wrole]]
  32.  
  33. $color[$random[100000;999999]]
  34. $author[Welcome to the server, $username[$authorID]]
  35. $description[You received the role <@&$getServerVar[wrole]>!]
  36.  
  37. // Join here to get more exclusive codes & APIs: https://discord.gg/GfUYzXnA
  38. //if you have question or it returns any error, feel free to join the support server, https://dsc.chat/codes //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement