jamesmawm / twitter-stream

A private Twitter newsfeed streaming server. Great for news you love.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make words to track as configurable and saveable.

jamesmawm opened this issue · comments

Currently the words to track are hardcoded into the track_list variable of dashboard.js.

Let's make this configurable by having a dropdown list to select available keywords or if none, have a text input and add to the dropdown list.

The list of words may be removed at will, which will automatically restart the current session for changes to take effect.

The list of keywords should be able to saved elsewhere, maybe a text file, and reloaded automatically when a new session starts.

Hint:
use require('fs') to write text files to disk.
use socket.emit for keyword event handling.

These enhancements are added in commit 0b18f1d.