Advertisement
VodaGamarz

Untitled

Mar 20th, 2025
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 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. $await[loop1]
  13. $if[$var[is_bl]==true]
  14. $ephemeral
  15. $title[🚫 Command Error]
  16. $description[You cannot use this select menu because you have ticket blacklist role.]
  17. $color[ff0000]
  18. $removeAllComponents
  19. $stop
  20. $endif
  21.  
  22. $c[here the ticket limit error ]
  23.  
  24. $if[$or[$checkUserPerms[$botID;embedlinks;managewebhooks;managechannels]==false;$checkUserPerms[$botID;admin]==false]==true]
  25. $ephemeral
  26. $title[🚫 Missing Permission(s)]
  27. $description[The bot needs `Embed Links`,`Manage Webhooks` and `Manage Channels` permission(s) to run the command.]
  28. $color[ff0000]
  29. $removeAllComponents
  30. $elseif[$message==9999.0.0]
  31. $c[check if user have a ticket already in this category and server ticket limit.]
  32.  
  33. $newModal[9999.0.0.0;How can we help you?]
  34. $addTextInput[9999.0.0.0.0;paragraph;Ticket Subject!;0;2000;no;;You can include a resume of why you are opening this ticket here! You can also leave it empty.]
  35. $elseif[$message==9999.0.1]
  36. $c[check if user have a ticket already in this category and server ticket limit.]
  37.  
  38. $newModal[9999.0.1.0;How can we help you?]
  39. $addTextInput[9999.0.1.0.0;paragraph;Ticket Subject!;0;2000;no;;You can include a resume of why you are opening this ticket here! You can also leave it empty.]
  40. $elseif[$message==9999.0.2]
  41. $c[check if user have a ticket already in this category and server ticket limit.]
  42.  
  43. $newModal[9999.0.2.0;How can we help you?]
  44. $addTextInput[9999.0.2.0.0;paragraph;Ticket Subject!;0;2000;no;;You can include a resume of why you are opening this ticket here! You can also leave it empty.]
  45.  
  46. $endif
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement