import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ConfigModule } from '@nestjs/config';
import { EconomyModule } from '../economy/economy.module';
import { ProcessedEvent } from './entities/processed-event.entity';
import { TwitchEventService } from './twitch-event.service';
import { TwitchWebhookController } from './twitch-webhook.controller';

@Module({
  imports: [
    ConfigModule,
    TypeOrmModule.forFeature([ProcessedEvent]),
    EconomyModule,
  ],
  controllers: [TwitchWebhookController],
  providers: [TwitchEventService],
  exports: [TwitchEventService],
})
export class TwitchModule {}
