Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.
/ follow_me Public archive

Send a direct message to your Mastodon followers to inform them of a move

License

Notifications You must be signed in to change notification settings

xuv/follow_me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

follow_me

Send a direct message to your Mastodon followers to inform them of a move.

No Maintenance Intended
This project is not relevant anymore since Mastodon v3 adds the ability to bring your followers with you when moving from one instance to another.

If you just moved from one instance to another, you might want to inform your followers to follow you there. Since just posting a public post informing of the change might not be seen by everyone, sending a direct private message to your followers will have a bigger impact.

The script here connects to both instances to compare the list of followers and only send a direct message to the ones that are not following your now account already.

Installation

  • Have mongodb running on your local machine
  • Create a virtual python env.
  • Install packages with pip install -r requirements.txt

Configuration

DO CHANGE both configuration and MESSAGE before running the script

3 things to change in the follow_me.py file (OLD, NEW and MESSAGE):

OLD = 'mastodon.social' # Insert here the domain name of your old instance
NEW = 'merveilles.town' # Insert here the domain name of your new instance

APP = 'follow_me'

# Change the content of the message below with whatever you want to tell your followers

MESSAGE = '''
I just wanted to let you know that I left Mastodon.social for Merveilles.town.
My new account is now at @xuv@merveilles.town.
Since you are following me here, I thought you might want to continue following me there.
See you soon.
'''

Run

python follow_me.py

You will be prompted to enter your login and password for both instances (unfortunately, this will not work with accounts that have 2FA set up). Those pieces of information are not stored. Tokens on the other hand will be written to .secret files in the same folder so that the script could be re run later without asking for login and password again. Delete those files if you want to prevent further access to your accounts afterwards.

Credits

@xuv@merveilles.town

About

Send a direct message to your Mastodon followers to inform them of a move

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages