Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cldfire/discord-threads-link-expander
Discord bot that generates threads.net link previews
https://github.com/cldfire/discord-threads-link-expander
discord discord-bot meta-threads threads-net twilight-rs
Last synced: 9 days ago
JSON representation
Discord bot that generates threads.net link previews
- Host: GitHub
- URL: https://github.com/cldfire/discord-threads-link-expander
- Owner: Cldfire
- License: apache-2.0
- Created: 2023-12-22T23:47:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-23T07:22:03.000Z (about 1 year ago)
- Last Synced: 2024-12-24T03:58:30.823Z (10 days ago)
- Topics: discord, discord-bot, meta-threads, threads-net, twilight-rs
- Language: Rust
- Homepage:
- Size: 502 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# discord-threads-link-expander
![CI](https://github.com/Cldfire/discord-threads-link-expander/workflows/CI/badge.svg)
[![dependency status](https://deps.rs/repo/github/cldfire/discord-threads-link-expander/status.svg)](https://deps.rs/repo/github/cldfire/discord-threads-link-expander)A simple Discord bot that provides a message action to generate link previews for any https://threads.net links in said messages.
Why? Because for some reason it's hit-or-miss whether or not Discord actually generates link previews for Threads, which is frustrating.
It also contains a `/fx` command for fixing up Twitter links via [FixTweet](https://github.com/FixTweet/FixTweet), because why not.
## Installation
### Downloading
You can download prebuilt binaries in the [releases section](https://github.com/Cldfire/discord-threads-link-expander/releases).
### Building
You can also build and install from source (requires an up-to-date [Rust](https://www.rust-lang.org) install):
```
cargo install --git https://github.com/Cldfire/discord-threads-link-expander.git --locked
```## Config
Create a file named `discord-threads-link-expander-config.toml` next to the binary (or at the root of the repo if you're doing `cargo run`). Add your bot token like so:
```toml
bot_token = "..."
```#### License
Licensed under either of Apache License, Version
2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
be dual licensed as above, without any additional terms or conditions.