Bring Hacker News stories inside your Discord server
  • TypeScript 97.9%
  • Dockerfile 2.1%
Find a file
2025-08-03 19:26:27 +08:00
.vscode initial commit 2025-07-08 15:32:51 +08:00
.zed initial commit 2025-07-08 15:32:51 +08:00
assets fix: move imgs in assets dir; change build script 2025-07-08 15:47:12 +08:00
src chore: remove hn- prefix 2025-07-15 12:33:21 +08:00
.dockerignore initial commit 2025-07-08 15:32:51 +08:00
.editorconfig initial commit 2025-07-08 15:32:51 +08:00
.gitignore chore(config): change handling of configs 2025-07-11 15:11:11 +08:00
biome.json initial commit 2025-07-08 15:32:51 +08:00
docker-compose.yml initial commit 2025-07-08 15:32:51 +08:00
Dockerfile initial commit 2025-07-08 15:32:51 +08:00
LICENSE initial commit 2025-07-08 15:32:51 +08:00
package.json fix: change main entry point file 2025-07-15 00:06:12 +08:00
pnpm-lock.yaml initial commit 2025-07-08 15:32:51 +08:00
pnpm-workspace.yaml initial commit 2025-07-08 15:32:51 +08:00
README.md feat: add invitation link for the bot 2025-08-03 19:26:27 +08:00
tsconfig.json initial commit 2025-07-08 15:32:51 +08:00

YBottinator banner

Bring Hacker News stories inside your Discord server

Invite to your server: https://discord.com/oauth2/authorize?client_id=1381646292270448680

Development

Clone this repository

git clone https://github.com/datsudo/news-ybottinator
cd news-ybottinator

Install dependencies

npm install
# or
pnpm install

Before starting the bot:

  • Rename src/core/Config.example.ts to Config.ts
  • Assuming that you already created your discord bot in Developer Portal, copy the following and put them in Config.ts
    • Bot token
    • Bot client ID
    • Guild (server) ID (where you'll invite the bot in for testing)

Start bot

pnpm dev # development
pnpm build && pnpm start # production

Docker setup is also provided (see docker-compose.yml). You might also want to change the container_name.

docker compose up -d