Skip to content

Adding the date in the Response object #6

@rayfranco

Description

@rayfranco

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.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions