Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a slash command for explaining link trackers #391

Merged
merged 2 commits into from
Aug 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/commands/oftenAsked/trackers.ts
Original file line number Diff line number Diff line change
@@ -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 }),
},
);
Loading