From 123e81cf6a769100077a7c7833cf076c585be369 Mon Sep 17 00:00:00 2001 From: DeltriDev <98485800+DeltriDev@users.noreply.github.com> Date: Mon, 29 Jul 2024 20:32:56 +0300 Subject: [PATCH 1/2] Added a slash command for explaining link trackers Lazy implementation, just copy pasted code. Perhaps one day I'll make it automated (so that it replies to any message containing "si=". For now you can just use `/trackers` --- src/commands/oftenAsked/trackers.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/commands/oftenAsked/trackers.ts diff --git a/src/commands/oftenAsked/trackers.ts b/src/commands/oftenAsked/trackers.ts new file mode 100644 index 0000000..6777f1f --- /dev/null +++ b/src/commands/oftenAsked/trackers.ts @@ -0,0 +1,17 @@ +import { create_command } from '../../command'; + +const message = `The **si=** is the tracking part of the URL and if you remove it it tracks less people. + +With **si=** it makes it roughly the same length as a **youtube.com** URL *(and the whole point of youtu.be is to be __shorter__)*`; + +export const command = create_command( + async () => message, + 'Explains how and why to remove youtube tracking (so Greenfoot doesnt have to)', + ['url', 'youtube'], + undefined, + undefined, + { + config: (x) => x.toJSON(), + func: async () => ({ ephemeral: false, content: message }), + }, +); \ No newline at end of file From a244801b4126d573f1aa6bc8a24f7c5da454f830 Mon Sep 17 00:00:00 2001 From: DeltriDev <98485800+DeltriDev@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:22:54 +0300 Subject: [PATCH 2/2] =?UTF-8?q?Idk=20it=20seems=20like=20this=20will=20fix?= =?UTF-8?q?=20the=20prettier=20error=20=F0=9F=98=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/oftenAsked/trackers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/oftenAsked/trackers.ts b/src/commands/oftenAsked/trackers.ts index 6777f1f..6b55d3c 100644 --- a/src/commands/oftenAsked/trackers.ts +++ b/src/commands/oftenAsked/trackers.ts @@ -14,4 +14,4 @@ export const command = create_command( config: (x) => x.toJSON(), func: async () => ({ ephemeral: false, content: message }), }, -); \ No newline at end of file +);