Skip to content

afk-echo/linkfix-oss-revolt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

linkfix-oss-revolt

A bot that fixes embed links on Revolt to serve media links.

Working

This bot fixes media embed links of the following websites:

Twitter/X - via fxtwitter

Instagram - via ddinstagram

Reddit - via vxreddit

It is in essence, a simple script that replaces domain names in order to fix links to display media on Revolt.

Running

Create a bot

Create a Revolt bot on the desktop app by going to User Settings > My Bots > Create a Bot. Give it a name and copy the token of the bot. Add this bot to a group/server for it to work in. Replace "enter your token" in the following steps with the token of this bot.

Linux

Use a shell of your choice and do the following:

  1. Clone the repository and install dependencies:
git clone https://github.com/afk-echo/linkfix-oss-revolt.git
cd linkfix-oss-revolt
python -m venv .venv
source .venv/bin/activate
pip install revolt.py
  1. Activate the environment and run main.py:
source .venv/bin/activate
TOKEN="enter your token" python main.py

Windows (untested)

Start a PowerShell session and do the following:

  1. Clone the repository and install dependencies:
git clone https://github.com/afk-echo/linkfix-oss-revolt.git
cd linkfix-oss-revolt
python -m venv .venv
.venv/scripts/Activate.ps1
pip install revolt.py
  1. Activate the environment and run main.py:
.venv/scripts/Activate.ps1
$env:TOKEN = "enter your token"
python main.py

Issues

When installing revolt.py using pip, you may face issues installing aiohttp if you are on a newer version of Python (this issue is known to occur on Python 3.13.3 and above). To mitigate this issue, you may choose to clone the revolt.py repository yourself and install revolt.py from source manually. To do this, run the following:

git clone https://github.com/revoltchat/revolt.py.git
cd revolt.py
pip install .

You can now try to activate the environment and run main.py as per the instructions for your particular operating system.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages