Advertisement
VodaGamarz

$onInteraction[9999.0]

Mar 25th, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. $nomention
  2. $defer
  3. $async[loop1]
  4. $textSplit[$getUserVar[ticket;1144124427668312126;$guildID];.]
  5. $var[loop1;2]
  6. $try $var[is_bl;$hasRole[$authorID;$splitText[$var[loop1]]]] $endtry
  7. $var[code;%{DOL}%if[%{DOL}%var[is_bl\]!=true\]
  8. %{DOL}%try %{DOL}%var[is_bl\;%{DOL}%hasRole[%{DOL}%authorID\;%{DOL}%splitText[%{DOL}%var[loop1\]\]\]\] %{DOL}%endtry
  9. %{DOL}%var[loop1\;%{DOL}%sum[%{DOL}%var[loop1\]\;1\]\]
  10. %{DOL}%endif]
  11. $eval[$replaceText[$cropText[$repeatMessage[10;$repeatMessage[10;$repeatMessage[3;0]]];239;];0;$var[code];-1]]
  12. $endasync
  13. $await[loop1]
  14. $if[$var[is_bl]==true]
  15. $ephemeral
  16. $title[🚫 Command Error]
  17. $description[You cannot use this select menu because you have ticket blacklist role.]
  18. $color[ff0000]
  19. $removeAllComponents
  20. $stop
  21. $endif
  22.  
  23. $c[here the ticket limit error ]
  24.  
  25. $if[$or[$checkUserPerms[$botID;embedlinks;managewebhooks;managechannels]==false;$checkUserPerms[$botID;admin]==false]==true]
  26. $ephemeral
  27. $title[🚫 Missing Permission(s)]
  28. $description[The bot needs `Embed Links`,`Manage Webhooks` and `Manage Channels` permission(s) to run the command.]
  29. $color[ff0000]
  30. $removeAllComponents
  31. $elseif[$message==9999.0.0]
  32. $c[check if user have a ticket already in this category and server ticket limit.]
  33. $textSplit[$getServerVar[ticket3;$guildID];.]
  34. $if[$splitText[1]>=100]
  35. $ephemeral
  36. $title[🚫 Limit Reached]
  37. $description[The server already has 100 open tickets in this panel.]
  38. $color[ff0000]
  39. $removeAllComponents
  40. $stop
  41. $else
  42. $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
  43. $if[$serverChannelExists[$splitText[2]]==true]
  44. $ephemeral
  45. $title[🚫 Limit Reached]
  46. $description[You already have a opened ticket in this panel,go to **<#$splitText[2]>**.]
  47. $color[ff0000]
  48. $removeAllComponents
  49. $else
  50. $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
  51. $newModal[9999.0.0.0;How can we help you?]
  52. $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.]
  53. $endif
  54. $endif
  55. $elseif[$message==9999.0.1]
  56. $c[check if user have a ticket already in this category and server ticket limit.]
  57. $textSplit[$getServerVar[ticket3;$guildID];.]
  58. $if[$splitText[3]>=100]
  59. $ephemeral
  60. $title[🚫 Limit Reached]
  61. $description[The server already has 100 open tickets in this panel.]
  62. $color[ff0000]
  63. $removeAllComponents
  64. $stop
  65. $else
  66. $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
  67. $if[$serverChannelExists[$splitText[4]]==true]
  68. $ephemeral
  69. $title[🚫 Limit Reached]
  70. $description[You already have a opened ticket in this panel,go to **<#$splitText[4]>**.]
  71. $color[ff0000]
  72. $removeAllComponents
  73. $else
  74. $newModal[9999.0.1.0;How can we help you?]
  75. $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.]
  76. $endif
  77. $endif
  78. $elseif[$message==9999.0.2]
  79. $c[check if user have a ticket already in this category and server ticket limit.]
  80. $textSplit[$getServerVar[ticket3;$guildID];.]
  81. $if[$splitText[5]>=100]
  82. $ephemeral
  83. $title[🚫 Limit Reached]
  84. $description[The server already has 100 open tickets in this panel.]
  85. $color[ff0000]
  86. $removeAllComponents
  87. $stop
  88. $else
  89. $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
  90. $if[$serverChannelExists[$splitText[6]]==true]
  91. $ephemeral
  92. $title[🚫 Limit Reached]
  93. $description[You already have a opened ticket in this panel,go to **<#$splitText[6]>**.]
  94. $color[ff0000]
  95. $removeAllComponents
  96. $else
  97. $newModal[9999.0.2.0;How can we help you?]
  98. $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.]
  99. $endif
  100. $endif
  101.  
  102. $endif
  103.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement