Advertisement
quab

Postulaciones: BDS/ES

Feb 14th, 2024 (edited)
732
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.89 KB | None | 0 0
  1. Youtube:
  2. Discord
  3. User Discord: xquab
  4.  
  5. Variables: 1
  6. Comandos: 4
  7. Errores: 0
  8.  
  9.  
  10. Variables.-
  11. Nombre: postulaciones
  12. Valor:
  13.  
  14.  
  15. Comando: 1.-
  16. Prefix: !comenzar
  17. Codigo:
  18. $nomention
  19. $if[$getServerVar[postulaciones;$guildID]==]
  20. :x: Configura primero el canales de solicitudes de postulacion
  21. $stop
  22. $else
  23. $thumbnail[$serverIcon[$guildID]]
  24. $title[Roleplay;1]
  25. $description[Postula;1]
  26. $addButton[false;pagina_bds;Postular;primary;false;]
  27. $endif
  28.  
  29.  
  30.  
  31.  
  32. Comando: 2.-
  33. Prefix: $onInteraction
  34.  
  35. Codigo:
  36. $nomention
  37. $var[css;$customID]
  38. $if[$checkContains[$var[css];bds]!=false]
  39. $newModal[modal;Postulacion]
  40. $addTextInput[modal_1;paragraph;¿Por que quieres postular?;10;100;yes;;¡¡Quiero ser un buen mod!!]
  41.  
  42. $addTextInput[modal_1.1;paragraph;¿Cuanto tiempo dispones para el servidor?;10;50;yes;;3 horas por cada dia]
  43.  
  44. $addTextInput[modal_2;short;ID o Nombre de usuario;1;18;yes;;xquab | 487430318500872203]
  45.  
  46.  
  47.  
  48.  
  49.  
  50. $elseif[$var[css]==pagina-1]
  51. $var[split;$getEmbedData[$channelID;$messageID;1;footer]]
  52. $textSplit[$trimSpace[$var[split]];:]
  53. $var[id_user;$splitText[2]]
  54.  
  55. $if[$isUserDMEnabled[$splitText[2]]==true]
  56.  
  57. $channelSendMessage[$dmChannelID[$var[id_user]];Aceptado] $c[pueden modificar esto el texto "aceptado" si quieren en embee usnen %{DOL}%sendEmbedMesssage, y en canal id usan el channle id mas el var llamado "id_user"]
  58.  
  59. $else
  60. $ephemeral
  61. :x: El ususario du DM no esta abierto, fallo!
  62. $stop
  63. $endif
  64. $elseif[$var[css]==pagina-2]
  65. $var[split;$getEmbedData[$channelID;$messageID;1;footer]]
  66. $textSplit[$trimSpace[$var[split]];:]
  67. $var[id_user;$splitText[2]]
  68.  
  69. $if[$isUserDMEnabled[$splitText[2]]==true]
  70. $channelSendMessage[$dmChannelID[$var[id_user]];Denegado.]
  71. $else
  72. $ephemeral
  73. :x: El ususario du DM no esta abierto, fallo!
  74. $stop
  75. $endif
  76. $endif
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85. Comando 3.-
  86. Prefix: $onInteraction[modal]
  87.  
  88. Codigo:
  89. $nomention
  90. $var[user_bds;$findUser[$input[modal_2];false]]
  91.  
  92. $if[$userExists[$var[user_bds]]==false]
  93. $ephemeral
  94. :x: El usuario no existe.
  95. $stop
  96. $else
  97. $useChannel[$findChannel[$getServerVar[postulaciones]]]
  98.  
  99. $var[id;$sendEmbedMessage[$findChannel[$getServerVar[postulaciones;$guildID]];;Postulaciones de $serverName[$guildID];;
  100. **Razon de postulacion:**
  101. ```
  102. $input[modal_1]
  103. ```
  104. **Tiempo disponible**
  105. ```
  106. $input[modal_1.1]
  107. ```
  108. ;ffffff;$username;$authorAvatar;ID del author: $authorID;;$serverIcon;;false;true]]
  109.  
  110.  
  111. $addButton[false;pagina-1;Aceptar;success;false;;$var[id]]
  112.  
  113. $addButton[false;pagina-2;Rechazar;danger;false;;$var[id]]
  114.  
  115. $endif
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127. Comando: 4.-
  128. Prefix: !establecer
  129.  
  130. Codigo:
  131. $nomention
  132.  
  133. $if[$isSlash==true]
  134. $var[ccss;$message[canal]]
  135. $else
  136. $var[ccss;$message[1]]
  137. $endif
  138. $var[find;$findChannel[$var[ccss]]]
  139. $if[$channelExists[$var[find]]!=true]
  140. $ephemeral
  141. :x: El canal no existe lo siento.
  142. $stop
  143. $else
  144. ✅️ Canal guardado para recibir solicitudes de postulaciones.
  145. $setServerVar[postulaciones;$var[ccss];$guildID]
  146. $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement