feat: notification framework

This commit is contained in:
sct
2020-11-22 19:11:14 +09:00
parent fb5c791b0b
commit d8e542e5fe
15 changed files with 577 additions and 3 deletions

View File

@@ -14,6 +14,8 @@ import { Session } from './entity/Session';
import { getSettings } from './lib/settings';
import logger from './logger';
import { startJobs } from './job/schedule';
import notificationManager from './lib/notifications';
import DiscordAgent from './lib/notifications/agents/discord';
const API_SPEC_PATH = path.join(__dirname, '../overseerr-api.yml');
@@ -28,6 +30,9 @@ app
// Load Settings
getSettings().load();
// Register Notification Agents
notificationManager.registerAgents([new DiscordAgent()]);
// Start Jobs
startJobs();