discord-jellyfin-bot/src/commands/command.module.ts

40 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-12-16 13:48:39 +01:00
import { DiscordModule } from '@discord-nestjs/core';
2022-12-17 01:25:45 +01:00
import { Module } from '@nestjs/common';
2022-12-16 13:48:39 +01:00
2022-12-17 01:25:45 +01:00
import { DiscordMessageService } from '../clients/discord/discord.message.service';
import { JellyfinClientModule } from '../clients/jellyfin/jellyfin.module';
import { PlaybackService } from '../playback/playback.service';
2022-12-16 16:10:16 +01:00
import { CurrentTrackCommand } from './current.command';
import { DisconnectCommand } from './disconnect.command';
import { EnqueueCommand } from './enqueue.command';
2022-12-17 01:25:45 +01:00
import { HelpCommand } from './help.command';
2022-12-16 16:10:16 +01:00
import { PausePlaybackCommand } from './pause.command';
import { PlayCommand } from './play.command';
2022-12-17 01:25:45 +01:00
import { SearchItemCommand } from './search.comands';
2022-12-16 16:10:16 +01:00
import { SkipTrackCommand } from './skip.command';
2022-12-17 01:25:45 +01:00
import { StatusCommand } from './status.command';
2022-12-16 16:10:16 +01:00
import { StopPlaybackCommand } from './stop.command';
import { SummonCommand } from './summon.command';
2022-12-16 13:48:39 +01:00
@Module({
2022-12-17 01:25:45 +01:00
imports: [DiscordModule.forFeature(), JellyfinClientModule],
2022-12-16 13:48:39 +01:00
controllers: [],
2022-12-16 16:10:16 +01:00
providers: [
HelpCommand,
StatusCommand,
CurrentTrackCommand,
DisconnectCommand,
EnqueueCommand,
PausePlaybackCommand,
PlayCommand,
SkipTrackCommand,
StopPlaybackCommand,
SummonCommand,
2022-12-17 01:25:45 +01:00
SearchItemCommand,
2022-12-16 23:17:26 +01:00
DiscordMessageService,
PlaybackService,
2022-12-16 16:10:16 +01:00
],
2022-12-16 13:48:39 +01:00
exports: [],
})
export class CommandModule {}