Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (16 sloc) 1.21 KB

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.