Moving dangercord key to config.js

This commit is contained in:
ExtrasContainer
2024-02-04 22:33:00 +00:00
parent fb9ad1b181
commit d5306186e8
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -15,6 +15,7 @@ module.exports = {
'captchaCount': '7',
'captchaTimeout': '120000', //in milliseconds (seconds multiplied by 1000)
'maxAttempts': '3', // max attemps to verify
'dangerCordAPIKey': 'KEYHERE', // dangercord api key here
'messages': {
//literally messages lmao
'toVerify': 'Please verify that you are not a robot.',
+2 -1
View File
@@ -1,9 +1,10 @@
const fetch = require('node-fetch');
const cfg = require('../config/config.js');
async function dangercordcheckVerification(userId, accessToken) {
const url = `https://dangercord.com/api/v1/user/${userId}`;
const headers = {
'Authorization': `Bearer dd._rUgw7Soro2u7SedNRGEmW0J6NkDQ8X3r`
'Authorization': `Bearer ${cfg.dangerCordAPIKey}`
};
try {