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:
parent
ecda7954ef
commit
ee95aa89bd
10
cron.sh
10
cron.sh
|
@ -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
2
sn.go
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue