Skip to content

dkeskar/hnbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hacker News Watch

A bot that watches HackerNews (news.ycombinator.com) for newest comments, so as to track activity for users of interest. Includes a Sinatra application to view active postings, watched users and stream activity.

This can also be used as a template for a bot. Includes Sinatra, deployment, MongoMapper, RSpec, and Haml, all ready to go.

Configuration

Dependencies and all configuration is done in config/environment.rb. Your database is also set up here.

Add your controller actions in application.rb. Views for these actions are placed in the views directory. Static files, including a stock stylesheet, go in the public directory. Models go in the lib directory and are auto-loaded.

Testing

Add your specs in spec; just require spec_helper.rb to pre-configure the test environment. A number of samples are provided (including a sample model, which can be removed). To run the specs:

rake spec

Getting Started

ruby application.rb

About

Watches Hacker News for comments from users of interest.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages