IzanaYT

DNI AVANZADO

May 22nd, 2023 (edited)
3,058
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.48 KB | None | 0 0
  1. Sistema DNI Avanzado
  2. by - Izana#7096 / Mikeyy#3190
  3.  
  4. Notas:
  5. 1.- En valor de las variables no hay nada por que es vacio o no lleva nada ok.
  6.  
  7. 2.- El la seccion 4 de !editarDNI junciona como en el tutorial.
  8. - seccion: eliga la seccion que desea editar
  9. - nuevo etc: escriba su nuevo nombre o fecha
  10. y finalmente dale Enter.
  11.  
  12. Ejemplo
  13. !editarDNI <seccion> <nuevo etc>
  14.  
  15. Variables Necesarias
  16. Variables:
  17. Nombre: nombre
  18. Valor:
  19.  
  20. Nombre: apellido
  21. Valor:
  22.  
  23. Nombre: fecha
  24. Valor:
  25.  
  26. Nombre: genero
  27. Valor:
  28.  
  29. Nombre: nacionalidad
  30. Valor:
  31.  
  32. Nombre: dni
  33. Valor:
  34.  
  35. Nombre: nocope
  36. Valor: 0
  37.  
  38. 1.- Seccion de Creacion de DNI
  39.  
  40. Prefix: !crearDNI(o aus gusto)
  41.  
  42. Codigo:
  43. $nomention
  44. $onlyIf[$getVar[nocope;$authorID]<1;:x: Ya Tienes un DNI creado]
  45. $color[$random[0;999999]]
  46. $title[Crea tu DNI]
  47. $addField[Ejemplo;
  48. ```<nombre> <apellido> <fecha> <nacionalidad> <genero>```]
  49. $awaitFunc[dni;$authorID]
  50. $disableSpecialEscaping
  51.  
  52.  
  53.  
  54. Prefix: $awaitedCommand[dni;]
  55.  
  56. Codigo:
  57. $nomention
  58. $if[$toLowercase[$message]==$toLowercase[cancelar]]
  59. El proceso de creacion de DNI se cancelo.
  60. $endif
  61.  
  62. $if[$toLowercase[$message]!=$toLowercase[cancelar]]
  63. $var[DNI;$setVar[dni;$random[0;333].$random[333;999];$authorID]]
  64.  
  65. $setVar[nocope;$sum[$getVar[nocope;$authorID];1];$authorID]
  66.  
  67. $setVar[nombre;$message[1];$authorID]
  68. $setVar[apellido;$message[2];$authorID]
  69. $setVar[fecha;$message[3];$authorID]
  70. $setVar[nacionalidad;$message[4];$authorID]
  71. $setVar[genero;$message[5];$authorID]
  72.  
  73. $description[Creando DNI..]
  74. $color[$random[0;999999]]
  75.  
  76. $editEmbedIn[5s;DNI de $username[$authorID];
  77.  
  78. **Nombre:** $replaceText[$replaceText[$checkCondition[$getVar[nombre;$authorID]==];true;Inregistrado;1];false;$getVar[nombre;$authorID];1]
  79.  
  80. **Apellido:** $replaceText[$replaceText[$checkCondition[$getVar[apellido;$authorID]==];true;Inregistrado;1];false;$getVar[apellido;$authorID];1]
  81.  
  82. **Fecha:** $replaceText[$replaceText[$checkCondition[$getVar[fecha;$authorID]==];true;Inregistrado;1];false;$getVar[fecha;$authorID];1]
  83.  
  84. **Nacionalidad:** $replaceText[$replaceText[$checkCondition[$getVar[nacionalidad;$authorID]==];true;Inregistrado;1];false;$getVar[nacionalidad;$authorID];1]
  85.  
  86. **Genero:** $replaceText[$replaceText[$checkCondition[$getVar[genero;$authorID]==];true;Inregistrado;1];false;$getVar[genero;$authorID];1]
  87.  
  88. **DNI:** $getVar[dni;$authorID];;$random[0;999999]]
  89. $endif
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100. 2.- Seccion de Borrar el DNI
  101.  
  102. Prefix: !eliminarDNI(o asu gusto)
  103.  
  104. Codigo:
  105. $nomention
  106. $botTyping
  107. $description[¿Deceas eliminar tu DNI? esta opcion es irreversible.
  108. `aceptar` o `cancelar`]
  109. $awaitFunc[escape;$authorID]
  110. $disableSpecialEscaping
  111. $color[$random[0;999999]]
  112.  
  113.  
  114.  
  115.  
  116.  
  117. Prefix: $awaitedCommand[escape;]
  118.  
  119. Codigo:
  120. $nomention
  121. $if[$message==cancelar]
  122. $defer
  123. $botTyping
  124. $description[Cancelando...]
  125. $color[$random[0;999999]]
  126. $editEmbedIn[3s;;
  127. ✅️ Se Cancelo la eliminacion de tu DNI;;$random[0;999999]]
  128.  
  129. $endif
  130.  
  131. $if[$message==aceptar]
  132. $botTyping
  133. $defer
  134. $setVar[nombre;;$authorID]
  135. $setVar[apellido;;$authorID]
  136. $setVar[fecha;;$authorID]
  137. $setVar[genero;;$authorID]
  138. $setVar[nacionalidad;;$authorID]
  139. $setVar[dni;;$authorID]
  140. $setVar[nocope;0;$authorID]
  141. $description[Eliminando DNI...]
  142. $color[$random[0;999999]]
  143. $editEmbedIn[3s;;
  144. ⚠️ Se elemino tu DNI correctamente $username;;$random[0;999999]]
  145. $endif
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153. 3.- Seccion de ver DNI o de usuario
  154.  
  155. Prefix: !verDNI(o su gusto)
  156.  
  157. Codigo:
  158. $nomention
  159. $onlyIf[$getVar[nocope;$findUser[$message]]>0;:x: $username no tienes un DNI registrado]
  160. $title[DNI de $username[$findUser[$message]]]
  161. $thumbnail[$userAvatar[$findUser[$message]]]
  162. $description[
  163. **Nombre:** $replaceText[$replaceText[$checkCondition[$getVar[nombre;$findUser[$message]]==];true;Inregistrado;1];false;$getVar[nombre;$findUser[$message]];1]
  164.  
  165. **Apellido:** $replaceText[$replaceText[$checkCondition[$getVar[apellido;$findUser[$message]]==];true;Inregistrado;1];false;$getVar[apellido;$findUser[$message]];1]
  166.  
  167. **Fecha:** `$replaceText[$replaceText[$checkCondition[$getVar[fecha;$findUser[$message]]==];true;Inregistrado;1];false;$getVar[fecha;$findUser[$message]];1]`
  168.  
  169. **Nacionalidad:** $replaceText[$replaceText[$checkCondition[$getVar[nacionalidad;$findUser[$message]]==];true;Inregistrado;1];false;$getVar[nacionalidad;$findUser[$message]];1]
  170.  
  171. **Genero:** $replaceText[$replaceText[$checkCondition[$getVar[genero;$findUser[$message]]==];true;Inregistrado;1];false;$getVar[genero;$findUser[$message]];1]
  172.  
  173. **DNI:** $replaceText[$replaceText[$checkCondition[$getVar[dni;$findUser[$message]]==];true;Inregistrado;1];false;$getVar[dni;$findUser[$message]];1]
  174. ]
  175. $color[$random[0;999999]]
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184. 4.- Seccion Editar tu DNI
  185.  
  186. Prefix: !editarDNI(o asu gusto)
  187.  
  188. Codigo:
  189. $nomention
  190. $color[$random[0;999999]]
  191. $description[Menciona la seccion que deceas cambiar de tu DNI
  192. Opciones
  193. `<nombre>` `<apellido>` `<genero>` `<genero>` `<nacionalidad>`]
  194. $footer[Solo puedes cambiar una opcion ala vez]
  195. $if[$checkContains[$message[1];nombre]==true]
  196. $onlyIf[$charCount[$message]<=20;:x: El nombre es muy largo vuelve a intentarlo]
  197. $setVar[nombre;$message[2];$authorID]
  198. $authorIcon[$userAvatar[$authorID]]
  199. $author[Setup-DNI]
  200. $description[Se cambio tu nombre a $getVar[nombre;$authorID]]
  201. $color[$random[0;999999]]
  202. $botTyping
  203. $defer
  204. $endif
  205. $if[$checkContains[$message[1];apellido]==true]
  206. $onlyIf[$charCount[$message]<=20;:x: El apellido es muy largo vuelve a intentarlo]
  207. $setVar[apellido;$message[2];$authorID]
  208. $description[Se cambio tu apellido a $getVar[apellido;$authorID]]
  209. $authorIcon[$userAvatar[$authorID]]
  210. $author[Setup-DNI]
  211. $botTyping
  212. $defer
  213. $endif
  214. $if[$checkContains[$message[1];fecha]==true]
  215. $onlyIf[$charCount[$message]<=15;:x: La fecha es muy largo vuelve a intentarlo]
  216. $setVar[fecha;$message[2];$authorID]
  217. $description[Se cambio tu fecha a $getVar[fecha;$authorID]]
  218. $authorIcon[$userAvatar[$authorID]]
  219. $author[Setup-DNI]
  220. $botTyping
  221. $defer
  222. $endif
  223. $if[$checkContains[$message[1];genero]==true]
  224. $onlyIf[$charCount[$message]<=20;:x: El genero es muy largo vuelve a intentarlo]
  225. $setVar[genero;$message[2];$authorID]
  226. $description[Se cambio tu genero a $getVar[genero;$authorID]]
  227. $authorIcon[$userAvatar[$authorID]]
  228. $author[Setup-DNI]
  229. $botTyping
  230. $defer
  231. $endif
  232. $if[$checkContains[$message[1];nacionalidad]==true]
  233. $onlyIf[$charCount[$message]<=20;:x: El nombre de la nacionalidad es muy largo vuelve a intentarlo]
  234. $setVar[nacionalidad;$message[2];$authorID]
  235. $description[Se cambio tu nacionalidad a $getVar[nacionalidad;$authorID]]
  236. $authorIcon[$userAvatar[$authorID]]
  237. $author[Setup-DNI]
  238. $botTyping
  239. $defer
  240. $endif
  241.  
  242.  
Advertisement
Add Comment
Please, Sign In to add comment