feat: Reminders #44
2 changed files with 3 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
|
@ -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 ? '✅' : '❌'}`;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue