linkfixer

command module
v0.0.0-...-ddfd8f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

LinkFixer

LinkFixer is a Discord bot written in Go that automatically fixes broken video embeds. The bot replaces the broken links with the correct links, based on the links.yaml file provided in the directory and sends the new version using a webhook that almost looks like you.

example.gif

Usage

To use the bot, simply invite it to your server using the following link: Invite Link

Once the bot is added to your server, simply type a message that contains an embedded video link from Instagram or TikTok. The bot will automatically replace the broken link with the correct link, based on the links.yaml file provided in the directory and send the new version using a webhook that almost looks like you.

Self-Hosting

  1. Clone the repository
  2. Set up a Discord bot and obtain the bot token.
  3. Modify the links.yaml file to configure how LinkFixer handles broken embedded links from different platforms.
  4. Build the bot using go build.
  5. Run the bot using BOT_TOKEN=<token_string> ./linkfixer

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL