Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lumenwrites/mastodon-hnbot

A bot posting the Hacker News stories with 100+ points to Mastodon
https://github.com/lumenwrites/mastodon-hnbot

bot hacker-news mastodon

Last synced: about 2 months ago
JSON representation

A bot posting the Hacker News stories with 100+ points to Mastodon

Awesome Lists containing this project

README

        

A bot posting the Hacker News stories with 100+ points to [Mastodon](https://github.com/tootsuite/mastodon).

https://hackertribe.io/@HackerNewsBot

![](https://raw.githubusercontent.com/raymestalez/mastodon-hnbot/master/screenshot.png)

# Usage

Create an account for the bot. For convenience you can use [email protected], to avoid registering a separate email.

Then run the command:

```
python3 ./hnbot.py "[email protected]" "yourpassword" "https://instancename.com"
```

# Run it regularly

You can use cron to run the bot regularly.

Run the command:

```
crontab -e
```

And at the end of the file add the line:

```
0,30 * * * * python3 /path/to/the/script/hnbot.py "[email protected]" "yourpassword" "https://instancename.com"
```

(this will execute every 30 minutes)