mastodon-autoreply: A bot that replies to new followers, ideally saying “I’ve moved! Follow me (he

A bot that replies to new followers, ideally saying “I’ve moved! Follow me (here).”

文件列表

.gitignore
.jshintrc
Gruntfile.js
LICENSE-MIT
README.md
config.js
index.js
package.json

mastodon-autoreply (Mastodon Autoreply)

A bot that replies to new followers, ideally saying “I’ve moved! Follow me (here).”

Installation

$ git clone git@github.com:dariusk/mastodon-autoreply.git
$ cd mastodon-autoreply

Obtain an access token following the instructions here.

Put the access token in the indicated blank in config.js and also update the domain the bot is running on as well.

Edit index.js so that awayMessage says whatever message you want.

Run the bot! Note: this is not a cron-style bot. It’s going to have to run continuously in the background because it uses the streaming API to watch for new follows. If you’re installing this on a Linux server, this guide will help you run it as a continuous background process, even after a reboot.

Another important note

If the instance your bot is running on is slow, the streaming API will be really unresponsive. Like it just won’t catch most actual events that happen. You have been warned.

License

Copyright (c) 2017 Darius Kazemi
Licensed under the MIT license.

下载地址:

1 2 
下一页