Skip to content

Commit

Permalink
Latest v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamyplayer committed Jul 12, 2021
1 parent 5e84945 commit 107a31b
Show file tree
Hide file tree
Showing 18 changed files with 819 additions and 1,703 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ yarn-debug.log*
yarn-error.log*

# test
work.js
test
test.js

Expand Down
150 changes: 0 additions & 150 deletions .prettierrc.json

This file was deleted.

25 changes: 12 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1 align="center">
<a href="https://dreamyplayer.gitbook.io/dreamy-db/">
<img src="https://discord.com/assets/b941bc1dfe379db6cc1f2acc5a612f41.png" alt="dreamy-db" width="420"/></a><br>Discord Nitro Generator and Checker<br>
<img src="https://discord.com/assets/b941bc1dfe379db6cc1f2acc5a612f41.png" alt="dreamy-db" width="420"/></a><br>DANG: <br>Dreamy's Awesome Nitro Generator<br>
<a href="https://discord.gg/CNAJfbs5dn"><img src="https://img.shields.io/discord/849280500421492736?color=5865F2&logo=discord&logoColor=white&style=plastic" alt="Discord server" /></a>
<a href="https://github.com/Dreamyplayer"><img src="https://img.shields.io/github/stars/Dreamyplayer?color=white&logo=github&style=plastic" alt="Discord server" /></a>
<a href="https://github.com/Dreamyplayer/Discord-Nitro-Gen-and-Checker/blob/master/package.json"><img src="https://img.shields.io/github/package-json/v/Dreamyplayer/Discord-Nitro-Gen-and-Checker?color=l&logo=git&logoColor=lightgreen&style=plastic" alt="Discord server" /></a>
Expand Down Expand Up @@ -37,20 +37,19 @@ Before, We start please follow these Steps: `Required*`
git clone https://github.com/Dreamyplayer/Discord-Nitro-Generator-and-Checker.git
```

## Usage

- Create a Webhook and Copy your `WEBHOOK_URL` ([**Read article**](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks))

- Open `src/config.js` file (`src` folder)
## Configuration

```diff
- const WEBHOOK_URL = '';
+ const WEBHOOK_URL = 'PLACE YOUR WEBHOOK URL HERE';
```
- Open Project Folder (`./Discord-nitro/`)
- Open `Terminal` (in same folder)
- Open `config.json` file (./root/ or ./DANG/ folder).
- Length `24` Premium Nitro.
- Length `16` classic Nitro.
- Amount 10,000 is max set below.
- Change proxiesType [valid values] `http, socks4, socks5` (optional)
> Keep all other settings values **default**.
## Usage
- Open Project Folder (`./DANG/`)
- Open `Terminal||Console||CMD` (in same folder)
- Run `npm install` in terminal (and wait for installs to complete)
- Run `node .` in terminal (to Start Discord Nitro Script)
- Run `npm start` in terminal (to Start Discord Nitro Script)

## Contributing

Expand Down
21 changes: 21 additions & 0 deletions config.json
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 added db/codes/codes.txt
Empty file.
Empty file added db/codes/valids.txt
Empty file.
Empty file added db/proxies/proxies.txt
Empty file.
124 changes: 124 additions & 0 deletions ntest.js
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: '',
// red: '',
// green: '',
// yellow: '',
// blue: '',
// magenta: '',
// cyan: '',
// white: '',
// bgBlack: '',
// bgRed: '',
// bgGreen: '',
// bgYellow: '',
// bgBlue: '',
// bgMagenta: '',
// bgCyan: '',
// bgWhite: '',
// reset: '',
// bright: '',
// dim: '',
// underscore: '',
// blink: '',
// reverse: '',
// hidden: '',
// };
// 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);
17 changes: 5 additions & 12 deletions package.json
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"
}
}
Loading

0 comments on commit 107a31b

Please sign in to comment.