Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.