Skip to content

Verification [Aoi.js]

The Arcwise Domain

This page contains Code of Verification. No explanation.

Code

index.js - Variables

client.variables({
captchacode: "",
verificationchannel: "",
verificationrole: ""
})

variables.js - Variables Requires require("./variables.js")(client); in index.js

module.exports = (client) => {
client.variables({
captchacode: "",
verificationchannel: "",
verificationrole: ""
}, "main");
};

setup-verification.js

module.exports =[{
name: "setup-verification",
code: `
$description[Which type of verification do you want?]
$color[White]
$addButton[1;One-Click;danger;oneclick;false]
$addButton[1;Captcha;success;captcha;false]`
},
{
name: "oneclick",
type: 'interaction',
prototype: 'button',
code: `
$interactionModal[Setupping One-Click Verification;oneclick2;
{actionRow:
{textInput: Channel ID:1:channel:false:Input Channel ID:1:30}}
{actionRow:
{textInput: Verification Role ID:1:role:false:Input Verification Role ID:1:30}}]`
},
{
name: "oneclick2",
type: 'interaction',
prototype: 'modal',
code: `
$interactionReply[One-Click verification has been setupped at <#$textInputValue[channel]>!]
$channelSendMessage[$getGuildVar[verificationchannel];
{newEmbed:
{description: **Verify yourself by Clicking Button!**}
{color: White}}
{actionRow:
{button: Verify:success:verify:false}}]
$setGuildVar[verificationrole;$textInputValue[role]]
$setGuildVar[verificationchannel;$textInputValue[channel]]`
},
{
name: "verify",
type: 'interaction',
prototype: 'button',
code: `
$interactionReply[✅ | You have been verified!;;;;;true]
$giveRole[$guildID;$authorID;$getGuildVar[verificationrole]]
$onlyIf[$hasRoles[$guildID;$authorID;$getGuildVar[verificationrole]]==false;⚠️ | You are already verified!{interaction}{ephemeral}]`
},
{
name: "captcha",
type: 'interaction',
prototype: 'button',
code: `
$interactionModal[Setupping Captcha Verification;captcha2;
{actionRow:
{textInput: Channel ID:1:channel:false:Input Channel ID:1:30}}
{actionRow:
{textInput: Verification Role ID:1:role:false:Input Verification Role ID:1:30}}]`
},
{
name: "captcha2",
type: 'interaction',
prototype: 'modal',
code: `
$interactionReply[Captcha verification has been setupped at <#$textInputValue[channel]>!]
$channelSendMessage[$getGuildVar[verificationchannel];
{newEmbed:
{description: **Verify yourself by Clicking Button!**}
{color: White}}
{actionRow:
{button: Verify:success:verify2:false}}]
$setGuildVar[verificationrole;$textInputValue[role]]
$setGuildVar[verificationchannel;$textInputValue[channel]]`
},
{
name: "verify2",
type: 'interaction',
prototype: 'button',
code: `
$interactionModal[Captcha Verification Code - $getUserVar[captchacode];captchaver;
{actionRow:
{textInput: Input Code:1:captchacode:false::1:11}}]
$setUserVar[captchacode;$get[verificationcode]]
$let[verificationcode;$randomString[10]]`
},
{
name: "captchaver",
type: 'interaction',
prototype: 'modal',
code: `
$interactionReply[✅ | You have been verified!;;;;;true]
$giveRole[$guildID;$authorID;$getGuildVar[verificationrole]]
$onlyIf[$textInputValue[captchacode]==$getUserVar[captchacode];⚠️ | Invalid Captcha Code! Try again{interaction}{ephemeral}]`
}]

End

  • Thanks to anyone who is still Following me on Youtube Channel and actually uses codes I make, appreciate that!
  • Hope you liked this Verification in Aoi.js!

Credits

JosipFX - Made Code & Video