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 16:58:38 +01:00
|
|
|
import { DiscordClientModule } from '../clients/discord/discord.module';
|
2022-12-17 01:25:45 +01:00
|
|
|
import { JellyfinClientModule } from '../clients/jellyfin/jellyfin.module';
|
2022-12-17 21:39:52 +01:00
|
|
|
import { PlaybackModule } from '../playback/playback.module';
|
2023-03-07 21:22:19 +01:00
|
|
|
import { PlaylistCommand } from './playlist/playlist.command';
|
2022-12-16 16:10:16 +01:00
|
|
|
import { DisconnectCommand } from './disconnect.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';
|
2023-03-08 13:37:57 +01:00
|
|
|
import { PlayItemCommand } from './play/play.comands';
|
2022-12-17 21:39:52 +01:00
|
|
|
import { PreviousTrackCommand } from './previous.command';
|
2022-12-18 12:30:42 +01:00
|
|
|
import { SkipTrackCommand } from './next.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';
|
2023-03-07 21:22:19 +01:00
|
|
|
import { PlaylistInteractionCollector } from './playlist/playlist.interaction-collector';
|
2022-12-16 13:48:39 +01:00
|
|
|
|
|
|
|
@Module({
|
2022-12-17 16:58:38 +01:00
|
|
|
imports: [
|
|
|
|
DiscordModule.forFeature(),
|
|
|
|
JellyfinClientModule,
|
|
|
|
DiscordClientModule,
|
2022-12-17 21:39:52 +01:00
|
|
|
PlaybackModule,
|
2022-12-17 16:58:38 +01:00
|
|
|
],
|
2022-12-16 13:48:39 +01:00
|
|
|
controllers: [],
|
2022-12-16 16:10:16 +01:00
|
|
|
providers: [
|
2023-03-07 21:22:19 +01:00
|
|
|
PlaylistInteractionCollector,
|
2022-12-16 16:10:16 +01:00
|
|
|
HelpCommand,
|
|
|
|
StatusCommand,
|
2022-12-17 22:54:46 +01:00
|
|
|
PlaylistCommand,
|
2022-12-16 16:10:16 +01:00
|
|
|
DisconnectCommand,
|
|
|
|
PausePlaybackCommand,
|
|
|
|
SkipTrackCommand,
|
|
|
|
StopPlaybackCommand,
|
|
|
|
SummonCommand,
|
2022-12-17 19:52:32 +01:00
|
|
|
PlayItemCommand,
|
|
|
|
PreviousTrackCommand,
|
2022-12-16 16:10:16 +01:00
|
|
|
],
|
2022-12-16 13:48:39 +01:00
|
|
|
exports: [],
|
|
|
|
})
|
|
|
|
export class CommandModule {}
|