Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gargron/book-toot-bot

A Ruby script that will post a book to a Mastodon account.
https://github.com/gargron/book-toot-bot

bot mastodon

Last synced: 2 months ago
JSON representation

A Ruby script that will post a book to a Mastodon account.

Awesome Lists containing this project

README

        

book-toot-bot
=============

A Ruby script that will post a book to a Mastodon account.

### Installation

```
bundle install
```

### Configuration

Create a `config.yml` with:

```yml
base_url: https://botsin.space
token: ...
location: 0
```

You can sign up on the desired Mastodon server the normal way, and create an access token from the "Development" tab in the settings. Create a `book.txt` with the text contents.

### Usage

E.g. from a crontab at regular intervals:

```
ruby bot.rb
```

### License

MIT