mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-19 10:34:16 +02:00
feat(arabot): update @sapphire/plugin-scheduled-tasks
This commit is contained in:
parent
9a469c269c
commit
1cd27444d8
@ -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
|
|
||||||
strategy: new ScheduledTaskRedisStrategy({
|
|
||||||
bull: {
|
bull: {
|
||||||
connection: {
|
connection: {
|
||||||
host: 'redis',
|
host: 'redis',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user