Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables :
- wchannel = 0
- wrole = 0
- joinmsg = Welcome [This can also be omitted]
- ___________code 1________
- Triggers : !setup
- $nomention
- $onlyPerms[manageroles;❌〣│You need Manage Roles permissions to set up the author role]
- $onlyIf[$mentionedChannels[<;yes]!=;❌〣│Mention a channel!]
- $onlyIf[$mentionedRoles[<]!=;❌〣│Name a role!]
- $color[00ffc0]
- $author[Auto role set up]
- $description[When a user joins, I give them the role <@&$mentionedRoles[<]> and I send a message <#$mentionedChannels[>;yes]>]
- $setServerVar[wchannel;$mentionedChannels[<;yes]]
- $setServerVar[wrole;$mentionedRoles[>]]
- ______________CODE 2________________
- Trigger : $onJoined[$getServerVar[wchannel]]
- $nomention
- $suppressErrors
- $giveRole[$authorID;$getServerVar[wrole]]
- $color[00ffc0]
- $title[👋〣│__Welcome__]
- $author[Welcome to the server, $username[$authorID]]
- $description[ $getServerVar[joinmsg]. $c[This can also be omitted, but is advisable if you want to use the bot on multiple servers]
- This server has `$membersCount` members.
- You got the role <@&$getServerVar[wrole]>!]
Advertisement
Add Comment
Please, Sign In to add comment