diff --git a/src/commands/botinfo.ts b/src/commands/botinfo.ts index 79303ff..5695243 100644 --- a/src/commands/botinfo.ts +++ b/src/commands/botinfo.ts @@ -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\` diff --git a/src/commands/config.ts b/src/commands/config.ts index bc171b6..a4b2684 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -7,7 +7,7 @@ import { Command } from "interfaces" export = { name: "config", description: "Configure the bot", - dev: true, + dev: false, public: false, data: new SlashCommandBuilder() diff --git a/src/commands/dev-info.ts b/src/commands/dev-info.ts deleted file mode 100644 index b4d9d43..0000000 --- a/src/commands/dev-info.ts +++ /dev/null @@ -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