feat: Reminders #44

Merged
Anri merged 54 commits from feat/reminders into main 2023-01-17 12:15:15 +01:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit ffa92bbd5f - Show all commits

View file

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

View file

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