Giter VIP home page Giter VIP logo

mediafixer's Introduction

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.

mediafixer's People

Contributors

levisnoot avatar yber0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.