Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embify

Embify is a Discord bot that intercepts messages containing URLs from social media sites and replies with an embed supported alternative.

Features

  • Listens to user messages for social media URL's.
  • Disables the original URL's embed.
  • Immediately provides a clean, embed-friendly link without extra text.
  • Silently checks if the primary link is working in the background.
  • Automatically falls back to working alternatives if needed.

Supported Websites

The bot currently supports intercepting URLs from the following social media apps with multiple alternatives:

How It Works

When a user posts a link to a supported social media site, Embify:

  1. Detects the URL and matches it to a supported platform
  2. Suppresses the original embed to prevent duplicate embeds
  3. Immediately replies with a clean, embed-friendly URL (no extra text or formatting)
  4. Checks in the background if the primary URL is working
  5. If the primary URL isn't working, automatically updates the message with a working alternative URL

This approach ensures users always get functioning embed links even when some services are down.

Hosted Instance

I have a self-hosted instance of the bot currently, if you wish to invite this to your server instead of running your own then feel free.

Invite the Bot

Setup

Prerequisites

  • Node.js (v16 or higher)
  • npm (v7 or higher)
  • A Discord bot token

Installation

  1. Clone the repository:
git clone https://github.com/JamsRepos/Embify.git
  1. Navigate to the project directory:
cd Embify
  1. Install the dependencies:
npm install
  1. Create a .env file in the root directory of the project and add your Discord bot token to it:
DISCORD_BOT_TOKEN=your-token-here

Usage

  1. Start the bot:
node bot.js
  1. Invite the bot to your Discord server.

  2. The bot will now intercept messages containing URLs from the specified domains and reply with an amended URL.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

A small form factor Discord bot that will replace URL's of popular social media sites.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages