Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Youtube:
- Discord: Izana#7096
- Discord Soporte: https://discord.gg/dru9uRYKqq
- Variables Necesarias
- Nombre: ticket
- Valor: 0
- Nombre: soporte
- Valor:
- Nombre: titulo
- Valor:
- Nombre: ticketusario
- Valor: 0
- Nombre: descripcion
- Valor:
- Nombre: hex
- Valor: #5d3333
- 1.- !crear ticket
- Trigger: !ticket(o el que quieras)
- Codigo:
- $nomention
- $suppressErrors
- $onlyIf[$and[$isNumber[$getServerVar[soporte]]==true]==true;:x: Establece el logs de soporte primero]
- $onlyBotPerms[manageserver;:x: El bot requiere el permiso: "Administrar servidor"]
- $c[AYUDENME]
- $onlyBotPerms[sendmessages;:x: El bot requiere el permiso: "Enviar mensajes"]
- $setServerVar[ticket;$sum[$getServerVar[ticket];1]]
- $setUserVar[ticketusario;$sum[$getUserVar[ticketusario];1]]
- $var[N;$getServerVar[ticket]]
- $async[]
- $createChannel[Soporte;category]
- $createChannel[ticket-$var[N];text;$categoryID[Soporte]]
- $endasync
- $await[]
- $useChannel[$channelID[ticket-$var[N]]]
- $c[AYUDENME]
- $editChannelPerms[$channelID[ticket-$var[N]];$guildID;-readmessages]
- $editChannelPerms[$channelID[ticket-$var[N]];$authorID;+readmessages]
- $var[A;$sendEmbedMessage[$findChannel[ticket-$var[N]];;$replaceText[$replaceText[$checkCondition[$getServerVar[titulo]==];true;Ticket;1];false;$getServerVar[titulo];1];;
- $replaceText[$replaceText[$checkCondition[$getServerVar[descripcion]==];true;
- Hola, <@$authorID>, ¡este es tu ticket!
- Presion el boton de problema y brinde todos los detalles que pueda para que el personal pueda ayudarlo más rápido.
- ¡Tenga paciencia hasta que un personal revise su boleto!
- Si decea cerrar el ticket presione el boton, solo disponible para usted y para administradores.
- Gracias por ser parte de $serverName[$guildID]
- ;1];false;$getServerVar[descripcion];1]
- ;$getServerVar[hex];;;;;;https://cdn.discordapp.com/attachments/1077969202058645552/1114723415174156349/banner.png;;yes]]
- $addButton[no;test-$authorID;Soporte;secondary;no;🔨;$var[A]]
- $addButton[no;cerrar-$authorID;Cerrar;danger;no;🔒;$var[A]]
- $var[>;$sendEmbedMessage[$channelID;;;;$username has abierto un Ticket en <#$findChannel[ticket-$var[N]]>;#bb4fb6;;;;;;;;yes]]
- 2.- Interacion de los botones del ticket
- Trigger: $onInteraction
- Codigo:
- $nomention
- $if[$customID==test-$authorID]
- $newModal[testmodales;Soporte]
- $addTextInput[moda1;short;Escribe aqui el problema;0;15;yes;;Tema]
- $addTextInput[moda2;short;Menciona el Usuario;0;30;yes;;@Izana]
- $addTextInput[moda3;paragraph;Proporciona informacion;0;1000;no;;Tengo este problema con este usuario por ejemplo]
- $editButton[test-$authorID;Soporte;danger;yes;]
- $endif
- $if[$customID==cerrar-$authorID]
- $resetUserVar[ticketusario]
- $deleteChannels[$channelID]
- $endif
- 3.- Interacion de los modales
- Trigger: $onInteraction[testmodales]
- Codigo:
- $nomention
- $var[C;$sendEmbedMessage[$getServerVar[soporte];;Solicitud de <@$authorID>;;
- Razon: : $replaceText[$replaceText[$checkCondition[$input[moda1]==];true;No proporcionada;1];false;$input[moda1];1]
- Usario : $replaceText[$replaceText[$checkCondition[<@$input[moda2]>==];true;No Mencionado;1];false;<@$input[moda2]>;1]
- Informacion: $replaceText[$replaceText[$checkCondition[$input[moda3]==];true;No proporcionada;1];false;$input[moda3];1]
- ;#e9ebee;;;;;;;;yes]]
- $description[Se envio su Soporte los mods lo reciviran Gracias por ser parte de $serverName[$guildID]]
- $color[$random[0;999999]]
- 4.- Setup para configurar y personalizar el ticket
- Trigger: !set-ticket(o cualquiera)
- Codigo:
- $nomention
- $var[A;$sendEmbedMessage[$channelID;;Configura tu menu de ayuda;;Elige una de las opciones y escribelas con el valor correcto para evitar errores;#6c9bd0;;;;;;;;yes]]
- $addButton[no;titulo-$authorID;Titulo;success;no;📰;$var[A]]
- $addButton[no;descripcion-$authorID;Descripcion;secondary;no;📰;$var[A]]
- $addButton[no;color-$authorID;Color;primary;no;🎨;$var[A]]
- $async[]
- $replyIn[1m]
- $editButton[titulo-$authorID;TItulo;success;yes;📰;$var[A]]
- $editButton[descripcion-$authorID;Descripcion;secondary;yes;📰;$var[A]]
- $editButton[color-$authorID;Color;primary;yes;🎨;$var[A]]
- $endasync
- 5.- Interacion de los botones del set ticket
- Trigger: $onInteraction
- Codigo:
- $nomention
- $if[$customID==titulo-$authorID]
- $deleteIn[15s]
- $description[Escribe un titulo no muy largo ok]
- $deletecommand
- $removeButtons
- $ephemeral
- $disableSpecialEscaping
- $awaitFunc[titulo;$authorID]
- $endif
- $if[$customID==descripcion-$authorID]
- $deleteIn[15s]
- $description[Escribe una description no muy largo ok]
- $deletecommand
- $removeButtons
- $ephemeral
- $disableSpecialEscaping
- $awaitFunc[descripcion;$authorID]
- $endif
- $if[$customID==color-$authorID]
- $deleteIn[15s]
- $description[Escribe el colorHex de tu embed]
- $deletecommand
- $removeButtons
- $ephemeral
- $disableSpecialEscaping
- $awaitFunc[color;$authorID]
- $endif
- 6.- Interacion del boton titulo del set ticket
- Trigger: $awaitedCommand[titulo;]
- Codigo:
- $nomention
- $if[$toLowercase[$message]!=;]
- $onlyIf[$charCount[$message]<=100;Tu titulo es muy largo intenta otra vez]
- $deleteIn[10s]
- $description[Cambiando titulo...]
- $color[#6A96FC]
- $deletecommand
- $setServerVar[titulo;$message]
- $editEmbedIn[2s;;✅ Titulo cambiado;;#6A96FC]
- $endif
- 7.- Interacion del boton descripcion del set ticket
- Trigger: $awaitedCommand[descripcion;]
- Codigo:
- $nomention
- $if[$toLowercase[$message]!=;]
- $onlyIf[$charCount[$message]<=400;Tu descripcion es muy larga intenta otra vez]
- $deleteIn[10s]
- $description[Cambiando descripcion...]
- $color[#6A96FC]
- $deletecommand
- $editEmbedIn[2s;;✅ Descripcion cambiada;;#6A96FC]
- $setServerVar[descripcion;$message]
- $endif
- 8.- Interacion del boton color del set ticket
- Trigger: $awaitedCommand[color;]
- Codigo:
- $nomention
- $if[$toLowercase[$message]!=;]
- $onlyIf[$isValidHex[$message]==true; :x: Proporciona un color valido, Intentalo otra vez]
- $deleteIn[10s]
- $deletecommand
- $color[#6A96FC]
- $description[Cambiando el color del ticket]
- $editEmbedIn[2s;;✅ Color cambiado;;#6A96FC]
- $setServerVar[hex;$message]
- $c[AYUDA]
- $endif
- 9.- Mencion del canal donde iran los logs del boton de soporte del ticket
- Trigger: ?logssoporte(o cualquiera)
- Codigo:
- $nomention
- $onlyIf[$channelExists[$mentionedChannels[1]]==true;:x: El canal no existe.]
- $description[Los logs de boton de soporte se establecieron en <#$mentionedChannels[1]>]
- $setServerVar[soporte;$mentionedChannels[1]]
- y como regalo este porq ya me aburri, enserio ayudenme.
- 10.- Resteear logs del boton de soporte
- Trigger: ?resetlogsboton(o cualquiera)
- Codigo:
- $nomention
- $descripcion[Se reeseteo los logs del boton de soporte]
- $resetServerVar[soporte]
Advertisement
Add Comment
Please, Sign In to add comment