Final docker version
This commit is contained in:
@@ -12,7 +12,6 @@ RUN bun bundle
|
||||
FROM oven/bun
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/dist /app/dist
|
||||
COPY --from=build /app/package.json /app
|
||||
COPY --from=build /app/dist /app
|
||||
|
||||
CMD ["bun", "run", "dist/index.js"]
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
import { execSync } from "child_process"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { createRequire } from "node:module"
|
||||
import os from "os"
|
||||
import prettyMs from "pretty-ms"
|
||||
import { devMessage, embedColor } from "~/config/options"
|
||||
import { ICommand } from "~/typings"
|
||||
|
||||
const require = createRequire(import.meta.url)
|
||||
const { dependencies, devDependencies } = require("../../package.json")
|
||||
import packageJson from "../../package.json"
|
||||
|
||||
export default {
|
||||
name: "botinfo",
|
||||
@@ -21,6 +18,7 @@ export default {
|
||||
.setContexts(InteractionContextType.Guild),
|
||||
|
||||
async execute({ interaction, client }) {
|
||||
const { dependencies, devDependencies } = packageJson
|
||||
const castedDeps = dependencies as { [key: string]: string }
|
||||
const castedDevDeps = devDependencies as { [key: string]: string }
|
||||
let osInfo: string
|
||||
|
||||
Reference in New Issue
Block a user