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