开源软件名称(OpenSource Name):groundcat/mastodon-welcome-bot
开源软件地址(OpenSource Url):https://github.com/groundcat/mastodon-welcome-bot
开源编程语言(OpenSource Language):
PHP
100.0%
开源软件介绍(OpenSource Introduction):mastodon-welcome-bot
Getting Started
This bot sends private messages to the latest follower of your welcome bot.
Prerequisites
- A php5.6+ environment to run your bot
- Crontab to run this script at a certain frequency
- User ID (an integer) of your welcome bot account
- Users must automatically follow this account when they sign up (configure in your Mastodon instance's admin panel)
Configuration
Follow these steps:
- Put
bot.php in a php environment such as a website hosting server.
- Edit the configuration area in
bot.php with the token of your Mastodon bot account, URL of your instance, your welcome messgaes, etc.
- Create an empty file named
newest_user_id.txt in the same directory.
- Set the permission of
newest_user_id.txt file to be writable.
- Test running
bot.php to see if it works.
- Create a crontab to frequently run
bot.php , for example, every 1 minute.
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
|
请发表评论