Parses links that commonly embed incorrectly (or not at all) on Discord to various third-party link embed services.
Find a file
Levi f5adca4d8e
Update super-linter.yml
Fixed env variables
2022-09-26 18:11:43 +02:00
.github/workflows Update super-linter.yml 2022-09-26 18:11:43 +02:00
.eslintrc.json TikTok support 2022-09-26 18:03:47 +02:00
config.json TikTok support 2022-09-26 18:03:47 +02:00
index.js TikTok support 2022-09-26 18:03:47 +02:00
package-lock.json TikTok support 2022-09-26 18:03:47 +02:00
package.json TikTok support 2022-09-26 18:03:47 +02:00
README.md TikTok support 2022-09-26 17:43:48 +02:00

MediaFixer

Build Status

Auto changes links that commonly embed incorrectly (or not at all) on Discord to various embed services, embedding media correctly

Prerequisites

Deployment

Clone the repo:

git clone https://github.com/LeviSnoot/MediaFixer.git && cd MediaFixer

Install dependencies:

npm install 

Edit config.json to include your bot token.

nano config.json

Deploy by running the following command:

node .

Configuration

Edit config.json

nano config.json

The value for token must be the bot token found here: https://discord.com/developers/applications/YOUR_APPLICATION_ID/bot

Example:

"token": "Ysy._94ZUE7oATq9DCyaYr47.iQRJGwysWgP7SwpONUen9YbJZpXV_eG_43MjaYESEoI9UpAr",

You can set which port the bot runs its http service on using the port value. Default is 4000.

Example:

"port": "4000",

You can change which service to use for parsing links, simply edit the corresponding values with a service that offers the functionality.

Example:

"tweetParser": "https://twittpr.com/",
"instaParser": "https://ddinstagram.com/",
"tiktokParser": "https://www.vxtiktok.com/"

It's important the full base url is in the string, like the example above, otherwise you may run into issues.