mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-23 11:26:42 +02:00
Add configurable morning summaries that aggregate data from multiple sources: - Weather forecast via Open-Meteo API (free, no API key needed) - Today's calendar events - Today's tasks + overdue tasks - Birthdays from contacts - Plants needing water from Planta New commands: - !morning / !morgen - Get summary now - !morning-on/off - Enable/disable automatic delivery - !morning-time HH:MM - Set delivery time - !morning-location [city] - Set weather location - !morning-timezone [zone] - Set timezone - !morning-format [kompakt|ausfuehrlich] - Set format - !morning-settings - Show current settings New shared services in @manacore/bot-services: - WeatherService - Open-Meteo integration with geocoding - ContactsApiService - Birthday fetching - PlantaApiService - Watering schedule - MorningSummaryService - Aggregates all sources - MorningPreferencesService - User preferences storage Includes scheduler for automatic daily delivery at user-configured time. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
19 lines
663 B
TypeScript
19 lines
663 B
TypeScript
import { Module, forwardRef } from '@nestjs/common';
|
|
import { ScheduleModule } from '@nestjs/schedule';
|
|
import { MorningSummaryScheduler } from './morning-summary.scheduler';
|
|
import { BotModule } from '../bot/bot.module';
|
|
import { SessionModule } from '@manacore/bot-services';
|
|
|
|
/**
|
|
* Scheduler Module
|
|
*
|
|
* Provides scheduled tasks for the bot including:
|
|
* - Morning summary delivery
|
|
* - Future: Reminder notifications, recurring tasks, etc.
|
|
*/
|
|
@Module({
|
|
imports: [ScheduleModule.forRoot(), forwardRef(() => BotModule), SessionModule.forRoot()],
|
|
providers: [MorningSummaryScheduler],
|
|
exports: [MorningSummaryScheduler],
|
|
})
|
|
export class SchedulerModule {}
|