Advertisement
BlackKnight683

Verification System

Apr 7th, 2021
1,285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //-------------//Reaction-Add\\-------------\\
  2.  
  3. $eval
  4.  
  5. //Setting Arrays
  6. 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' ]
  7. var spec = [ '#', '$', '@', '&', '*', '?' ]
  8. var num = [ '1', '2', '3', '4', '5', '6', '7', '8', '9', '0' ];
  9.  
  10. //Getting a random captcha
  11. var a1 = Math.floor(Math.random() * alpha.length);
  12. var a2 = Math.floor(Math.random() * alpha.length);
  13. var a3 = Math.floor(Math.random() * alpha.length);
  14. var s1 = Math.floor(Math.random() * spec.length);
  15. var n1 = Math.floor(Math.random() * num.length);
  16.  
  17. //setting 5 digit random captcha
  18. var cap$ID = alpha[a1] + alpha[a2] + spec[s1] + num[n1] + alpha[a3]
  19.  
  20.  
  21. //Edit them messages over here!
  22.  
  23.  
  24. var msg1 = "**Hey there! You are just one step away from entering `$server`!**"
  25.  
  26. var msg2 = "Just type in the following command in <#channel-id> to verify!" //Change channel ID
  27.  
  28. var command = ".verify" //Edit prefix
  29.  
  30. var output = msg1 + "\n" + msg2 + "\n> " + command + " `" + cap$ID + "`"
  31.  
  32. $halt
  33. $get(output)
  34.  
  35. //-------------//Verify\\-------------\\
  36. $eval
  37. if(typeof cap$ID === "undefined") {cap$ID = "BlackKnight683"}
  38.  
  39. var mac = '$messageAfterCommand'
  40.  
  41. if(mac = cap$ID) {
  42. var reply = "**You have been successfully verified in `$server`!!**"
  43. }else {var reply = "**Incorrect Captcha Provided!!**"}
  44. $halt
  45. $get(reply)
  46. //------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement