Commit Graph

26 Commits

Author SHA1 Message Date
ekzyis 35a4112c22 Remove discord code 2024-04-07 05:42:05 +02:00
ekzyis 3bf5c8baba Update to snappy v0.4.1 2024-04-07 05:37:31 +02:00
ekzyis 1416550be9 First wait, then run 2024-03-18 08:26:04 +01:00
ekzyis 7bf9e6c53c Remove unnecessary goroutines 2024-03-18 08:22:51 +01:00
ekzyis 0285c5a53a Sync HN items every minute 2024-03-18 08:19:46 +01:00
ekzyis a3933b48c6 Only run every 15 minutes
This should prevent spam fees.
2024-03-18 07:09:19 +01:00
ekzyis 9d38176eab Save dupes to prevent retries 2024-03-14 03:00:43 +01:00
ekzyis 7e4744503f Store time series of HN data in SQLite3
This can be used in the future for better content curation and generating charts.

Currently, it still posts stories when they hit rank 1.
2024-03-13 13:41:04 +01:00
ekzyis 88e2ff8b41 Add session keepAlive 2023-08-15 22:07:39 +02:00
ekzyis 7e892859c3 Better logging 2023-06-13 00:02:14 +02:00
ekzyis c40d61a6a8 Stop sending dupes error to discord 2023-06-09 06:02:55 +02:00
ekzyis e0b086c744 Upgrade to sn-goapi v0.1.1 2023-06-01 03:41:20 +02:00
ekzyis 9e057fca03 Use sn-goapi v0.1.0 2023-06-01 03:11:36 +02:00
ekzyis aaa89408d1 Query hasNewNotes and forward 2023-06-01 01:58:08 +02:00
ekzyis 2a9b7c6737 Wait until next full hour 2023-04-27 00:55:39 +02:00
ekzyis 5388480f31 Overhaul logging and error handling 2023-04-25 12:01:49 +02:00
ekzyis c2b6e77751 Skip dupes check on skip reaction 2023-04-25 02:22:27 +02:00
ekzyis bc121ce87b Use infinite loop 2023-04-20 00:20:46 +02:00
ekzyis 82a380de0e Remove unused HN code 2023-04-19 21:14:03 +02:00
ekzyis 180fdece99 Remove HN comments 2023-04-18 22:47:50 +02:00
ekzyis 9f3b488d05 Notify OP on HN about claimable sats 2023-04-17 02:54:39 +02:00
ekzyis 5d2130b6f5 Rename functions 2023-04-16 19:56:42 +02:00
ekzyis 2f7214e9a0 Move SnApiToken check into sn.go 2023-04-16 19:49:38 +02:00
ekzyis 792eb8f40d Refactor SN API authorization 2023-04-16 18:30:08 +02:00
ekzyis aad977b875 Refactor code using hn.go and sn.go 2023-04-16 17:14:44 +02:00
ekzyis 88147fe50e First successful SN post
https://stacker.news/items/161801
2023-04-07 08:56:28 +02:00