mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
fix: log banner colours on Pterodactyl
This commit is contained in:
parent
18e63bf2dc
commit
e6f87a8bf5
@ -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');
|
||||
|
@ -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');
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user