Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the date in the Response object #6

Open
rayfranco opened this issue Dec 27, 2012 · 0 comments
Open

Adding the date in the Response object #6

rayfranco opened this issue Dec 27, 2012 · 0 comments
Assignees

Comments

@rayfranco
Copy link
Owner

It would help to go further with extensions if the date was available in a convenient format in the Response object.

bot.on 'user:join', (r) ->
  if r.time.hour is > 11
    r.reply "You are late #{r.nick} !"

Check the Cinch API for an example, every Message instance (which is similar to our Response object) include a Time (ruby) object.

@ghost ghost assigned rayfranco Dec 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant