0% found this document useful (0 votes)
30 views2 pages

Discord Gift Code Checker Script

Uploaded by

gbbxamari
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

Discord Gift Code Checker Script

Uploaded by

gbbxamari
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

// creditos: Apolo//exps

// discord [Link]
const fs = require('fs');
const axios = require("axios");
const color = {
blue: '\x1b[38;5;39m',
green: '\x1b[32m',
red: '\x1b[31m',
purple: '\x1b[35m',
reset: '\x1b[0m',
cyan: '\x1b[36m'
}

const token = '' // coloque o token da sua conta aqui


let checkados = 0
let validos = 0
let invalidos = 0
const { format } = require('date-fns');
const { ptBR } = require('date-fns/locale');

const links = [Link]('[Link]', 'utf-8').split('\n')

const checker = async() => {


[Link]()
for (const link of links) {
let codigo;
if ([Link]('[Link] {
codigo = [Link]('[Link] '')
} else if ([Link]('[Link] {
codigo = [Link]('[Link] '')
} else {
[Link](`${color['red']}[ERRO] Esse link ${color['cyan']}"${link}" $
{color['red']}não é suportado pelo checker!`)
continue;
}
[Link]('\n\n')
const url = `[Link]
const params = {
country_code: "BR",
with_application: "false",
with_subscription_plan: "true"
}
const headers = {
Authorization: token
}
checkados++
try {
const response = await [Link](url, { params, headers })
if ([Link] == 200) {
const data = [Link]
if (![Link] && [Link] < 1) {
[Link]('input/[Link]', link + '\n')
validos++
[Link](`${color['green']}[VALIDO] O link (${link}) é válido\n[TIPO]
${[Link]('[Link] ? "Mensal" : "Trimensal"}\n$
{color['reset']}[EXPIRAÇÃO] ${expiryIn(data.expires_at)}\n`)
} else {
[Link]('input/[Link]', link + '\n')
invalidos++
[Link](`${color['red']}[INVALIDO] O link (${link}) é inválido\
n[TIPO] ${[Link]('[Link] ? "Mensal" : "Trimensal"}\
n`)
}
} else {
[Link]('input/[Link]', link + '\n')
invalidos++
[Link](`${color['red']}[INVALIDO] O link (${link}) é inválido\n[TIPO]
${[Link]('[Link] ? "Mensal" : "Trimensal"}\n`)
}
} catch (error) {
[Link]('input/[Link]', link + '\n')
invalidos++
[Link](`${color['red']}[INVALIDO] O link (${link}) é inválido\n[TIPO] $
{[Link]('[Link] ? "Mensal" : "Trimensal"}\n`)
}
}

[Link](`${color['cyan']}[FINALIZADO] | Validos: ${validos} | Invalidos: $


{invalidos} | Total: ${checkados}`);
}

function expiryIn(isoDate) {
const date = new Date(isoDate);

// Formatar a data para o formato brasileiro


const formattedDate = format(date, 'dd/MM/yyyy HH:mm:ss', { locale: ptBR });

return formattedDate
}

checker()

You might also like