From 4d469477d47b32af99ad78f6c924c6b6634ca468 Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Sat, 21 May 2022 10:08:34 +0800 Subject: [PATCH] colorful logs --- index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.ts b/index.ts index d6a26fa..8ba671a 100644 --- a/index.ts +++ b/index.ts @@ -4,6 +4,8 @@ import { commands, aliases } from './commands'; import * as BuildConfig from './constants'; import Filter from 'bad-words'; +import { green, bold, blue, underline } from 'kleur/colors'; + const client = new Client({ intents: [ Intents.FLAGS.GUILDS, @@ -17,8 +19,11 @@ const client = new Client({ client.login(process.env.DISCORD_TOKEN); client.once('ready', async () => { - console.log('Discord bot ready!'); - console.log('Invite link:', client.generateInvite({ scopes: ['bot'] })); + console.log(green(bold('Discord bot ready!'))); + console.log( + 'Invite link:', + blue(underline(client.generateInvite({ scopes: ['bot'] }))) + ); const POLYMC_GUILD = await client.guilds.fetch(BuildConfig.GUILD_ID); const MAINTAINERS_CHANNEL = POLYMC_GUILD.channels.cache.get(