A simple Discord bot that cleans the "si=" query parameter from YouTube links.
|
|
||
|---|---|---|
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| main.go | ||
| README.md | ||
DiscordGo YouTube Link Cleaner
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.