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

Create track_online_status() In Chatroom class to track that someone is online or not #28

Closed
NavpreetDevpuri opened this issue Oct 12, 2020 · 2 comments · Fixed by #86
Closed
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed python Selenium Automation

Comments

@NavpreetDevpuri
Copy link
Member

Just open the chatroom of the given contact and just save online status in some file every second.
maybe use True or False represents online or offline

@ghostrider22
Copy link
Contributor

ghostrider22 commented Oct 26, 2021

Sir, can you please assign this issue to me.
One clarification do you want a method which when called returns whether a person is online or offline or do you want to keep logs of online-offline status by writing to some file every second. I am worried that keeping a log might create a huge file since the program will be saving data every second.

@NavpreetDevpuri
Copy link
Member Author

NavpreetDevpuri commented Oct 27, 2021

Good design will be something like having a function that will return status of currently opened chat and one other function that will call above function every second.

_get_online_status()
get_online_status_of(nameornumber) # it will just open chatroom then return online status by calling above method

# And similarly we can have 
_track_online_status()
track_online_status_of(nameornumber)

We can have a binary file and each bit can represent online status each second and we can have a 1mb file representing 8388608 seconds which is about 97days.

@NavpreetDevpuri NavpreetDevpuri linked a pull request Oct 31, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed python Selenium Automation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants