feat(arabot): update @sapphire/plugin-scheduled-tasks

This commit is contained in:
Anthony Berg 2023-05-13 14:42:31 +01:00
parent 9a469c269c
commit 1cd27444d8

View File

@ -22,7 +22,7 @@
import { GatewayIntentBits } from 'discord.js'; import { GatewayIntentBits } from 'discord.js';
import { LogLevel, SapphireClient, container } from '@sapphire/framework'; 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 '@sapphire/plugin-logger/register';
import { PrismaClient } from '@prisma/client'; import { PrismaClient } from '@prisma/client';
import 'dotenv/config'; import 'dotenv/config';
@ -47,14 +47,11 @@ const client = new SapphireClient({
GatewayIntentBits.MessageContent, GatewayIntentBits.MessageContent,
], ],
tasks: { tasks: {
// Scheduler with redis bull: {
strategy: new ScheduledTaskRedisStrategy({ connection: {
bull: { host: 'redis',
connection: {
host: 'redis',
},
}, },
}), },
}, },
}); });