mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-06-27 09:12:43 +02:00
Fix ERR_MODULE_NOT_FOUND for constants file (#1023)
Co-authored-by: Max Isom <hi@maxisom.me>
This commit is contained in:
parent
75d2714ff2
commit
e0dfd8c9fd
27 changed files with 600 additions and 37 deletions
|
@ -3,7 +3,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import {TYPES} from '../types.js';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
|
||||
@injectable()
|
||||
export default class implements Command {
|
||||
|
|
|
@ -3,7 +3,7 @@ import {SlashCommandBuilder} from '@discordjs/builders';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
|
||||
@injectable()
|
||||
export default class implements Command {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import {APIEmbedField, AutocompleteInteraction, ChatInputCommandInteraction} from 'discord.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import AddQueryToQueue from '../services/add-query-to-queue.js';
|
||||
import {TYPES} from '../types.js';
|
||||
import {prisma} from '../utils/db.js';
|
||||
|
|
|
@ -3,7 +3,7 @@ import {SlashCommandBuilder} from '@discordjs/builders';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {prettyTime} from '../utils/time.js';
|
||||
import durationStringToSeconds from '../utils/duration-string-to-seconds.js';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import {STATUS} from '../services/player.js';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import {STATUS} from '../services/player.js';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {inject, injectable} from 'inversify';
|
||||
import {TYPES} from '../types.js';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
|
||||
@injectable()
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import {buildPlayingMessageEmbed} from '../utils/build-embed.js';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import {TYPES} from '../types.js';
|
|||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import {STATUS} from '../services/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
|
||||
@injectable()
|
||||
export default class implements Command {
|
||||
|
|
|
@ -3,7 +3,7 @@ import {URL} from 'url';
|
|||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import Spotify from 'spotify-web-api-node';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {TYPES} from '../types.js';
|
||||
import ThirdParty from '../services/third-party.js';
|
||||
import getYouTubeAndSpotifySuggestionsFor from '../utils/get-youtube-and-spotify-suggestions-for.js';
|
||||
|
|
|
@ -3,7 +3,7 @@ import {SlashCommandBuilder} from '@discordjs/builders';
|
|||
import {inject, injectable} from 'inversify';
|
||||
import {TYPES} from '../types.js';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {buildQueueEmbed} from '../utils/build-embed.js';
|
||||
|
||||
@injectable()
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {inject, injectable} from 'inversify';
|
||||
import {TYPES} from '../types.js';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
|
||||
@injectable()
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
|
||||
@injectable()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {TYPES} from '../types.js';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import {STATUS} from '../services/player.js';
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {parseTime, prettyTime} from '../utils/time.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import durationStringToSeconds from '../utils/duration-string-to-seconds.js';
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
|
||||
@injectable()
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import {buildPlayingMessageEmbed} from '../utils/build-embed.js';
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import {TYPES} from '../types.js';
|
|||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import {STATUS} from '../services/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
|
||||
@injectable()
|
||||
export default class implements Command {
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
import {buildPlayingMessageEmbed} from '../utils/build-embed.js';
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import {ChatInputCommandInteraction} from 'discord.js';
|
|||
import {TYPES} from '../types.js';
|
||||
import {inject, injectable} from 'inversify';
|
||||
import PlayerManager from '../managers/player.js';
|
||||
import Command from '.';
|
||||
import Command from './index.js';
|
||||
import {SlashCommandBuilder} from '@discordjs/builders';
|
||||
|
||||
@injectable()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {Client, Guild} from 'discord.js';
|
||||
import container from '../inversify.config.js';
|
||||
import Command from '../commands';
|
||||
import Command from '../commands/index.js';
|
||||
import {TYPES} from '../types.js';
|
||||
import Config from '../services/config.js';
|
||||
import {prisma} from '../utils/db.js';
|
||||
|
|
|
@ -15,7 +15,7 @@ import YoutubeAPI from './services/youtube-api.js';
|
|||
import SpotifyAPI from './services/spotify-api.js';
|
||||
|
||||
// Commands
|
||||
import Command from './commands';
|
||||
import Command from './commands/index.js';
|
||||
import Clear from './commands/clear.js';
|
||||
import Config from './commands/config.js';
|
||||
import Disconnect from './commands/disconnect.js';
|
||||
|
|
|
@ -11,9 +11,9 @@ import {buildPlayingMessageEmbed} from '../utils/build-embed.js';
|
|||
import {getMemberVoiceChannel, getMostPopularVoiceChannel} from '../utils/channels.js';
|
||||
import {getGuildSettings} from '../utils/get-guild-settings.js';
|
||||
import {SponsorBlock} from 'sponsorblock-api';
|
||||
import Config from './config';
|
||||
import KeyValueCacheProvider from './key-value-cache';
|
||||
import {ONE_HOUR_IN_SECONDS} from '../utils/constants';
|
||||
import Config from './config.js';
|
||||
import KeyValueCacheProvider from './key-value-cache.js';
|
||||
import {ONE_HOUR_IN_SECONDS} from '../utils/constants.js';
|
||||
|
||||
@injectable()
|
||||
export default class AddQueryToQueue {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {REST} from '@discordjs/rest';
|
||||
import {Routes} from 'discord-api-types/v10';
|
||||
import Command from '../commands';
|
||||
import Command from '../commands/index.js';
|
||||
|
||||
interface RegisterCommandsOnGuildOptions {
|
||||
rest: REST;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue