Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Verify con Captcha
- Variables:
- NombreDeVariable = ValorDeVariable (Ejemplo)
- verify = {
- "verify":"0",
- "verifdesc":"Click debajo para verificarte",
- "verifimg":" "
- }
- captcha = 0
- (Ambas variables son obligatorias)
- Primer Código:
- Trigger Prefix:
- !verify (Trigger Opcional)
- Trigger Slash:
- /verify (Trigger Opcional)
- Opciones Slash:
- NombreDeOpción = TipoDeOpción (Opcional/Obligatorio)
- rol = Role (Obligatorio)
- descripción = Text (Opcional)
- imagen = attachment (Opcional)
- (El código debe tener obligatoriamente slash (y sus opciones) y prefix activado)
- $nomention
- $jsonParse[$getServerVar[verify;$guildID]]
- $if[$isAdmin[$authorID]==true]
- $if[$isSlash==false]
- $if[$json[verify]==0]
- $title[Verificación]
- $description[La verificación en este servidor aún no está establecida, puedes establecerla con </verify:1>.]
- $color[DE2E43]
- $thumbnail[https://media.discordapp.net/attachments/1163664141601476658/1186142206298439741/756_sin_titulo_20231002215708.png?ex=65922c03&is=657fb703&hm=2793ffa67a7a8cda30b8d9fc4f80126f4b4017f87a20bbfe6a4b1ea3b8f1410b&]
- $else
- $title[Verificación]
- $description[$json[verifdesc]]
- $if[$json[verifimg]!=]
- $image[$json[verifimg]]
- $endif
- $addButton[no;verif;Verificarse;success;no;<:si:1158866987829694516>]
- $color[77B255]
- $thumbnail[https://media.discordapp.net/attachments/1163664141601476658/1186142206017405018/11160-white-heavy-check-mark.png?ex=65922c03&is=657fb703&hm=0b34ce62cf2c9de586b8431b12b89de57fe08b4485fdc7c055766d58492db3b3&]
- $endif
- $else
- $ephemeral
- $title[Verificación]
- $description[Estableciste la verificación de este servidor, pon el mensaje de verificación usando !verify.]
- $thumbnail[https://media.discordapp.net/attachments/1163664141601476658/1186142206017405018/11160-white-heavy-check-mark.png?ex=65922c03&is=657fb703&hm=0b34ce62cf2c9de586b8431b12b89de57fe08b4485fdc7c055766d58492db3b3&]
- $addTimestamp
- $color[77B255]
- $jsonSetString[verify;$message[rol]]
- $if[$message[descripción]!=]
- $jsonSetString[verifdesc;$message[descripción]]
- $endif
- $if[$message[imagen]!=]
- $jsonSetString[verifimg;$message[imagen]]
- $endif
- $setServerVar[verify;$jsonStringify;$guildID]
- $endif
- $else
- $title[Verificación]
- $description[No puedes establecer esto debido a que ocupas ser un administrador.]
- $color[DE2E43]
- $thumbnail[https://media.discordapp.net/attachments/1163664141601476658/1186142206298439741/756_sin_titulo_20231002215708.png?ex=65922c03&is=657fb703&hm=2793ffa67a7a8cda30b8d9fc4f80126f4b4017f87a20bbfe6a4b1ea3b8f1410b&]
- $addTimestamp
- $endif
- Segundo Código:
- Trigger:
- $onInteraction (Trigger Obligatorio)
- $if[$customID==verif]
- $suppressErrors
- $ephemeral
- $removeButtons
- $if[$hasRole[$authorID;$json[verify]]==false]
- $title[Verificación]
- $description[Escribe lo que dice la siguiente imagen para verificarte.]
- $httpGet[https://edgabot.akiomae.com/AkioUsers/OctavioYT/captcha.php]
- $setUserVar[captcha;$httpResult[code];$authorID;$guildID]
- $image[$httpResult[image]]
- $color[77B255]
- $addButton[no;verifcap;Escribir el código;success;no]
- $else
- $title[:x: | ¡Oops!]
- $description[¡Tú ya estás verificado!]
- $color[DE2E43]
- $endif
- $addTimestamp
- $endif
- $if[$customID==verifcap]
- $newModal[verifcaptcha;Verificación]
- $addTextInput[captcha;short;Código;4;4;yes]
- $endif
- $if[$customID==verifcaptcha]
- $ephemeral
- $if[$getUserVar[captcha;$authorID;$guildID]==$input[captcha]]
- $suppressErrors
- $ephemeral
- $jsonParse[$getServerVar[verify]]
- $removeButtons
- $if[$hasRole[$authorID;$json[verify]]==false]
- $ephemeral
- $title[Verificación]
- $description[Te verificaste correctamente.]
- $if[$json[verifimg]!=]
- $image[$json[verifimg]]
- $endif
- $roleGrant[$authorID;+$json[verify]]
- $color[77B255]
- $else
- $title[:x: | ¡Oops!]
- $description[¡Tú ya estás verificado!]
- $color[DE2E43]
- $endif
- $else
- $ephemeral
- $title[:x: | ¡Oops!]
- $description[¡Código incorrecto, vuelve a intentarlo!]
- $color[DE2E43]
- $endif
- $addTimestamp
- $endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement