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

[Question] Timestamps or how much time a user has been connected? #321

Closed
johnRivs opened this issue Feb 1, 2015 · 2 comments
Closed

[Question] Timestamps or how much time a user has been connected? #321

johnRivs opened this issue Feb 1, 2015 · 2 comments

Comments

@johnRivs
Copy link

johnRivs commented Feb 1, 2015

Is there a way to retrieve the timestamp when a user joins a channel?

Let's say I want to give 'points' according to how much time you've been connected. You'd be able to say !points to check yours.

Ideally, the bot would check the current time, substract the time when you joined and then do the math to know how many points you have.

If the bot knew how much time a user has been connected, it would be even easier. Is that available with node-irc?

If neither of those features are available, I guess I can store locally the currect time on user join.

@ghost
Copy link

ghost commented Sep 4, 2015

Since, a signification amount of time has passed I'm guessing that there is no functionality for time stamps currently.

I suggest we close this.

@jirwin
Copy link
Collaborator

jirwin commented Sep 4, 2015

The bot only knows what it can see. You could easily keep track of when a user joins and parts on your own. I don't believe there is any IRC specific mechanism to get the timed join on a channel.

@jirwin jirwin closed this as completed Sep 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants