Skip to content

Commit

Permalink
Added a slash command for explaining link trackers
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
AloneAlexandros authored Jul 29, 2024
1 parent a0ee29a commit 123e81c
Showing 1 changed file with 17 additions and 0 deletions.
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 }),
},
);

Check failure on line 17 in src/commands/oftenAsked/trackers.ts

View workflow job for this annotation

GitHub Actions / formatting

Insert `⏎`

0 comments on commit 123e81c

Please sign in to comment.