Skip to content

Theoya/HackernewsDiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackernews Discord Bot

This project posts the top 3 stories from Hacker News to a Discord channel every day using a GitHub Actions workflow.

Features

  • Fetches the top 3 stories from Hacker News daily.
  • Posts story titles and direct links to a specified Discord channel via webhook.
  • Automated using GitHub Actions.

Setup

  1. Discord Webhook: Add your Discord webhook URL as a GitHub secret named DISCORD_WEBHOOK.
  2. Workflow: The workflow runs daily at 9:00 UTC and can also be triggered manually.

How it Works

  • The workflow runs fetch_and_notify_hn.py, which:
    • Fetches the top 3 stories from Hacker News.
    • Formats their titles and links.
    • Posts them to Discord using the webhook.

Feel free to clone and do what you will with this!

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages