Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. command /removerole <player> <text>:
  2. permission: *
  3. trigger:
  4. set {_guild} to guild with id "{@guildid}"
  5. set {_role} to role named arg-2 in {_guild}
  6. if {_role} is not set:
  7. send "Rollen findes ikke"
  8. stop
  9. set {_discordname} to user with id "%{Discordname::%arg-1%}%" in {_guild}
  10. if {_discordname} has role named arg-2:
  11. remove {_role} from roles of {_discordname} in {_guild} with "{@botname}"
  12. set {_vixio} to last vixio error
  13. if {_vixio} is set:
  14. send "%{_vixio}%"
  15. send "Spilleren har nu ikke længer rollen"
  16. stop
  17. send "Spilleren har ikke rollen"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement