Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $nomention
- $async[loop1]
- $textSplit[$getUserVar[ticket;1144124427668312126;$guildID];.]
- $var[loop1;2]
- $try $var[is_bl;$hasRole[$authorID;$splitText[$var[loop1]]]] $endtry
- $var[code;%{DOL}%if[%{DOL}%var[is_bl\]!=true\]
- %{DOL}%try %{DOL}%var[is_bl\;%{DOL}%hasRole[%{DOL}%authorID\;%{DOL}%splitText[%{DOL}%var[loop1\]\]\]\] %{DOL}%endtry
- %{DOL}%var[loop1\;sum[%{DOL}%var[loop1\]\;1\]\]
- %{DOL}%endif]
- $eval[$replaceText[$cropText[$repeatMessage[10;$repeatMessage[10;$repeatMessage[3;0]]];239;];0;$var[code];-1]]
- $endasync
- $textSplit[$getUserVar[ticket;1344668722299928629;$guildID];.]
- $onlyIf[$guildID!=;$ephemeral$title[🚫 Server Only]$description[You can use this command only in servers.]$color[ff0000]]
- $onlyIf[$or[$checkUserPerms[$authorID;ban]==true;$checkUserPerms[$authorID;admin]==true]==true;$ephemeral$title[🚫 Missing Permission]$description[You do not have enough permission to use the command.]$color[ff0000]]
- $await[loop1]
- $if[$var[is_bl]==true]
- $ephemeral
- $title[🚫 Command Error]
- $description[You cannot use this command because you have ticket blacklist role.]
- $color[ff0000]
- $endif
- $if[$or[$message[remove]==;$message[remove]==false]==true]
- $var[remove;false]
- $else
- $var[remove;true]
- $endif
- $if[$var[remove]==false]
- $if[$checkContains[$getUserVar[ticket;1344668722299928629;$guildID];$message[role]]==true]
- $var[1;true]
- $endif
- $if[$var[1]==true]
- $ephemeral
- $title[🚫 Command Error]
- $description[The role <@&$message[role]> already in my *ticket staff role(s)* database.]
- $color[ff0000]
- $stop
- $endif
- $if[$splitText[1]>=240]
- $ephemeral
- $title[🚫 Command Error]
- $description[You cannot add more than 240 role as ticket staff role.]
- $color[ff0000]
- $stop
- $else
- $textSplit[$getUserVar[ticket;1344668722299928629;$guildID];.]
- $editSplitText[1;$sum[$splitText[1];1]]
- $setUserVar[ticket;$joinSplitText[.]$message[role].;1344668722299928629;$guildID]
- $title[<a:tick1:1345334657515917373> Successfully Added the Role as a Ticket Staff Role.]
- $color[2ecc71]
- $description[Added <@&$message[role]> as a ticket staff role.]
- $endif
- $endif
- $if[$var[remove]==true]
- $if[$checkContains[$getUserVar[ticket;1344668722299928629;$guildID];$message[role]]==true]
- $var[1;true]
- $endif
- $if[$var[1]==]
- $ephemeral
- $title[🚫 Command Error]
- $description[I cannot find the role <@&$message[role]> in my *ticket staff role(s)* database.]
- $color[ff0000]
- $stop
- $else
- $textSplit[$getUserVar[ticket;1344668722299928629;$guildID];.]
- $editSplitText[1;$calculate[$splitText[1]-1]]
- $setUserVar[ticket;$replaceText[$joinSplitText[.];$message[role].;;1];1344668722299928629;$guildID]
- $title[<a:tick1:1345334657515917373> Successfully Removed the Role as a Ticket Staff Role]
- $color[2ecc71]
- $description[Removed <@&$message[role]> as a ticket staff role.]
- $endif
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement