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\;%{DOL}%sum[%{DOL}%var[loop1\]\;1\]\]
- %{DOL}%endif]
- $eval[$replaceText[$cropText[$repeatMessage[10;$repeatMessage[10;$repeatMessage[3;0]]];239;];0;$var[code];-1]]
- $endasync
- $await[loop1]
- $if[$var[is_bl]==true]
- $ephemeral
- $title[🚫 Command Error]
- $description[You cannot use this select menu because you have ticket blacklist role.]
- $color[ff0000]
- $removeAllComponents
- $stop
- $endif
- $c[here the ticket limit error ]
- $if[$or[$checkUserPerms[$botID;embedlinks;managewebhooks;managechannels]==false;$checkUserPerms[$botID;admin]==false]==true]
- $ephemeral
- $title[🚫 Missing Permission(s)]
- $description[The bot needs `Embed Links`,`Manage Webhooks` and `Manage Channels` permission(s) to run the command.]
- $color[ff0000]
- $removeAllComponents
- $elseif[$message==9999.0.0]
- $c[check if user have a ticket already in this category and server ticket limit.]
- $textSplit[$getServerVar[ticket3;$guildID];.]
- $if[$splitText[1]>=100]
- $ephemeral
- $title[🚫 Limit Reached]
- $description[The server already has 100 open tickets in this panel.]
- $color[ff0000]
- $removeAllComponents
- $stop
- $else
- $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
- $if[$serverChannelExists[$splitText[2]]==true]
- $ephemeral
- $title[🚫 Limit Reached]
- $description[You already have a opened ticket in this panel,go to **<#$splitText[2]>**.]
- $color[ff0000]
- $removeAllComponents
- $else
- $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
- $newModal[9999.0.0.0;How can we help you?]
- $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.]
- $endif
- $endif
- $elseif[$message==9999.0.1]
- $c[check if user have a ticket already in this category and server ticket limit.]
- $textSplit[$getServerVar[ticket3;$guildID];.]
- $if[$splitText[3]>=100]
- $ephemeral
- $title[🚫 Limit Reached]
- $description[The server already has 100 open tickets in this panel.]
- $color[ff0000]
- $removeAllComponents
- $stop
- $else
- $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
- $if[$serverChannelExists[$splitText[4]]==true]
- $ephemeral
- $title[🚫 Limit Reached]
- $description[You already have a opened ticket in this panel,go to **<#$splitText[4]>**.]
- $color[ff0000]
- $removeAllComponents
- $else
- $newModal[9999.0.1.0;How can we help you?]
- $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.]
- $endif
- $endif
- $elseif[$message==9999.0.2]
- $c[check if user have a ticket already in this category and server ticket limit.]
- $textSplit[$getServerVar[ticket3;$guildID];.]
- $if[$splitText[5]>=100]
- $ephemeral
- $title[🚫 Limit Reached]
- $description[The server already has 100 open tickets in this panel.]
- $color[ff0000]
- $removeAllComponents
- $stop
- $else
- $textSplit[$getUserVar[ticket3;$authorID;$guildID];.]
- $if[$serverChannelExists[$splitText[6]]==true]
- $ephemeral
- $title[🚫 Limit Reached]
- $description[You already have a opened ticket in this panel,go to **<#$splitText[2]>**.]
- $color[ff0000]
- $removeAllComponents
- $else
- $newModal[9999.0.2.0;How can we help you?]
- $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.]
- $endif
- $endif
- $endif
Add Comment
Please, Sign In to add comment