mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 03:44:13 +02:00
feat(arabot): update @sapphire/plugin-scheduled-tasks
This commit is contained in:
parent
9a469c269c
commit
1cd27444d8
13
src/index.ts
13
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',
|
||||
},
|
||||
}),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user