mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-28 04:11:57 +01:00
🚨 Fix build errors (#247)
This commit is contained in:
parent
e04e5cae50
commit
89a92b0016
@ -6,7 +6,7 @@ import {
|
|||||||
import { Injectable, Logger, OnModuleDestroy } from '@nestjs/common';
|
import { Injectable, Logger, OnModuleDestroy } from '@nestjs/common';
|
||||||
import { EventEmitter2 } from '@nestjs/event-emitter';
|
import { EventEmitter2 } from '@nestjs/event-emitter';
|
||||||
import { Cron } from '@nestjs/schedule';
|
import { Cron } from '@nestjs/schedule';
|
||||||
import { flatMapTrackItems } from 'src/utils/trackConverter';
|
import { flatMapTrackItems } from '../../utils/trackConverter';
|
||||||
|
|
||||||
import { WebSocket } from 'ws';
|
import { WebSocket } from 'ws';
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import { CommandInteraction } from 'discord.js';
|
|||||||
|
|
||||||
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
||||||
import { DiscordVoiceService } from '../clients/discord/discord.voice.service';
|
import { DiscordVoiceService } from '../clients/discord/discord.voice.service';
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../utils/environment';
|
||||||
import { PlaybackService } from 'src/playback/playback.service';
|
import { PlaybackService } from 'src/playback/playback.service';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -5,7 +5,7 @@ import { Injectable } from '@nestjs/common';
|
|||||||
import { CommandInteraction } from 'discord.js';
|
import { CommandInteraction } from 'discord.js';
|
||||||
|
|
||||||
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../utils/environment';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@Command({
|
@Command({
|
||||||
|
@ -6,7 +6,7 @@ import { CommandInteraction } from 'discord.js';
|
|||||||
|
|
||||||
import { PlaybackService } from '../playback/playback.service';
|
import { PlaybackService } from '../playback/playback.service';
|
||||||
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../utils/environment';
|
||||||
|
|
||||||
@Command({
|
@Command({
|
||||||
name: 'next',
|
name: 'next',
|
||||||
|
@ -6,7 +6,7 @@ import { CommandInteraction } from 'discord.js';
|
|||||||
|
|
||||||
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
||||||
import { DiscordVoiceService } from '../clients/discord/discord.voice.service';
|
import { DiscordVoiceService } from '../clients/discord/discord.voice.service';
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../utils/environment';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@Command({
|
@Command({
|
||||||
|
@ -27,7 +27,7 @@ import { SearchItem } from '../../models/search/SearchItem';
|
|||||||
import { PlaybackService } from '../../playback/playback.service';
|
import { PlaybackService } from '../../playback/playback.service';
|
||||||
import { formatMillisecondsAsHumanReadable } from '../../utils/timeUtils';
|
import { formatMillisecondsAsHumanReadable } from '../../utils/timeUtils';
|
||||||
|
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../../utils/environment';
|
||||||
import { PlayCommandParams, SearchType } from './play.params.ts';
|
import { PlayCommandParams, SearchType } from './play.params.ts';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -30,7 +30,7 @@ import {
|
|||||||
|
|
||||||
import { Interval } from '@nestjs/schedule';
|
import { Interval } from '@nestjs/schedule';
|
||||||
import { lightFormat } from 'date-fns';
|
import { lightFormat } from 'date-fns';
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../../utils/environment';
|
||||||
import { PlaylistInteractionCollector } from './playlist.interaction-collector';
|
import { PlaylistInteractionCollector } from './playlist.interaction-collector';
|
||||||
import { PlaylistCommandParams } from './playlist.params';
|
import { PlaylistCommandParams } from './playlist.params';
|
||||||
import { PlaylistTempCommandData } from './playlist.types';
|
import { PlaylistTempCommandData } from './playlist.types';
|
||||||
|
@ -6,7 +6,7 @@ import { CommandInteraction } from 'discord.js';
|
|||||||
|
|
||||||
import { PlaybackService } from '../playback/playback.service';
|
import { PlaybackService } from '../playback/playback.service';
|
||||||
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../utils/environment';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@Command({
|
@Command({
|
||||||
|
@ -12,7 +12,7 @@ import { JellyfinSearchService } from 'src/clients/jellyfin/jellyfin.search.serv
|
|||||||
import { SearchItem } from 'src/models/search/SearchItem';
|
import { SearchItem } from 'src/models/search/SearchItem';
|
||||||
import { PlaybackService } from 'src/playback/playback.service';
|
import { PlaybackService } from 'src/playback/playback.service';
|
||||||
import { RandomCommandParams } from './random.params';
|
import { RandomCommandParams } from './random.params';
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../../utils/environment';
|
||||||
|
|
||||||
@Command({
|
@Command({
|
||||||
name: 'random',
|
name: 'random',
|
||||||
|
@ -7,7 +7,7 @@ import { CommandInteraction } from 'discord.js';
|
|||||||
import { PlaybackService } from '../playback/playback.service';
|
import { PlaybackService } from '../playback/playback.service';
|
||||||
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
||||||
import { DiscordVoiceService } from '../clients/discord/discord.voice.service';
|
import { DiscordVoiceService } from '../clients/discord/discord.voice.service';
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../utils/environment';
|
||||||
|
|
||||||
@Command({
|
@Command({
|
||||||
name: 'stop',
|
name: 'stop',
|
||||||
|
@ -6,7 +6,7 @@ import { CommandInteraction, GuildMember } from 'discord.js';
|
|||||||
|
|
||||||
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
import { DiscordMessageService } from '../clients/discord/discord.message.service';
|
||||||
import { DiscordVoiceService } from '../clients/discord/discord.voice.service';
|
import { DiscordVoiceService } from '../clients/discord/discord.voice.service';
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../utils/environment';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@Command({
|
@Command({
|
||||||
|
@ -8,9 +8,9 @@ import { CommandInteraction } from 'discord.js';
|
|||||||
import { DiscordMessageService } from 'src/clients/discord/discord.message.service';
|
import { DiscordMessageService } from 'src/clients/discord/discord.message.service';
|
||||||
import { DiscordVoiceService } from 'src/clients/discord/discord.voice.service';
|
import { DiscordVoiceService } from 'src/clients/discord/discord.voice.service';
|
||||||
import { PlaybackService } from 'src/playback/playback.service';
|
import { PlaybackService } from 'src/playback/playback.service';
|
||||||
import { sleepAsync } from 'src/utils/timeUtils';
|
import { sleepAsync } from '../../utils/timeUtils';
|
||||||
import { VolumeCommandParams } from './volume.params';
|
import { VolumeCommandParams } from './volume.params';
|
||||||
import { defaultMemberPermissions } from 'src/utils/environment';
|
import { defaultMemberPermissions } from '../../utils/environment';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
@Command({
|
@Command({
|
||||||
|
@ -4,7 +4,7 @@ import { Track } from '../music/Track';
|
|||||||
import { JellyfinSearchService } from '../../clients/jellyfin/jellyfin.search.service';
|
import { JellyfinSearchService } from '../../clients/jellyfin/jellyfin.search.service';
|
||||||
|
|
||||||
import { SearchItem } from './SearchItem';
|
import { SearchItem } from './SearchItem';
|
||||||
import { trimStringToFixedLength } from 'src/utils/stringUtils/stringUtils';
|
import { trimStringToFixedLength } from '../../utils/stringUtils/stringUtils';
|
||||||
|
|
||||||
export class AlbumSearchItem extends SearchItem {
|
export class AlbumSearchItem extends SearchItem {
|
||||||
override toString(): string {
|
override toString(): string {
|
||||||
|
@ -4,8 +4,8 @@ import { Track } from '../music/Track';
|
|||||||
import { JellyfinSearchService } from '../../clients/jellyfin/jellyfin.search.service';
|
import { JellyfinSearchService } from '../../clients/jellyfin/jellyfin.search.service';
|
||||||
|
|
||||||
import { SearchItem } from './SearchItem';
|
import { SearchItem } from './SearchItem';
|
||||||
import { flatMapTrackItems } from 'src/utils/trackConverter';
|
import { flatMapTrackItems } from '../../utils/trackConverter';
|
||||||
import { trimStringToFixedLength } from 'src/utils/stringUtils/stringUtils';
|
import { trimStringToFixedLength } from '../../utils/stringUtils/stringUtils';
|
||||||
|
|
||||||
export class PlaylistSearchItem extends SearchItem {
|
export class PlaylistSearchItem extends SearchItem {
|
||||||
override toString(): string {
|
override toString(): string {
|
||||||
|
@ -6,7 +6,7 @@ import { z } from 'zod';
|
|||||||
|
|
||||||
import { JellyfinSearchService } from '../../clients/jellyfin/jellyfin.search.service';
|
import { JellyfinSearchService } from '../../clients/jellyfin/jellyfin.search.service';
|
||||||
import { Track } from '../music/Track';
|
import { Track } from '../music/Track';
|
||||||
import { trimStringToFixedLength } from 'src/utils/stringUtils/stringUtils';
|
import { trimStringToFixedLength } from '../../utils/stringUtils/stringUtils';
|
||||||
|
|
||||||
export class SearchItem {
|
export class SearchItem {
|
||||||
constructor(
|
constructor(
|
||||||
|
Loading…
Reference in New Issue
Block a user