Skip to content

The project is a basic Slack bot that fetches the top Hacker News stories, filters them based on keywords, and sends a Slack message to a list of users, notifying them of any matches

Notifications You must be signed in to change notification settings

MohamedNourDerbeli/Hacker-News-Alert-Slackbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤔 What is it?

This is a basic Slack Bot that:

  1. Fetches top Hacker News stories
  2. Filters them based on keywords
  3. Sends a slack message to a list of users, notifying them of any matches.

Set-up and deployment takes only 5 minutes! With Scheduled Deployments, you can execute the script as often as you'd like.

⚡ Quick Configuration (Recommended)

Want to get started as fast as possible?

  1. Head to this page and click Create New App
  2. Select From an app manifest
  3. Copy + paste the manifest file
  4. Select "Install to Workspace"
  5. Add in your Slack secrets (found below) to the secrets pane in Repit
  6. Add your Slack UID (Profile -> three dot menu -> Copy member ID) and keywords to the app.
  7. Run your Repl (select Run at the top of this page) + see what happens!

🔑 Secrets

Secret Description
SLACK_SIGNING_SECRET Your app's "signing secret" can be found on the main app page under Basic Information -> App Credentials -> Signing Secret.
SLACK_APP_TOKEN The app-level token you configured when setting up Socket mode or under Basic Information -> App-Level Tokens -> Token Name.
SLACK_BOT_TOKEN Your app's bot token is in the Installed App Settings tab -> Bot User OAuth Token.

Add these to your Repl in the Secrets pane (⌘ + K and type "secrets").

🎽 Deploying Your App

Once you have your application configured and tokens set, you can hit Run (⌘ + Enter) in Replit to execute app.py.

To have your bot execute on a schedule, head over to "Deployments" (⌘ + K, "deployments") to create a "Scheduled" deployment. This deployment uses cron syntax to execute the job on a regular cadence.

About

The project is a basic Slack bot that fetches the top Hacker News stories, filters them based on keywords, and sends a Slack message to a list of users, notifying them of any matches

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages