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

Bot sending duplicate activities after a couple of hours #1

Open
asweinrich opened this issue Feb 7, 2023 · 0 comments
Open

Bot sending duplicate activities after a couple of hours #1

asweinrich opened this issue Feb 7, 2023 · 0 comments

Comments

@asweinrich
Copy link
Owner

Currently, the bot grabs the most recent activity from the club. It then creates a hash from a string of the activity name, athlete, and activity duration. This hash is used to to prevent the bot from posting the same activity over and over again until the next activity is completed. However, every couple hours the bot will send a duplicate message for an activity that has already been shared. I don't know exactly why this is happening, but I think the current hash method is sketchy at best. I'm thinking maybe I need to create an array of completed activities (or their hashes as described above), and use that to rule out the duplicate posting of activities.

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

1 participant