Skip to content

An Unofficial Fansly Discord bot to allow your fans to be notified of new posts and livestreams.

Notifications You must be signed in to change notification settings

fvckgrimm/discord-fansly-notify

Repository files navigation

Discord Fansly Notifier

Warning

This is an unofficial fansly bot for discord to be notified of new post and when a creator goes live on the platform. This only works if the creators profile either has no requirements for being viewed or just needing to be followed to view. No actual content is leaked via this bot if used via provided bot link or if self ran with a basic account just following.

Note

Self hosted versions of the bot may display post in servers if the account used is subscribed but no actual photos or videos are displayed in the embed messages. I did plan on having any preview images/videos be sent but didn't seem to work, and I refused to have them sent as attachments.

Add to your server

TODO:

  • Hack together way to provide roles based on sub/follow per server
  • Fix following logic to still add if account has no pfp and just let it be empty in the embed
  • Possibly separate live and post notification
    • Allow enabling and disabling one or the other

Running The Bot Yourself

Firstly download or clone the repository:

git clone github.com/fvckgrimm/discord-fansly-notify && cd discord-fansly-notify

# Create the .env to configure
cp .env-example .env

# Running the program
go run .

# Building Binary
go build -v -ldflags "-w -s" -o fansly-notify ./cmd/fansly-notify/

# Running the binary 
./fansly-notify

Configuring The .env File

To run this bot you will need to get BOTH your discord bots token and other items, and your fansly account token.

Discord Bot token

To get the needed discord values for the .env file, you can read and follow the instructions from discords developrs doc's

Fansly Token

Recommended method:

  1. Go to fansly and login and open devtools (ctrl+shift+i / F12)
  2. In devtools, go to the Console Tab and Paste the following:
console.clear(); // cleanup console
const activeSession = localStorage.getItem("session_active_session"); // get required key
const { token } = JSON.parse(activeSession); // parse the json data
console.log('%c➡️ Authorization_Token =', 'font-size: 12px; color: limegreen; font-weight: bold;', token); // show token
console.log('%c➡️ User_Agent =', 'font-size: 12px; color: yellow; font-weight: bold;', navigator.userAgent); // show user-agent

Disclaimer

Caution

Use at your own risk. The creator of this program is not responsible for any outcomes that may take place upon the end users' account for using this program. This program is not affiliated or endorsed by "Fansly" or Select Media LLC, the operator of "Fansly".

About

An Unofficial Fansly Discord bot to allow your fans to be notified of new posts and livestreams.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published