Tutorials_for_BDFD

joinsystem

Sep 19th, 2022
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. Variables :
  2.  
  3. wchannel = 0
  4.  
  5. wrole = 0
  6.  
  7. joinmsg = Welcome [This can also be omitted]
  8.  
  9.  
  10. ___________code 1________
  11. Triggers : !setup
  12.  
  13.  
  14. $nomention
  15.  
  16.  
  17. $onlyPerms[manageroles;❌〣│You need Manage Roles permissions to set up the author role]
  18. $onlyIf[$mentionedChannels[<;yes]!=;❌〣│Mention a channel!]
  19. $onlyIf[$mentionedRoles[<]!=;❌〣│Name a role!]
  20.  
  21. $color[00ffc0]
  22. $author[Auto role set up]
  23. $description[When a user joins, I give them the role <@&$mentionedRoles[<]> and I send a message <#$mentionedChannels[>;yes]>]
  24.  
  25. $setServerVar[wchannel;$mentionedChannels[<;yes]]
  26. $setServerVar[wrole;$mentionedRoles[>]]
  27.  
  28.  
  29.  
  30. ______________CODE 2________________
  31. Trigger : $onJoined[$getServerVar[wchannel]]
  32.  
  33.  
  34. $nomention
  35.  
  36. $suppressErrors
  37.  
  38. $giveRole[$authorID;$getServerVar[wrole]]
  39.  
  40. $color[00ffc0]
  41. $title[👋〣│__Welcome__]
  42. $author[Welcome to the server, $username[$authorID]]
  43. $description[ $getServerVar[joinmsg]. $c[This can also be omitted, but is advisable if you want to use the bot on multiple servers]
  44.  
  45. This server has `$membersCount` members.
  46.  
  47. You got the role <@&$getServerVar[wrole]>!]
Advertisement
Add Comment
Please, Sign In to add comment