forked from Dreamyplayer/DANG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e84945
commit 107a31b
Showing
18 changed files
with
819 additions
and
1,703 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ yarn-debug.log* | |
yarn-error.log* | ||
|
||
# test | ||
work.js | ||
test | ||
test.js | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"generator": { | ||
"length": 24, | ||
"random": true, | ||
"amount": 10000, | ||
"outfile": "./db/codes/codes.txt" | ||
}, | ||
"checker": { | ||
"interval": 50, | ||
"updateRate": 1000, | ||
"proxiesType": "http" , | ||
"proxy": true, | ||
"autoGrabProxies": true, | ||
"debug": false, | ||
"proxiesfile": "./db/proxies/proxies.txt", | ||
"codesfile": "./db/codes/codes.txt", | ||
|
||
"bURL": "https://discordapp.com/api/v9/entitlements/gift-codes/", | ||
"params": "?with_application=false&with_subscription_plan=true" | ||
} | ||
} |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
'use strict'; | ||
|
||
const { Welcome } = require('./utils/modules'); | ||
|
||
// implement function for chalk colours | ||
// add more colours | ||
// const clr = (str, clr) => { | ||
// const colours = { | ||
// black: '\x1b[30m', | ||
// red: '\x1b[31m', | ||
// green: '\x1b[32m', | ||
// yellow: '\x1b[33m', | ||
// blue: '\x1b[34m', | ||
// magenta: '\x1b[35m', | ||
// cyan: '\x1b[36m', | ||
// white: '\x1b[37m', | ||
// bgBlack: '\x1b[40m', | ||
// bgRed: '\x1b[41m', | ||
// bgGreen: '\x1b[42m', | ||
// bgYellow: '\x1b[43m', | ||
// bgBlue: '\x1b[44m', | ||
// bgMagenta: '\x1b[45m', | ||
// bgCyan: '\x1b[46m', | ||
// bgWhite: '\x1b[47m', | ||
// reset: '\x1b[0m', | ||
// bright: '\x1b[1m', | ||
// dim: '\x1b[2m', | ||
// underscore: '\x1b[4m', | ||
// blink: '\x1b[5m', | ||
// reverse: '\x1b[7m', | ||
// hidden: '\x1b[8m', | ||
// }; | ||
|
||
// if (str.indexOf('\x1b') === -1) { | ||
// return colours[clr] + str + colours.reset; | ||
// } else { | ||
// return str; | ||
// } | ||
// }; | ||
|
||
// console.log(clr, 'green'); | ||
|
||
// implement function to format number | ||
function formatNumber(num) { | ||
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); | ||
} | ||
|
||
console.log(formatNumber(10000)); | ||
|
||
console.log(Welcome); | ||
|
||
// Implement a function to convert a string to ascii text art | ||
// function ascii(str) { | ||
// const arr = []; | ||
// let i = 0; | ||
// let j = 0; | ||
// for (i = 0; i < str.length; i += 1) { | ||
// arr[i] = []; | ||
// for (j = 0; j < str.length; j += 1) { | ||
// if (str[i] === str[j]) { | ||
// arr[i].push('-'); | ||
// } else { | ||
// arr[i].push(' '); | ||
// } | ||
// } | ||
// } | ||
// return arr.join('\n'); | ||
// } | ||
|
||
// console.log(ascii('hello')); | ||
|
||
// console.log(); | ||
|
||
// const clr = (e, m) => { | ||
// const n = { | ||
// black: '[30m', | ||
// red: '[31m', | ||
// green: '[32m', | ||
// yellow: '[33m', | ||
// blue: '[34m', | ||
// magenta: '[35m', | ||
// cyan: '[36m', | ||
// white: '[37m', | ||
// bgBlack: '[40m', | ||
// bgRed: '[41m', | ||
// bgGreen: '[42m', | ||
// bgYellow: '[43m', | ||
// bgBlue: '[44m', | ||
// bgMagenta: '[45m', | ||
// bgCyan: '[46m', | ||
// bgWhite: '[47m', | ||
// reset: '[0m', | ||
// bright: '[1m', | ||
// dim: '[2m', | ||
// underscore: '[4m', | ||
// blink: '[5m', | ||
// reverse: '[7m', | ||
// hidden: '[8m', | ||
// }; | ||
// return e.indexOf('') === -1 ? n[m] + e + n.reset : e; | ||
// }; | ||
|
||
// console.log(clr('hellosdsda', 'green')); | ||
|
||
// console.log( | ||
// chalk.magenta(` | ||
// ________ _______ _____ ___________ | ||
// ___ __ \\___ |___ | / /__ ____/ | ||
// __ / / /__ /| |__ |/ / _ / __ | ||
// _ /_/ / _ ___ |_ /| / / /_/ / | ||
// /_____/ /_/ |_|/_/ |_/ \\\____/ | ||
// `), | ||
// ); | ||
|
||
const max = Number(process.argv?.[2]); | ||
|
||
console.log(max); | ||
|
||
let myMap = new Map(); | ||
myMap.set('foo', { name: 'baz', desc: 'inga' }); | ||
|
||
let nameBar = myMap.get('bar')?.name; | ||
|
||
console.log(nameBar); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,24 @@ | ||
{ | ||
"name": "dreamy-nitro-gen", | ||
"name": "dang", | ||
"version": "2.0.0", | ||
"description": "A Powerful Nitro Generator and checker.", | ||
"main": "src/app.js", | ||
"author": "♔ Dяεαмү アlαүεя ♔", | ||
"license": "Apache-2.0", | ||
"private": true, | ||
"scripts": { | ||
"start": "node src/app.js", | ||
"lint": "eslint --fix --ignore-path .gitignore ." | ||
"start": "node src/app", | ||
"prestart": "node src/gen.js" | ||
}, | ||
"devDependencies": { | ||
"chalk": "^4.1.1", | ||
"eslint": "^7.30.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-config-strongloop": "^2.1.0", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"prettier": "^2.3.2" | ||
"chalk": "^4.1.1" | ||
}, | ||
"dependencies": { | ||
"https": "^1.0.0", | ||
"intl": "^1.2.5", | ||
"mkdirp": "^1.0.4", | ||
"node-fetch": "^2.6.1", | ||
"proxy-agent": "^4.0.1", | ||
"randexp": "^0.5.3", | ||
"ws": "^7.4.4" | ||
"ws": "^7.5.3" | ||
} | ||
} |
Oops, something went wrong.