import type { CommandModule } from "../discord/types.js";
import { playCommand } from "./music/play.js";
import { queueCommand } from "./music/queue.js";
import { skipCommand } from "./music/skip.js";
import { stopCommand } from "./music/stop.js";
import { warnCommand } from "./manage/warn.js";
import { warningsCommand } from "./manage/warnings.js";
import { scheduleCommand } from "./notify/schedule.js";
import { notifyListCommand } from "./notify/list.js";
import { notifyDisableCommand } from "./notify/disable.js";
import { newsCommand } from "./info/news.js";
import { summarizeCommand } from "./info/summarize.js";
import { translateCommand } from "./info/translate.js";

export const commands: CommandModule[] = [
  playCommand,
  queueCommand,
  skipCommand,
  stopCommand,
  warnCommand,
  warningsCommand,
  scheduleCommand,
  notifyListCommand,
  notifyDisableCommand,
  newsCommand,
  summarizeCommand,
  translateCommand,
];

export const commandMap = new Map(commands.map((c) => [c.data.name, c]));
