Random formatting stuff
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
const { EmbedBuilder, ApplicationCommandType, Collection, AttachmentBuilder } = require('discord.js');
|
||||
const { dangercordcheckVerification } = require('../../functions/dangercord_verificationUtils');
|
||||
const { createCanvas, loadImage } = require('canvas');
|
||||
const cfg = require('../../config/config.js');
|
||||
const captchaUser = new Collection();
|
||||
const { dangercordcheckVerification } = require('../../functions/dangercord_verificationUtils');
|
||||
|
||||
module.exports = {
|
||||
name: 'verify',
|
||||
@@ -12,6 +12,7 @@ module.exports = {
|
||||
const guildId = interaction.guild.id;
|
||||
|
||||
async function generateCaptcha(count) {
|
||||
// Setting up the variables for generation
|
||||
var upchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
var lowchars = "abcdefghijklmnopqrstuvwxyz";
|
||||
var nums = "0123456789";
|
||||
@@ -113,7 +114,6 @@ module.exports = {
|
||||
|
||||
|
||||
async function verifyUser(captcha) {
|
||||
|
||||
attempts++;
|
||||
if (attempts > maxAttempts) {
|
||||
await interaction.user.send(cfg.messages.maxAttemptsExceeded);
|
||||
@@ -200,7 +200,6 @@ module.exports = {
|
||||
const newCaptcha = await generateCaptcha(cfg.captchaCount);
|
||||
await verifyUser(newCaptcha);
|
||||
}
|
||||
|
||||
});
|
||||
}).catch(async (err) => {
|
||||
await interaction.reply({
|
||||
|
||||
Reference in New Issue
Block a user