Moved to esm

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-08-23 17:59:00 +02:00
parent 31b88396ea
commit 3f7f23d4b3
123 changed files with 575 additions and 510 deletions

View File

@@ -1,12 +1,16 @@
import { SlashCommandBuilder } from "discord.js"
import { ICommand } from "interfaces"
import { embedColor, devMessage } from "config/options"
import { embedColor, devMessage } from "config/options.js"
import os from "os"
import prettyMs from "pretty-ms"
import { execSync } from "child_process"
import { removeIndents } from "utils/functions/funcs"
import { removeIndents } from "utils/functions/funcs.js"
import { createRequire } from "node:module"
const require = createRequire(import.meta.url)
const { dependencies, devDependencies } = require("../../package.json")
export = {
export default {
name: "botinfo",
description: "Get information about the bot",
dev: false,
@@ -18,7 +22,6 @@ export = {
.setDMPermission(false),
async execute({ interaction, client }) {
const { default: prettyMs } = await import("pretty-ms")
const castedDeps = dependencies as { [key: string]: string }
const castedDevDeps = devDependencies as { [key: string]: string }
let osInfo: string