Merge branch 'dev' into 'main'

Small changes and updating botinfo

See merge request illegitimate/illegitimate-bot!186
This commit is contained in:
2024-01-22 11:26:11 +00:00
3 changed files with 2 additions and 35 deletions

View File

@@ -24,7 +24,7 @@ export = {
const deps = Object.keys(castedDeps).map((p) => (`${p}@${castedDeps[p]}`).replace("^", "")).join(", ")
const devDeps = Object.keys(castedDevDeps).map((p) => (`${p}@${castedDevDeps[p]}`).replace("^", "")).join(", ")
const distro = execSync("cat os-release | grep 'PRETTY_NAME'").toString().replace("PRETTY_NAME=", "").replace(/"/g, "")
const distro = execSync("cat /etc/os-release | grep 'PRETTY_NAME'").toString().replace("PRETTY_NAME=", "").replace(/"/g, "")
if (os.platform() === "win32") {
osInfo = `> **OS:** \`Windows\`

View File

@@ -7,7 +7,7 @@ import { Command } from "interfaces"
export = {
name: "config",
description: "Configure the bot",
dev: true,
dev: false,
public: false,
data: new SlashCommandBuilder()

View File

@@ -1,33 +0,0 @@
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
import { Command } from "interfaces"
export = {
name: "dev-info",
description: "Test command for the bot.",
dev: true,
public: false,
data: new SlashCommandBuilder()
.setName("dev-info")
.setDescription("Test command for the bot.")
.addStringOption(option =>
option
.setName("test")
.setDescription("Test option.")
)
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
.setDMPermission(false),
async execute(interaction) {
const test = interaction.options.getString("test")!
const message = await interaction.channel!.messages.fetch(test)
const embed = message.embeds[0]
const fields = embed.fields
const field1 = fields[0]
console.log(field1.value)
await interaction.reply({ content: "Test command.", ephemeral: true })
}
} as Command