A simple Discord bot that cleans the "si=" query parameter from YouTube links.
Find a file
Phillip 276e41e667 Refactor to add support for more url formats. Added Instagram filtering,
and filtering multiple links from a single message.
2025-12-15 22:45:47 -07:00
.gitignore Add dist dir to .gitignore 2025-12-12 11:39:13 -07:00
go.mod Change module path to point at Codeberg repo. 2025-12-12 11:27:21 -07:00
go.sum Initial commit. 2025-12-12 11:22:18 -07:00
main.go Refactor to add support for more url formats. Added Instagram filtering, 2025-12-15 22:45:47 -07:00
README.md Add a README 2025-12-12 11:32:19 -07:00

This bot cleans tracking parameters from YouTube links. More specifically, it removes the si=* param, while preserving any remaining params.

Build

This assumes you already have a working Go environment setup and that DiscordGo is correctly installed on your system.

From within the yt-cleaner folder, compile the application.

go build

Usage

This project uses bot tokens for authentication only. While user/password is supported by DiscordGo, it is not recommended for bots.

./yt-cleaner --help
Usage of ./yt-cleaner:
  -t string
        Bot Token

The below example shows how to start the bot

./yt-cleaner -t YOUR_BOT_TOKEN
Bot is now running.  Press CTRL-C to exit.