From 75c5df0ae12a9fe1aa7e08fc705b0b9b2731c1cd Mon Sep 17 00:00:00 2001 From: Soni Date: Sat, 21 Oct 2023 14:54:49 +0200 Subject: [PATCH] chore: bump version number --- package.json | 2 +- src/commands/changelog.ts | 2 +- src/commands/family.ts | 72 ------------------------------ src/{ => responses}/changelog.json | 8 ++++ 4 files changed, 10 insertions(+), 74 deletions(-) delete mode 100644 src/commands/family.ts rename src/{ => responses}/changelog.json (97%) diff --git a/package.json b/package.json index 10b81b1..0314234 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "soni-bot", - "version": "6.2.6", + "version": "6.2.7", "description": "A lightweight toolkit bot for small Discord communities.", "scripts": { "dev": "cross-env-shell NODE_ENV=development node --trace-warnings --inspect --require ts-node/register src/main.ts src/main.ts", diff --git a/src/commands/changelog.ts b/src/commands/changelog.ts index faf2964..4acfe37 100644 --- a/src/commands/changelog.ts +++ b/src/commands/changelog.ts @@ -9,7 +9,7 @@ import { StringSelectMenuBuilder, WebhookMessageEditOptions } from 'discord.js'; -import { changelog as changelogFile } from '../changelog.json'; +import { changelog as changelogFile } from '../responses/changelog.json'; import { Changelist } from '../types'; import type { Command } from '../types/Command'; import type Client from '../util/Client'; diff --git a/src/commands/family.ts b/src/commands/family.ts deleted file mode 100644 index 64899e0..0000000 --- a/src/commands/family.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { ChatInputCommandInteraction, SlashCommandBuilder } from 'discord.js'; -import type { Command } from '../types/Command'; -import type Client from '../util/Client'; -import Logger from '../util/Logger'; - -// noinspection JSUnusedGlobalSymbols -/** - * The family command - * - * @author Soni - * @since 6.0.0 - * @see {@link Command} - */ -export default class Family implements Command -{ - name = 'family'; - description = 'Post our family tree'; - client: Client; - logger = new Logger(Family.name); - category: 'fun' = 'fun'; - - /** - * Creates a new family command - * - * @param {Client} client The Client the command is attached to - * - * @author Soni - * @since 6.0.0 - * @see {@link Client} - */ - constructor(client: Client) - { - this.client = client; - } - - /** - * Executes the command - * - * @param {ChatInputCommandInteraction<"cached">} i The command interaction - * @returns {Promise>} The reply sent by the bot - * - * @author Soni - * @since 6.0.0 - * @see {@link ChatInputCommandInteraction} - */ - async execute(i: ChatInputCommandInteraction<'cached'>) - { - return await i.editReply({ embeds: [ - this.client.defaultEmbed() - .setTitle('The family tree:tm:') - .addFields([ - { - name: "\u200b", - value: `Wanna join the family? Just tell ${this.client.users.cache.get("443058373022318593")}, and we'll figure it out.` - } - ]) - .setImage('https://files.soni.recalstudios.net/family.png') - ] }); - } - - /** - * The slash command builder for this command interaction. - * - * @returns {Promise} The slash command builder for this command interaction. - */ - async slashCommand() - { - return new SlashCommandBuilder() - .setName(this.name) - .setDescription(this.description); - } -} diff --git a/src/changelog.json b/src/responses/changelog.json similarity index 97% rename from src/changelog.json rename to src/responses/changelog.json index d24e48e..d271227 100644 --- a/src/changelog.json +++ b/src/responses/changelog.json @@ -1,5 +1,13 @@ { "changelog": [ + { + "version": "6.2.7", + "changes": [ + "Removed the `/family` command", + "Updated internal libraries", + "Minor code improvements" + ] + }, { "version": "6.2.6", "changes": [