Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //-------------//Reaction-Add\\-------------\\
- $eval
- //Setting Arrays
- var alpha = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' ]
- var spec = [ '#', '$', '@', '&', '*', '?' ]
- var num = [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '0' ];
- //Getting a random captcha
- var a1 = Math.floor(Math.random() * alpha.length);
- var a2 = Math.floor(Math.random() * alpha.length);
- var a3 = Math.floor(Math.random() * alpha.length);
- var s1 = Math.floor(Math.random() * spec.length);
- var n1 = Math.floor(Math.random() * num.length);
- //setting 5 digit random captcha
- var cap$ID = alpha[a1] + alpha[a2] + spec[s1] + num[n1] + alpha[a3]
- //Edit them messages over here!
- var msg1 = "**Hey there! You are just one step away from entering `$server`!**"
- var msg2 = "Just type in the following command in <#channel-id> to verify!" //Change channel ID
- var command = ".verify" //Edit prefix
- var output = msg1 + "\n" + msg2 + "\n> " + command + " `" + cap$ID + "`"
- $halt
- $get(output)
- //-------------//Verify\\-------------\\
- $eval
- if(typeof cap$ID === "undefined") {cap$ID = "BlackKnight683"}
- var mac = '$messageAfterCommand'
- if(mac = cap$ID) {
- var reply = "**You have been successfully verified in `$server`!!**"
- }else {var reply = "**Incorrect Captcha Provided!!**"}
- $halt
- $get(reply)
- //------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement