VodaGamarz

$onInteraction[9999.0]

Mar 25th, 2025
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.66 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\;%{DOL}%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. $textSplit[$getServerVar[ticket3;$guildID];.]
  33. $if[$splitText[1]>=100]
  34. $ephemeral
  35. $title[🚫 Limit Reached]
  36. $description[The server already has 100 open tickets in this panel.]
  37. $color[ff0000]
  38. $removeAllComponents
  39. $stop
  40. $else
  41. $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
  42. $if[$serverChannelExists[$splitText[2]]==true]
  43. $ephemeral
  44. $title[🚫 Limit Reached]
  45. $description[You already have a opened ticket in this panel,go to **<#$splitText[2]>**.]
  46. $color[ff0000]
  47. $removeAllComponents
  48. $else
  49. $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
  50. $newModal[9999.0.0.0;How can we help you?]
  51. $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.]
  52. $endif
  53. $endif
  54. $elseif[$message==9999.0.1]
  55. $c[check if user have a ticket already in this category and server ticket limit.]
  56. $textSplit[$getServerVar[ticket3;$guildID];.]
  57. $if[$splitText[3]>=100]
  58. $ephemeral
  59. $title[🚫 Limit Reached]
  60. $description[The server already has 100 open tickets in this panel.]
  61. $color[ff0000]
  62. $removeAllComponents
  63. $stop
  64. $else
  65. $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
  66. $if[$serverChannelExists[$splitText[4]]==true]
  67. $ephemeral
  68. $title[🚫 Limit Reached]
  69. $description[You already have a opened ticket in this panel,go to **<#$splitText[4]>**.]
  70. $color[ff0000]
  71. $removeAllComponents
  72. $else
  73. $newModal[9999.0.1.0;How can we help you?]
  74. $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.]
  75. $endif
  76. $endif
  77. $elseif[$message==9999.0.2]
  78. $c[check if user have a ticket already in this category and server ticket limit.]
  79. $textSplit[$getServerVar[ticket3;$guildID];.]
  80. $if[$splitText[5]>=100]
  81. $ephemeral
  82. $title[🚫 Limit Reached]
  83. $description[The server already has 100 open tickets in this panel.]
  84. $color[ff0000]
  85. $removeAllComponents
  86. $stop
  87. $else
  88. $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
  89. $if[$serverChannelExists[$splitText[6]]==true]
  90. $ephemeral
  91. $title[🚫 Limit Reached]
  92. $description[You already have a opened ticket in this panel,go to **<#$splitText[2]>**.]
  93. $color[ff0000]
  94. $removeAllComponents
  95. $else
  96. $newModal[9999.0.2.0;How can we help you?]
  97. $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.]
  98. $endif
  99. $endif
  100.  
  101. $endif
  102.  
Add Comment
Please, Sign In to add comment