Moving dangercord key to config.js
This commit is contained in:
@@ -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.',
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user