Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Feature/feedme #1

Merged
merged 9 commits into from
Apr 21, 2016
Merged

Feature/feedme #1

merged 9 commits into from
Apr 21, 2016

Conversation

christoph-holter
Copy link
Contributor

Adding feedme command to get info from Fabrik and Ernis.

@@ -1,10 +1,11 @@
{
"name": "hubot",
"version": "0.0.0",
"version": "1.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going 1.0 seems like a big step to me. How about applying the suggestions postulated in Semantic Versioning 2.0.0, e.g. use version 0.1.0 for this PR?

day = now.getDay()
lastCheck = new Date(@robot.brain.get "feedme.fabrik.lastCheck" or 0)
# only check once per day, otherwise we're good to go
if getDateDiff(now, lastCheck, DAY) > 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think an early return would be nice here. All the code below would need one level of indentation less.

@lorenzleutgeb lorenzleutgeb self-assigned this Apr 21, 2016
@lorenzleutgeb lorenzleutgeb merged commit dc4e3b5 into master Apr 21, 2016
@christoph-holter christoph-holter deleted the feature/feedme branch April 22, 2016 08:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants