Coder Social home page Coder Social logo

lawxls / hackernews-alerts-bot Goto Github PK

View Code? Open in Web Editor NEW
44.0 2.0 1.0 280 KB

Telegram bot for all kinds of notifications from Hacker News

Home Page: https://t.me/hackernews_alerts_bot

Python 99.79% Dockerfile 0.21%
hacker-news hackernews telegram telegram-bot

hackernews-alerts-bot's Introduction

HackerNews Alerts Bot

Telegram-bot

Telegram bot for all kinds of notifications from Hacker News

Test pre-commit


commands


Features:

Keyword Monitoring

Create a personal feed of stories or monitor mentions of your brand, projects, or topics you're interested in.

Screenshot_11 Screenshot_12

To set up monitoring of story titles and comment bodies, simply add a keyword via the /add command: /add python

To monitor only story titles, use the -stories option: /add python -stories

In addition, the /set_score command can be used to receive stories only if they meet a specified score threshold (set to 1 by default).

Keyword search is implemented via a case-insensitive containment test.

Follow Users

Follow a user to get notified of new posts and/or comments.

Use the /follow command to receive notifications when a user posts a new story or comment: /follow hnuser123

Use the -stories or -comments option to monitor only stories or comments: /follow hnuser123 -stories

Subscribe to a Thread

Receive an alert when a new comment appears in a thread.

Screenshot_60

Subscribe to a thread by ID: /subscribe 34971530

Screenshot_62

Stories by Domain Names

Add domain names to receive alerts whenever new stories are submitted.

Add a domain name: /watch example.com

Stories are affected by the /set_score command.

Comment Replies

Receive notifications when someone replies to one of your comments.

Add your username: /notify hnuser123

COMMANDS

Keyword Monitoring

  • Add a Keyword

    /add KEYWORD [-whole-word, -stories, -comments]

    If no options are specified, the bot will monitor both story titles and comments.

    Options:

    • -whole-word to match the entire word

    • -stories to monitor only thread titles

    • -comments to monitor only comments

    Examples:

    • /add project-name

    • /add python -stories

    • /add AI -whole-word -stories

    • /add machine learning -stories

  • Set a Score Threshold

    /set_score SCORE

    Receive stories only if they meet a specified score threshold (set to 1 by default).

  • List Keywords

    /keywords

  • Remove a Keyword

    /remove KEYWORD

Follow Users

  • Follow a User

    /follow USERNAME [-stories, -comments]

    If no options are specified, the bot will monitor new stories and comments.

    Options:

    • -stories to monitor only new stories

    • -comments to monitor only comments

    Examples:

    • /follow hnuser123

    • /follow hnuser123 -stories

  • List Followed Users

    /followed_users

  • Unfollow a User

    /unfollow USERNAME

Subscribe to a Thread

  • Subscribe to a Thread

    /subscribe ID

  • List Subscriptions

    /subscriptions

  • Unsubscribe from a Thread

    /unsubscribe ID

Stories by Domain Names

  • Follow a Domain Name

    /watch DOMAIN NAME

  • List Domain Names

    /domains

  • Unfollow a Domain Name

    /abandon DOMAIN NAME

Comment Replies

  • Add a Username

    /notify USERNAME

  • Disable Notifications

    /disable

General Commands

  • General Info

    /help

  • List of Commands

    /commands

  • Contacts

    /contacts

  • Stop the Bot and Delete Your Data

    /stop

hackernews-alerts-bot's People

Contributors

lawxls avatar pre-commit-ci[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tet389

hackernews-alerts-bot's Issues

Considering supporting more sources (like Reddit)?

Thank you for the awesome project ๐Ÿ’ช๐Ÿป
I usually monitor keywords on both Hacker News, Reddit, and other platforms, and I'm sure many others do the same.
It would be awesome if your project could support more platforms (like kwatch.io does for example, except that they don't provide a Telegram integration).
If you can't no worries and I would like to thank you again for your project!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.