Skip to content

michaelmaysonet74/hn-bot

Repository files navigation

HN Bot 🤖

A HackerNews Discord Bot

Getting Started

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>

Bring the HN Bot Online ⚡️

$ npm ci
$ npm start

Local Development 💻

$ npm run dev

Available Commands 🚀

!help

Shows available commands.

Flag Argument Description
-c <Command Name> Show more details about specified command.

!hn

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published