better startup logs

This commit is contained in:
Mylloon 2023-01-17 10:52:34 +01:00
parent 41a32f9d97
commit ffa92bbd5f
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 3 additions and 2 deletions

View file

@ -1,11 +1,12 @@
import { Client } from 'discord.js';
import { logStart } from '../../utils/misc';
import { dbReminder, deleteReminder, infoReminder, OptionReminder, sendReminder, setTimeoutReminder, updateReminder } from '../../utils/reminder';
export const once = true;
/** https://discord.js.org/#/docs/discord.js/main/class/Client?scrollTo=e-ready */
export default async (client: Client) => {
console.log('Connected to Discord!');
console.log(logStart('Connection', true));
// Restart all the timeout about reminders here
new Promise((ok, ko) => {

View file

@ -8,7 +8,7 @@ import { GuildMember } from 'discord.js';
*/
export const logStart = (name: string, status: boolean) => {
// TODO Handle precision about the error if status is false
return `> ${name} ${status === true ? '✅' : '❌'}`;
return `> ${name}\t${status === true ? '✅' : '❌'}`;
};
/**