Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1.84 KB

README.md

File metadata and controls

43 lines (36 loc) · 1.84 KB

fakediscordgif

Discord gets a gif, the user gets redirected.

Made with Fastify Made with NodeJS Made with Javascript

What is this?

This project is a simple webserver that shows the user a gif, but redirects them to a webpage when they middle-click on the gif, or click "open browser". See this video for a demo.

How does it work?

The webserver checks the user agent. If it matches the discord bot user agents, it shows the gif. Else, it redirects to a chosen webpage.

How do I use it?

Prerequisites

  • NodeJS
  • NPM

Installation

  1. Clone the repository
$ git clone git@github.com:justekoro/fakediscordgif.git
  1. Install dependencies
$ cd fakediscordgif
$ npm install # If you use yarn, just type yarn.
  1. Start the server
$ node index.js

Configuration

Use environment variables. To disable logger, just set environment variable NODE_ENV to "prod". There is also the PORT environment variable, which is the port the server will listen on. The default is 3000.

License

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

Demo

An instance is running on https://gifdis.krbk.dev/gif.gif, which redirects to windows defender.