Simple Mastodon Bot to boost all mentions of a certain hashtag of the people it's following
Idea
The original usecase is to collect all the toots mentioning one of a set of hashtags by a group of people and re-toot/boost their stati in a single account. The single account can be displayed on a kiosk screen and be the public face of a organisation/group/hackerspace. You can use MastodonBoostBot to emulate groups in Mastodon. Users can post as an organisation account without requiring login credentials and without loosing the information about the original poster.
Administer your group (people whose tagged posts will be boosted) in Mastodon by following/unfollowing users.
Alternatively, you can disable the follower-filter and just boost/reblog every post containing one of your hashtags.
Features
mostly 12-factor app
configuration with environment variables
but no package control until go1.12 is more widespread
easily containerized static golang executable
fail-fast, restart-fast
configure once and forget (administrate trusted followers in mastodon, not bot configuration)
Todo
cc videos to Twitter
cc multiple images to Twitter
split longer toots into multiple tweets
Example Information Flow
see also slides of lightningtalks which can be found here
copy user_service/MastodonBoostBot.service to /etc/systemd/system
adapt paths and config in MastodonBoostBot.service
a. add User=mastodonbot
a. ExecStart
a. EnvironmentFile
a. change WantedBy to multi-user.target or whatever you start your services with
a. comment in additional protections. possibly try chrooting the service in /opt/MastodonBoostBot
systemctl start MastodonBoostBot.service
systemctl enable MastodonBoostBot.service
Design
Algorithm
follow stream of configured list of hashtags using StreamingAPI
请发表评论