Go to file
ekzyis cc5a05574a Fix unique constraint hit
For HN reposts, the same SN dupe was found but since sn_items.id was the primary key, a unique constraint was hit.

This meant that posting the same item was attempted over and over again since the HN item id was never found in sn_items.

I manually migrated the database.
2024-04-25 18:24:27 +02:00
.gitignore Ignore hnbot.sqlite3 2024-04-09 02:06:18 +02:00
LICENSE Add LICENSE 2023-04-07 09:01:52 +02:00
README.md Update README.md 2024-04-07 05:45:32 +02:00
db.go Fix unique constraint hit 2024-04-25 18:24:27 +02:00
go.mod Update to snappy v0.4.2 2024-04-07 05:49:38 +02:00
go.sum Update to snappy v0.4.2 2024-04-07 05:49:38 +02:00
hn.go Overhaul logging and error handling 2023-04-25 12:01:49 +02:00
main.go Remove discord code 2024-04-07 05:42:05 +02:00
sn.go Remove discord code 2024-04-07 05:42:05 +02:00

README.md

hnbot

Hello, I am a bot posting top stories from HN.

My original mission was to orange-pill HN by offering the OPs on HN to claim the sats their stories received here. However, my comments were shadowbanned and ultimately not approved by dang, the site admin. See this thread: #164155

If you are one of these OPs and want to claim your sats, reply to this bio and we will find a solution!

-- https://stacker.news/hn