From 5d2a32cabb91524a8c0566485338a9944848243c Mon Sep 17 00:00:00 2001 From: Ben Williams Date: Tue, 27 Aug 2024 15:37:00 +0100 Subject: [PATCH 1/2] remove .nohello command --- .github/CHANGELOG.md | 1 + .github/command-docs.md | 1 - src/commands/index.ts | 2 -- src/commands/memes/noHello.ts | 22 ---------------------- 4 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 src/commands/memes/noHello.ts diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 4ee53b49..cbddedec 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -2,6 +2,7 @@ Update _ August 2024 +- refactor: remove .nohello command (27/08/2024) - fix: add aliases back to weather command (08/08/2024) - feat: New .APModes command (08/08/2024) diff --git a/.github/command-docs.md b/.github/command-docs.md index 351ef4a8..acc774ce 100644 --- a/.github/command-docs.md +++ b/.github/command-docs.md @@ -147,7 +147,6 @@ | .jaun | just... Jaun | --- | | .merge | GIT MERGE! | --- | | .mico | mico! | --- | -| .nohello | No! | .hello | | .nut | nut | --- | | .oim | oim | --- | | .otter | Well, it's an otter | --- | diff --git a/src/commands/index.ts b/src/commands/index.ts index 34bd1f5e..abdadab3 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -102,7 +102,6 @@ import { market } from './support/market'; import { takeoffIssues } from './aircraft/takeoffissues'; import { simbridge } from './support/simbridge'; import { fma } from './aircraft/fma'; -import { noHello } from './memes/noHello'; import { dlss } from './support/dlss'; import { temporarycommandedit } from './moderation/temporaryCommandEdit'; import { temporarycommand } from './general/temporaryCommand'; @@ -275,7 +274,6 @@ const commands: BaseCommandDefinition[] = [ takeoffIssues, simbridge, fma, - noHello, dlss, temporarycommandedit, temporarycommand, diff --git a/src/commands/memes/noHello.ts b/src/commands/memes/noHello.ts deleted file mode 100644 index a9d16777..00000000 --- a/src/commands/memes/noHello.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Message } from 'discord.js'; -import { CommandDefinition } from '../../lib/command'; -import { CommandCategory } from '../../constants'; - -const NO_HELLO_URL = 'https://nohello.net/'; - -export const noHello: CommandDefinition = { - name: ['nohello', 'hello'], - description: 'No!', - category: CommandCategory.MEMES, - executor: async (msg: Message) => { - const sentMsg = await msg - .fetchReference() - .then((res) => res.reply(NO_HELLO_URL)) - .catch(async () => msg.channel.send(NO_HELLO_URL)); - - if (msg.content.split(/\s+|\n|\r|\.|-|>|\/|\\/).length <= 2) { - msg.delete(); - } - return sentMsg; - }, -}; From 6216ab6b24f635ad67779d0f06e35e4c2b609a1d Mon Sep 17 00:00:00 2001 From: Philippe Dellaert Date: Wed, 4 Sep 2024 22:27:42 -0700 Subject: [PATCH 2/2] Update CHANGELOG.md --- .github/CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index cbddedec..1bfdeaa2 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -1,8 +1,11 @@ ## Changelog +Update _ September 2024 + +- refactor: remove .nohello command (04/09/2024) + Update _ August 2024 -- refactor: remove .nohello command (27/08/2024) - fix: add aliases back to weather command (08/08/2024) - feat: New .APModes command (08/08/2024)