Skip to content

Commit

Permalink
fix: entry logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamyplayer committed Sep 28, 2022
1 parent c98a291 commit 9d7c04f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
3 changes: 1 addition & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ const {
} = require('node:fs');
const { setTimeout } = require('node:timers');

const { Welcome, LogoMain } = require('../utils/modules');
const { wait, compactMode } = require('../utils/functions');
const { wait, compactMode, Welcome, LogoMain } = require('../utils/functions');
const { interval, autoGrabProxies, updateRate, proxy, proxiesType, proxiesfile, debug, codesfile, bURL, params } =
require('../config').checker;
const { length, random } = require('../config').generator;
Expand Down
26 changes: 26 additions & 0 deletions utils/functions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
const { magenta, italic, gray, blue, green } = require('colorette');
const { version, author } = require('../package.json');

const wait = milliseconds => new Promise(resolve => setTimeout(resolve, milliseconds));

const compactMode = ({ date, formatType = 'Date' }) => {
Expand All @@ -6,7 +9,30 @@ const compactMode = ({ date, formatType = 'Date' }) => {
: Intl.NumberFormat('en').format(date);
};

const LogoMain = magenta(`
________ _______ _____ ___________
___ __ \\___ |___ | / /__ ____/
__ / / /__ /| |__ |/ / _ / __
_ /_/ / _ ___ |_ /| / / /_/ /
/_____/ /_/ |_|/_/ |_/ \\\____/
${italic(gray(`v${version} - by ${author}`))}
\n`);

/* eslint-disable no-irregular-whitespace */
const Welcome_txt = ` 🇼​​​​​ 🇪​​​​​ 🇱 ​​​​​🇨​ ​​​​🇴​​​​​ 🇲​​​​​ 🇪
🇹​​​​​ 🇴
🇩​​​​​ 🇮​​​​​ 🇸​​​​​ 🇨 ​​​​​🇴​​​​​ 🇷​​​​​ 🇩​​​​​ 🇳​​​​​ 🇮​​​​​ 🇹 ​​​​​🇷​​​​​ 🇴
🇬​​​​​ 🇪​​​​​ 🇳​​​​​ 🇪​​​​​ 🇷​​​​​ 🇦​​​​​ 🇹​​​​​ 🇴​ 🇷
\n\n`;

const Credit_txt = `Made by ${green(`${author}`)} With ❤️\n\n`;
const Discord = `Need help? ${magenta('Join Our Discord')} \n${blue('https://discord.gg/CNAJfbs5dn\n\n')}`;

const Welcome = Welcome_txt + Credit_txt + Discord;

module.exports = {
wait,
compactMode,
Welcome,
LogoMain,
};
24 changes: 0 additions & 24 deletions utils/modules.js

This file was deleted.

0 comments on commit 9d7c04f

Please sign in to comment.