A bot that replies to new followers, ideally saying "I've moved! Follow me (here)."
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.jshintrc
Gruntfile.js
LICENSE-MIT
README.md
config.js
index.js
package.json

README.md

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.