This bot retrieves the latest item from the RSS/Atom feed and post it to your Mastodon account automatically. You can run the bot in your website hosting panel or a VPS under the php environment.
php5.6+
This file needs to work with rss-php, which is a small and easy-to-use library for consuming RSS and Atom feeds. You can download rss-php here.
Follow these steps:
- Clone this repo
- Initialize the submodules with
git submodule init
- Download the submodules with
git submodule update
- Edit the configuration area in
bot.php
with the token of your Mastodon bot account, URL of your instance, and the URL of RSS or Atom feed. - Set the permission of
storage.txt
andcount.txt
to writable (775). - Test running
bot.php
to see if it works. - Create a crontab to frequently run
bot.php
, for example, every 20 minutes.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.