Merge branch 'dev' into 'main'
Small changes and updating botinfo See merge request illegitimate/illegitimate-bot!186
This commit is contained in:
@@ -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\`
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Command } from "interfaces"
|
||||
export = {
|
||||
name: "config",
|
||||
description: "Configure the bot",
|
||||
dev: true,
|
||||
dev: false,
|
||||
public: false,
|
||||
|
||||
data: new SlashCommandBuilder()
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user