Advertisement
VodaGamarz

Untitled

Mar 20th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.77 KB | None | 0 0
  1. $nomention
  2. $async[loop1]
  3. $textSplit[$getUserVar[ticket;1144124427668312126;$guildID];.]
  4. $var[loop1;2]
  5. $try $var[is_bl;$hasRole[$authorID;$splitText[$var[loop1]]]] $endtry
  6. $var[code;%{DOL}%if[%{DOL}%var[is_bl\]!=true\]
  7. %{DOL}%try %{DOL}%var[is_bl\;%{DOL}%hasRole[%{DOL}%authorID\;%{DOL}%splitText[%{DOL}%var[loop1\]\]\]\] %{DOL}%endtry
  8. %{DOL}%var[loop1\;sum[%{DOL}%var[loop1\]\;1\]\]
  9. %{DOL}%endif]
  10. $eval[$replaceText[$cropText[$repeatMessage[10;$repeatMessage[10;$repeatMessage[3;0]]];239;];0;$var[code];-1]]
  11. $endasync
  12. $textSplit[$getUserVar[ticket;1344668722299928629;$guildID];.]
  13. $onlyIf[$guildID!=;$ephemeral$title[🚫 Server Only]$description[You can use this command only in servers.]$color[ff0000]]
  14. $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]]
  15. $await[loop1]
  16. $if[$var[is_bl]==true]
  17. $ephemeral
  18. $title[🚫 Command Error]
  19. $description[You cannot use this command because you have ticket blacklist role.]
  20. $color[ff0000]
  21. $endif
  22. $if[$or[$message[remove]==;$message[remove]==false]==true]
  23. $var[remove;false]
  24. $else
  25. $var[remove;true]
  26. $endif
  27. $if[$var[remove]==false]
  28. $if[$checkContains[$getUserVar[ticket;1344668722299928629;$guildID];$message[role]]==true]
  29. $var[1;true]
  30. $endif
  31. $if[$var[1]==true]
  32. $ephemeral
  33. $title[🚫 Command Error]
  34. $description[The role <@&$message[role]> already in my *ticket staff role(s)* database.]
  35. $color[ff0000]
  36. $stop
  37. $endif
  38. $if[$splitText[1]>=240]
  39. $ephemeral
  40. $title[🚫 Command Error]
  41. $description[You cannot add more than 240 role as ticket staff role.]
  42. $color[ff0000]
  43. $stop
  44. $else
  45. $textSplit[$getUserVar[ticket;1344668722299928629;$guildID];.]
  46. $editSplitText[1;$sum[$splitText[1];1]]
  47. $setUserVar[ticket;$joinSplitText[.]$message[role].;1344668722299928629;$guildID]
  48. $title[<a:tick1:1345334657515917373> Successfully Added the Role as a Ticket Staff Role.]
  49. $color[2ecc71]
  50. $description[Added <@&$message[role]> as a ticket staff role.]
  51. $endif
  52. $endif
  53. $if[$var[remove]==true]
  54. $if[$checkContains[$getUserVar[ticket;1344668722299928629;$guildID];$message[role]]==true]
  55. $var[1;true]
  56. $endif
  57. $if[$var[1]==]
  58. $ephemeral
  59. $title[🚫 Command Error]
  60. $description[I cannot find the role <@&$message[role]> in my *ticket staff role(s)* database.]
  61. $color[ff0000]
  62. $stop
  63. $else
  64. $textSplit[$getUserVar[ticket;1344668722299928629;$guildID];.]
  65. $editSplitText[1;$calculate[$splitText[1]-1]]
  66. $setUserVar[ticket;$replaceText[$joinSplitText[.];$message[role].;;1];1344668722299928629;$guildID]
  67. $title[<a:tick1:1345334657515917373> Successfully Removed the Role as a Ticket Staff Role]
  68. $color[2ecc71]
  69. $description[Removed <@&$message[role]> as a ticket staff role.]
  70. $endif
  71. $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement