joerocklin / mastodon-hnbot

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

Home Page:https://mastodon.social/@HackerNewsBot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

https://hackertribe.io/@HackerNewsBot

Usage

Create an account for the bot. For convenience you can use youremail+hnbot@gmail.com, to avoid registering a separate email.

Then run the command:

python3 ./hnbot.py "youremail@example.com" "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 "youremail@gmail.com" "yourpassword" "https://instancename.com"

(this will execute every 30 minutes)

About

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

https://mastodon.social/@HackerNewsBot

License:MIT License


Languages

Language:Python 100.0%