A HackerNews Discord Bot
Pre-requisites
Create an .env
file at the root level of the directory, with the following fields:
DISCORD_TOKEN=<Obtainable in the Discord Developers Portal>
BOT_ID=<HN Bot ID, used to prevent the bot to reply to itself>
$ npm ci
$ npm start
$ npm run dev
Shows available commands.
Flag | Argument | Description |
---|---|---|
-c | <Command Name> | Show more details about specified command. |
Get top 10 Hacker News stories of the day.
Flag | Argument | Description |
---|---|---|
-t | - | Get HackerNews Top Stories (Default). |
-b | - | Get HackerNews Best Stories. |
-n | - | Get HackerNews Most Recent Stories. |
-i | <Numerical Index> | Starting point to fetch next 10 HackerNews Stories. |
-f | <Filter> | Filter HackerNews Stories by title with provided text. |