fix: log banner colours on Pterodactyl

This commit is contained in:
Isaac 2024-01-15 00:20:42 +00:00
parent 18e63bf2dc
commit e6f87a8bf5
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33
2 changed files with 17 additions and 6 deletions

View File

@ -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');

View File

@ -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');
};