Skip to content

Commit 9c61038

Browse files
authored
Create README.md
1 parent 08abb93 commit 9c61038

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Random Hacker News Story Fetcher
2+
3+
This Go script fetches the top stories from Hacker News, selects a random story, and opens Chrome with the url
4+
5+
## Prerequisites
6+
7+
- Go 1.16 or later
8+
9+
## Installation
10+
11+
1. Clone the repository: `git clone github.com/stym06/hackernews-bot.git && cd hackernews-bot`
12+
2. Run `make build`
13+
3. Run `source ~/.zshrc`
14+
15+
## Usage
16+
When you run `hn` command now, it will open up Chrome with a random story from HackerNews
17+
18+
```
19+
$> hn
20+
Tripping on Xenon Gas (2023)
21+
https://tripsitter.substack.com/p/xenon
22+
```
23+

0 commit comments

Comments
 (0)