-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathindex.js
16 lines (15 loc) · 951 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const chalk = require('chalk');
require('dotenv').config()
require('./src/modules/console');
console.log(chalk.yellow('----------------------------------------------------------------------------------------------'))
console.log()
console.log(chalk.red('Found a bug? Feel free to create new issue here. https://github.com/Weeb-Devs/Laffey/issues/new'))
console.log(chalk.red('⚠️This version is a major version. Bug is probably still hanging around. Please report if you found ⚠️'))
console.log(chalk.red('⚠️Make sure you have node version 16.9.0 or newer or you will get Object.hasOwn is not a function⚠️'))
console.log(chalk.yellow(`Version: ${require('./package.json').version}`))
console.log()
console.log(chalk.yellow('----------------------------------------------------------------------------------------------'))
console.log()
const Laffey = require('./src/Laffey');
new Laffey().login()
.catch(err => console.error(err))