fix build

This commit is contained in:
Darius
2025-10-27 22:57:30 +01:00
parent 7f20247a47
commit aadda8a05a
27 changed files with 85 additions and 85 deletions

View File

@@ -1,7 +1,7 @@
import type { ChatUser } from "@twurple/chat";
import { Config } from "../config/config.ts";
import { chatClient } from "../core/client.ts";
import type { ICommand, ICommandRequirements } from "./interface.ts";
import { Config } from "../config/config.js";
import { chatClient } from "../core/client.js";
import type { ICommand, ICommandRequirements } from "./interface.js";
export abstract class BaseCommand implements ICommand {
protected get chatClient() {

View File

@@ -1,12 +1,12 @@
import { Collection } from "@discordjs/collection";
import { PingCommand } from "./impl/ping.ts";
import { PositionCommand } from "./impl/position.ts";
import { SongCommand } from "./impl/song.ts";
import { TempCommand } from "./impl/temp.ts";
import { VanishCommand } from "./impl/vanish.ts";
import { VolumeCommand } from "./impl/volume.ts";
import { WhereCommand } from "./impl/where.ts";
import type { ICommand } from "./interface.ts";
import { PingCommand } from "./impl/ping.js";
import { PositionCommand } from "./impl/position.js";
import { SongCommand } from "./impl/song.js";
import { TempCommand } from "./impl/temp.js";
import { VanishCommand } from "./impl/vanish.js";
import { VolumeCommand } from "./impl/volume.js";
import { WhereCommand } from "./impl/where.js";
import type { ICommand } from "./interface.js";
export const commands = new Collection<string, ICommand>();
const cmds: Array<ICommand> = [];

View File

@@ -1,8 +1,8 @@
import type { ChatMessage } from "@twurple/chat";
import { calculateSecondsBetween } from "../../util/general.ts";
import { logSuccess } from "../../util/logger.ts";
import { BaseCommand } from "../base-command.ts";
import type { ICommandRequirements } from "../interface.ts";
import { calculateSecondsBetween } from "../../util/general.js";
import { logSuccess } from "../../util/logger.js";
import { BaseCommand } from "../base-command.js";
import type { ICommandRequirements } from "../interface.js";
export class PingCommand extends BaseCommand {
started: number;

View File

@@ -1,8 +1,8 @@
import type { ChatMessage } from "@twurple/chat";
import { getDeskPositionText } from "../../util/api-homeassistant.ts";
import { calculateSecondsBetween } from "../../util/general.ts";
import { logSuccess } from "../../util/logger.ts";
import { BaseCommand } from "../base-command.ts";
import { getDeskPositionText } from "../../util/api-homeassistant.js";
import { calculateSecondsBetween } from "../../util/general.js";
import { logSuccess } from "../../util/logger.js";
import { BaseCommand } from "../base-command.js";
import type { ICommandRequirements } from "../interface.ts";
export class PositionCommand extends BaseCommand {

View File

@@ -1,8 +1,9 @@
import type { ChatMessage } from "@twurple/chat";
import { getSongFromTidalFormatted } from "../../util/api-tidal.ts";
import { logSuccess } from "../../util/logger.ts";
import { BaseCommand } from "../base-command.ts";
import type { ICommandRequirements } from "../interface.ts";
import { getSongFromTidalFormatted } from "../../util/api-tidal.js";
import { logSuccess } from "../../util/logger.js";
import { BaseCommand } from "../base-command.js";
import type { ICommandRequirements } from "../interface.js";
export class SongCommand extends BaseCommand {
name = "song";

View File

@@ -1,8 +1,8 @@
import type { ChatMessage } from "@twurple/chat";
import { getTemperatures } from "../../util/api-homeassistant.ts";
import { logSuccess } from "../../util/logger.ts";
import { BaseCommand } from "../base-command.ts";
import type { ICommandRequirements } from "../interface.ts";
import { getTemperatures } from "../../util/api-homeassistant.js";
import { logSuccess } from "../../util/logger.js";
import { BaseCommand } from "../base-command.js";
import type { ICommandRequirements } from "../interface.js";
export class TempCommand extends BaseCommand {
name = "temp";

View File

@@ -1,8 +1,8 @@
import type { ChatMessage } from "@twurple/chat";
import { purgeByIds } from "../../util/api-functions.ts";
import { logSuccess } from "../../util/logger.ts";
import { BaseCommand } from "../base-command.ts";
import type { ICommandRequirements } from "../interface.ts";
import { purgeByIds } from "../../util/api-functions.js";
import { logSuccess } from "../../util/logger.js";
import { BaseCommand } from "../base-command.js";
import type { ICommandRequirements } from "../interface.js";
export class VanishCommand extends BaseCommand {
name = "v";

View File

@@ -1,9 +1,9 @@
import type { ChatMessage, ChatUser } from "@twurple/chat";
import { Config } from "../../config/config.ts";
import { getVolumeFromTidal, setVolumeToTidal } from "../../util/api-tidal.ts";
import { logSuccess } from "../../util/logger.ts";
import { BaseCommand } from "../base-command.ts";
import type { ICommand, ICommandRequirements } from "../interface.ts";
import { Config } from "../../config/config.js";
import { getVolumeFromTidal, setVolumeToTidal } from "../../util/api-tidal.js";
import { logSuccess } from "../../util/logger.js";
import { BaseCommand } from "../base-command.js";
import type { ICommand, ICommandRequirements } from "../interface.js";
export class VolumeCommand extends BaseCommand {
name = "vol";

View File

@@ -1,7 +1,7 @@
import type { ChatMessage } from "@twurple/chat";
import { logSuccess } from "../../util/logger.ts";
import { BaseCommand } from "../base-command.ts";
import type { ICommandRequirements } from "../interface.ts";
import { logSuccess } from "../../util/logger.js";
import { BaseCommand } from "../base-command.js";
import type { ICommandRequirements } from "../interface.js";
export class WhereCommand extends BaseCommand {
name = "where";