Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/gargron/book-toot-bot
- Owner: Gargron
- License: mit
- Created: 2019-01-26T23:05:33.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-26T23:19:11.000Z (almost 6 years ago)
- Last Synced: 2024-04-15T06:50:57.214Z (8 months ago)
- Topics: bot, mastodon
- Language: Ruby
- Homepage:
- Size: 1.95 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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