Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /giverole <player> <text>:
- permission: *
- trigger:
- set {_guild} to guild with id "{@guildid}"
- set {_role} to role named arg-2 in {_guild}
- if {_role} is not set:
- send "Rollen findes ikke"
- stop
- set {_discordname} to user with id "%{discord.verified.discordname::%arg-1%}%"
- if {_discordname} has role named arg-2:
- send "Spilleren har allerede rollen"
- stop
- add role {_role} to roles of {_discordname} in {_guild} with "{@botname}"
- send "Spilleren har nu fået rollen"
- command /removerole <player> <text>:
- permission: *
- trigger:
- set {_guild} to guild with id "{@guildid}"
- set {_role} to role named arg-2 in {_guild}
- if {_role} is not set:
- send "Rollen findes ikke"
- stop
- set {_discordname} to user with id "%{discord.verified.discordname::%arg-1%}%"
- if {_discordname} has role named arg-2:
- remove role {_role} from roles of {_discordname} in {_guild} with "{@botname}"
- send "Spilleren har nu ikke længer rollen"
- stop
- send "Spilleren har ikke rollen"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement