From 1cd27444d854e44a08f4717c969ed5a5e8a6d115 Mon Sep 17 00:00:00 2001 From: Anthony Berg Date: Sat, 13 May 2023 14:42:31 +0100 Subject: [PATCH] feat(arabot): update @sapphire/plugin-scheduled-tasks --- src/index.ts | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/index.ts b/src/index.ts index 33776b6..4150f2f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,7 +22,7 @@ import { GatewayIntentBits } from 'discord.js'; import { LogLevel, SapphireClient, container } from '@sapphire/framework'; -import { ScheduledTaskRedisStrategy } from '@sapphire/plugin-scheduled-tasks/register-redis'; +import '@sapphire/plugin-scheduled-tasks/register'; import '@sapphire/plugin-logger/register'; import { PrismaClient } from '@prisma/client'; import 'dotenv/config'; @@ -47,14 +47,11 @@ const client = new SapphireClient({ GatewayIntentBits.MessageContent, ], tasks: { - // Scheduler with redis - strategy: new ScheduledTaskRedisStrategy({ - bull: { - connection: { - host: 'redis', - }, + bull: { + connection: { + host: 'redis', }, - }), + }, }, });