diff --git a/src/index.js b/src/index.js index 128803f..e952b70 100644 --- a/src/index.js +++ b/src/index.js @@ -25,7 +25,7 @@ const pkg = require('../package.json'); const banner = require('./lib/banner'); -console.log(banner(pkg.version)); // print big title +banner(pkg.version); // print big title const semver = require('semver'); const { colours } = require('leeks.js'); diff --git a/src/lib/banner.js b/src/lib/banner.js index ae474ed..321a052 100644 --- a/src/lib/banner.js +++ b/src/lib/banner.js @@ -1,9 +1,20 @@ +/* eslint-disable no-console */ const { colours } = require('leeks.js'); const figlet = require('figlet'); const link = require('terminal-link'); -module.exports = version => colours.cyan(figlet.textSync('Discord', { font: 'Banner3' })) + - colours.cyan('\n\n' + figlet.textSync('Tickets', { font: 'Banner3' })) + - colours.cyanBright(`\n\n${link('Discord Tickets', 'https://discordtickets.app')} bot v${version} by eartharoid`) + - colours.cyanBright('\nSponsor this project at https://discordtickets.app/sponsor') + - '\n\n'; +module.exports = version => { + figlet + .textSync('Discord', { font: 'Banner3' }) + .split('\n') + .forEach(line => console.log(colours.cyan(line))); + console.log(''); + figlet + .textSync('Tickets', { font: 'Banner3' }) + .split('\n') + .forEach(line => console.log(colours.cyan(line))); + console.log(''); + console.log(colours.cyanBright(`${link('Discord Tickets', 'https://discordtickets.app')} bot v${version} by eartharoid`)); + console.log(colours.cyanBright('Sponsor this project at https://discordtickets.app/sponsor')); + console.log('\n'); +};