SHARE
TWEET

Untitled

a guest Feb 27th, 2020 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /giverole <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 "%{discord.verified.discordname::%arg-1%}%"
  10.         if {_discordname} has role named arg-2:
  11.             send "Spilleren har allerede rollen"
  12.             stop
  13.         add role {_role} to roles of {_discordname} in {_guild} with "{@botname}"
  14.         send "Spilleren har nu fået rollen"
  15. command /removerole <player> <text>:
  16.     permission: *
  17.     trigger:
  18.         set {_guild} to guild with id "{@guildid}"
  19.         set {_role} to role named arg-2 in {_guild}
  20.         if {_role} is not set:
  21.             send "Rollen findes ikke"
  22.             stop
  23.         set {_discordname} to user with id "%{discord.verified.discordname::%arg-1%}%"
  24.         if {_discordname} has role named arg-2:
  25.             remove role {_role} from roles of {_discordname} in {_guild} with "{@botname}"
  26.             send "Spilleren har nu ikke længer rollen"
  27.             stop
  28.         send "Spilleren har ikke rollen"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top