Remove chart link and cron.sh

I think it was more annoying than interesting to look at.

Also, it didn't seem to be worth the maintenance of the cronjob etc.
This commit is contained in:
ekzyis 2024-04-04 20:22:36 +02:00
parent ecda7954ef
commit ee95aa89bd
2 changed files with 1 additions and 11 deletions

10
cron.sh
View File

@ -1,10 +0,0 @@
#!/usr/bin/env bash
set -xe
cd /home/ekzyis/hnbot
sqlite3 hnbot.sqlite3 < hacker_news.csv.sql
venv/bin/python plot.py
mv hn_*.png plots/
rsync plots/* vps:/var/www/files/public/hn/

2
sn.go
View File

@ -94,7 +94,7 @@ func PostStoryToStackerNews(story *Story, options PostStoryOptions) (int, error)
humanize.Time(time.Unix(int64(story.Time), 0)),
HackerNewsItemLink(story.ID),
story.Score, story.Descendants,
) + fmt.Sprintf("\n\nhttps://files.ekzyis.com/public/hn/hn_%d.png", story.ID)
)
if _, err := sn.CreateComment(parentId, comment); err != nil {
return -1, fmt.Errorf("error posting comment :%w", err)
}