Package: fedigroup.py
fedigroup.py- emulate group accounts on MastodonWhat is this?Some social media platforms allow groups of users to post into a unified "group"
timeline/instance/whatever you want to call it. This is currently not possible
on Mastodon without giving all members full login credentials to a group.fedigroup.pyis an attempt to solve this specific use case.How does it work?fedigroup.pyhas to be set up on a computer and run as a service. It reads the
notifications from the Mastodon account it is connected to and filters them for
messages to repost. There are two methods of creating a group post. One or both
of them can be enabled during the setup procedure.Public mentions of group members are boosted if they mention the group's
name in the first post.fedigroup.pycan also look for direct messages from following members. If the
group is @mentioned at the very beginning, The message will be reposted as
a new public toot originating directly from the group account. The status
text as well as media files are included. The originating user will not be
shown publicly. (It can still be seen by all group and instance
administrators tough!)But how to simply use it?Subscribe to group account and write a message that should be boosted by the group:
EXAMPLE: "OHAI! just found that @mastodon thingie!"Make sure if group account is following you and write a message that should appear as a new post from the group:
Put "@group_name" at the very beginning of a direct/private message.
EXAMPLE: "@mastodon HERE BE THE MESSAGE TEXT"How to set up?The easiest way to installfedigroup.pyis via PyPI, the Python Package Index.
Usepip3 install fedigroup.pyto install it as well as all its dependencies.It is also possible to download the script manually from the GitHub repository athttps://github.com/uanet-exception/fedigroup.py"In that case the necessary dependencies
have to be provided too:fedigroup.pyrequireshttps://github.com/halcy/Mastodon.pyto run. Install it via your
operating system's package manager, pip or even manually.fedigroup.pywill guide you through setup by asking all information it needs
when you run it from the commandline for the first time. Being somewhat
comfortable with Python scripting and the commandline in general might help
if difficulties should appear.You need an account on any Mastodon instance/server that will act as your
group account. Think about if you should mark it as a "Bot".Runfedigroup.py create <your-bots-name-here>from the command line.fedigroup.pywill ask you for all needed setup data and try to get them
right by connecting to the Mastodon server. If it cannot do so, it will
tell you and you can retry. When successful,fedigroup.pywill write the
configuration to its fedigroups.ini file and read it from there next time
you run the script.The place for storing configuration by default is next tofedigroup.pyand
will be shown during the first-run/setup phase.  You can specify your own path
to config file using argument -c/--config.If you want to set upfedigroup.pyfor more than one group, you can run it
again while specifying the group bot name.Test the funcionality by sending direct messages and "@mentions" to your
group while runningfedigroup.py run <your-bots-name-here>manually.
See if things work as expected.
If everything works, run the script via supervisor or systemd unit.Use "-h" or "--help" for more information about all available options