Skip to content

Commit

Permalink
fix: log banner colours on Pterodactyl
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Jan 15, 2024
1 parent 18e63bf commit e6f87a8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
21 changes: 16 additions & 5 deletions src/lib/banner.js
Original file line number Diff line number Diff line change
@@ -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');
};

0 comments on commit e6f87a8

Please sign in to comment.