Add tweeter feed. 3 last posts

maybe I don't understand why this is working.

setInterval takes a function as the first argument. you're providing it
undefined since poller is executed.

On Sat, Oct 4, 2014 at 8:08 AM, Sergio Crisostomo <notifications@github.com>
wrote:

> In middleware/twitter.js:
>
> > +
> > +var keys = require('./../config/api_keys.json').twitter;
> > +var twitter = require('twitter');
> > +var twit = new twitter(keys);
> > +
> > +module.exports = function(interval){
> > +
> > +	var tweets;
> > +	var timer;
> > +
> > +	// interval updating the data happens
> > +	if (!interval) interval = 1000 * 60 * 30; // each 30 minutes
> > +
> > +	// periodically fetching the Twiter API.
> > +	var poller = function(){
> > +		twit.get('/statuses/user_timeline.json', {include_entities:true, screen_name: 'mootools'}, function(data) {
>
> @ibolmo <https://github.com/ibolmo> I think if we don't have setInterval
> it will only get new tweets when the server is re-started.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/mootools/website/pull/91/files#r18429127>.
>