Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamyplayer committed Jun 20, 2021
1 parent 363efdf commit 030acc6
Show file tree
Hide file tree
Showing 8 changed files with 168 additions and 198 deletions.
17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ yarn-error.log*
# test
test.js

# yarn
yarn.lock

# Runtime data
pids
Expand Down
150 changes: 0 additions & 150 deletions .prettierrc.json

This file was deleted.

52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<h1 align="center">
<a href="https://dreamyplayer.gitbook.io/dreamy-db/">
<img src="https://cdn.discordapp.com/attachments/851533693657808926/856106084787290132/p1_2959756_03e1f525_prev_ui.png" alt="dreamy-db"/>
</a><h1>

<h2 align="center"><u>Discord Nitro Generator and Checker
</u><h2>

<p align='center'>
<a href="https://discord.gg/CNAJfbs5dn"><img src="https://img.shields.io/discord/849280500421492736?color=5865F2&logo=discord&logoColor=white" alt="Discord server" /></a>
</p>

<a title='Dreamy - Imagine a Database' href="https://discord.gg/CNAJfbs5dn"><center>Join Our Discord<img src="https://image.flaticon.com/icons/png/512/3845/3845880.png"
width="25"
height="25"
style="position:absolute;left: 238px;top:577px;"></center></a>

## Prerequisites

- Download & Install [**Node.js**](https://nodejs.org/en/ 'nodejs')
- Download & Install [**Git**](https://git-scm.com/)
- Run `node -v` & `npm -v` in terminal
- Run These commands in terminal just Make node.js Installed and PATH added

## Installation

```bash
git clone
```

## 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/app.js` file (`src` folder)

```diff
- const WEBHOOK_URL = undefined;
+ const WEBHOOK_URL = 'PLACE YOUR WEBHOOK URL HERE';
```

at Line: `24` in `src/app.js`

- Open Project Folder (`./Discord-nitro/`)
- Open `Terminal` (in same folder)
- Run `npm install` in terminal (and wait for installs to complete)
- Run `node .` in terminal (to Start Discord Nitro Script)

---
<strong><center>© 2021 [♔ Dяεαмү アlαүεя ♔](https://github.com/Dreamyplayer "Dreamy Player") ✌️</center></strong>

`https://github.com/Dreamyplayer/Discord-Nitro-Generator-and-Checker.git`
17 changes: 5 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
{
"name": "dreamy",
"name": "discord-nitro-gen",
"version": "1.0.0",
"description": "Nitro Generator and checker.",
"description": "A Powerful Discord Nitro Generator and checker.",
"main": "src/app.js",
"author": "♔ Dяεαмү アlαүεя ♔",
"license": "MIT",
"license": "Apache-2.0",
"private": true,
"scripts": {
"start": "node src/app.js",
"test": "eslint --fix --ignore-path .gitignore ."
"start": "node src/app.js"
},
"devDependencies": {
"chalk": "^4.1.1",
"eslint": "^7.28.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.1"
"chalk": "^4.1.1"
},
"dependencies": {
"discord-webhook-node": "^1.1.8",
Expand Down
20 changes: 9 additions & 11 deletions src/Global.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,21 @@ let E = [
'🎉',
'🍰',
'🎃',
'🎏',
'⛄',
'🍔',
'🍺',
'🍼',
'🌹',
'🧐',
'🤪',
'🌀',
'🌁',
'🌂',
'🌃',
'🌄',
'🌅',
'🌆',
'🌇',
'😋',
'😌',
'😍',
'😎',
'😏',
'🌈',
'🌉',
'🌊',
'🌋',
'🌌',
'🌛',
'🌝',
'🌞',
Expand All @@ -55,6 +52,7 @@ let E = [
'🌭',
'🌮',
'🌯',
'🍑',
'🌰',
];

Expand Down
15 changes: 9 additions & 6 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const { chalk, fetch, clutter, makeid, E, Webhook } = require('./Global');

// NOTE: DON'T TRY TO DECREASE TIME
// THIS IS MINIMUM.

let num = 1;

(async function Loop() {
Expand All @@ -23,7 +26,7 @@ let num = 1;

const hook = new Webhook(WEBHOOK_URL);
const IMAGE_URL =
'https://cdn.discordapp.com/attachments/851533693657808926/855850972830760960/EGS_Discord_Nitro.png';
'https://cdn.discordapp.com/attachments/851533693657808926/856145091688136714/ezgif.com-gif-maker_5.png';

hook.setUsername('Discord Nitro Gen');
hook.setAvatar(IMAGE_URL);
Expand All @@ -33,16 +36,16 @@ let num = 1;
let x = 0;

console.log(`\n${chalk.green('Testing')} ${chalk.magenta(num)}`);
console.log(` - ${chalk.green(res.ok)} || ${res.status} || ${chalk.blue(res.statusText)}\n`);
console.log(` ${chalk.green(res.ok)} || ${res.status} || ${chalk.blue(res.statusText)}\n`);

const loader = setInterval(() => {
process.stdout.write(`\r${E[x++]} Checking - ${chalk.yellow(codes)}`);
x %= E.length;
}, 750);
}, 550);

setTimeout(() => {
clearInterval(loader);
}, 30000);
}, 20000);
}
})
.catch(console.error);
Expand All @@ -52,7 +55,7 @@ let num = 1;
if (num < 5000) {
await Loop();
}
}, 30000);
}, 20000);
})();

console.log(chalk.blue.bold(`Press ${chalk.red('Cntrl + c')} to exit Script.`));
Expand All @@ -66,4 +69,4 @@ setInterval(() => {
console.log(
`${chalk.bold.cyan(`\n🐏 This Script uses approxiamately ${Math.round(used * 100) / 100} MB / 4GB RAM`)}`,
);
}, 600000); // 10 min
}, 600000);
Loading

0 comments on commit 030acc6

Please sign in to comment.