Skip to content

๐Ÿ˜Ž Shows a gif to Discord, but redirects the user.

License

Notifications You must be signed in to change notification settings

justekoro/fakediscordgif

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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 [email protected]: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.

About

๐Ÿ˜Ž Shows a gif to Discord, but redirects the user.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published